Function rc_uart_get_fd#
Defined in File uart.h
Function Documentation#
-
int rc_uart_get_fd(int bus)#
Fetches the file descriptor to a uart bus after the bus has been initialized.
This is so the user can optionally do additional configuration or IO operations on the bus.
- Parameters:
bus – [in] The bus number /dev/ttyO{bus}
- Returns:
the file descriptor to /dev/ttyO{bus} or -1 on error