VEX V5 C++ API
|
Public Member Functions | |
serial () | |
~serial () | |
int32_t | write (uint8_t *buffer, int32_t length) |
Write data to the serial port. More... | |
int32_t | read (uint8_t *buffer, int32_t length) |
Read data present on the serial port. More... | |
bool | hasData (void) |
Check if there is data to be read. Call read to get the data. More... | |
vex::brain::serial::serial | ( | ) |
vex::brain::serial::~serial | ( | ) |
int32_t vex::brain::serial::write | ( | uint8_t * | buffer, |
int32_t | length | ||
) |
Write data to the serial port.
buffer | data to write |
length | of the data to be written |
int32_t vex::brain::serial::read | ( | uint8_t * | buffer, |
int32_t | length | ||
) |
Read data present on the serial port.
buffer | for the read data |
length | maximum length of the data to be read |
bool vex::brain::serial::hasData | ( | void | ) |
Check if there is data to be read. Call read
to get the data.