Function rc_uart_flush#

Function Documentation#

int rc_uart_flush(int bus)#

flushes (discards) any data received but not read, or data written but not sent.

Parameters:

bus[in] The bus number /dev/ttyO{bus}

Returns:

0 on success or -1 on failure