vex_sdk/
generic_serial.rs1use crate::V5_DeviceT;
4
5unsafe extern "system" {
6 pub fn vexDeviceGenericSerialEnable(device: V5_DeviceT, options: i32);
7 pub fn vexDeviceGenericSerialBaudrate(device: V5_DeviceT, baudrate: i32);
8 pub fn vexDeviceGenericSerialWriteChar(device: V5_DeviceT, c: u8) -> i32;
9 pub fn vexDeviceGenericSerialWriteFree(device: V5_DeviceT) -> i32;
10 pub fn vexDeviceGenericSerialTransmit(
11 device: V5_DeviceT,
12 buffer: *const u8,
13 length: i32,
14 ) -> i32;
15 pub fn vexDeviceGenericSerialReadChar(device: V5_DeviceT) -> i32;
16 pub fn vexDeviceGenericSerialPeekChar(device: V5_DeviceT) -> i32;
17 pub fn vexDeviceGenericSerialReceiveAvail(device: V5_DeviceT) -> i32;
18 pub fn vexDeviceGenericSerialReceive(device: V5_DeviceT, buffer: *mut u8, length: i32) -> i32;
19 pub fn vexDeviceGenericSerialFlush(device: V5_DeviceT);
20}