|
| enum | FlushType { flush_receive = TCIFLUSH
, flush_send = TCOFLUSH
, flush_both = TCIOFLUSH
} |
| |
◆ flushSerialPort()
| virtual bool flushSerialPort |
( |
FlushType |
flush_type | ) |
|
|
pure virtual |
Flushes serial port data
- Parameters
-
| flush_type | enum that sets the data to be flushed (read, write, or both) |
- Returns
- true upon success, false otherwise
Implemented in BoostUartCommunication.
◆ serialRead()
| virtual std::vector< unsigned char > serialRead |
( |
size_t |
num_read_bytes | ) |
|
|
pure virtual |
reads a given number of bytes from UART receive buffer
- Parameters
-
| num_read_bytes | the number of bytes to read |
- Returns
- the values read
Implemented in BoostUartCommunication.
◆ serialWrite()
| virtual bool serialWrite |
( |
const std::vector< unsigned char > & |
write_val | ) |
|
|
pure virtual |
writes write_val into UART transmit buffer
- Parameters
-
| write_val | values to be written |
- Returns
- true upon success, false otherwise
Implemented in BoostUartCommunication.
The documentation for this class was generated from the following file: