vex_sdk/
generic_radio.rs

1//! V5 Smart Radio
2
3use core::ffi::{c_char, c_int};
4
5use crate::V5_DeviceT;
6
7unsafe extern "system" {
8    pub fn vexDeviceGenericRadioConnection(
9        device: V5_DeviceT,
10        link_id: *mut c_char,
11        r#type: c_int,
12        ov: bool,
13    );
14    pub fn vexDeviceGenericRadioWriteFree(device: V5_DeviceT) -> i32;
15    pub fn vexDeviceGenericRadioTransmit(device: V5_DeviceT, data: *const u8, size: u16) -> i32;
16    pub fn vexDeviceGenericRadioReceiveAvail(device: V5_DeviceT) -> i32;
17    pub fn vexDeviceGenericRadioReceive(device: V5_DeviceT, data: *mut u8, size: u16) -> i32;
18    pub fn vexDeviceGenericRadioLinkStatus(device: V5_DeviceT) -> bool;
19}