vex_sdk/
generic_serial.rs

1//! Smart Port Generic Serial Communication
2
3use crate::{map_jump_table, V5_DeviceT};
4
5map_jump_table! {
6    0xa50 => pub fn vexDeviceGenericSerialEnable(device: V5_DeviceT, options: i32),
7    0xa54 => pub fn vexDeviceGenericSerialBaudrate(device: V5_DeviceT, baudrate: i32),
8    0xa58 => pub fn vexDeviceGenericSerialWriteChar(device: V5_DeviceT, c: u8) -> i32,
9    0xa5c => pub fn vexDeviceGenericSerialWriteFree(device: V5_DeviceT) -> i32,
10    0xa60 => pub fn vexDeviceGenericSerialTransmit(device: V5_DeviceT, buffer: *const u8, length: i32) -> i32,
11    0xa64 => pub fn vexDeviceGenericSerialReadChar(device: V5_DeviceT) -> i32,
12    0xa68 => pub fn vexDeviceGenericSerialPeekChar(device: V5_DeviceT) -> i32,
13    0xa6c => pub fn vexDeviceGenericSerialReceiveAvail(device: V5_DeviceT) -> i32,
14    0xa70 => pub fn vexDeviceGenericSerialReceive(device: V5_DeviceT, buffer: *mut u8, length: i32) -> i32,
15    0xa74 => pub fn vexDeviceGenericSerialFlush(device: V5_DeviceT),
16}