125extern void uart_send(
const int uart,
const uint8_t data);
void uart_destroy(const int uart)
Close the shared memory handle for the specified UART index.
void uart_reset_fifos(const int uart)
This function resets both the transmit and receive FIFOs of the UART specified by the uart parameter....
bool uart_has_data(const int uart)
Check if the receive FIFO for the specified UART index has data available.
uart_index_t
Enum of UARTs. Functions use a switch numbered from 0..NUM_UARTS-1. Alternatively,...
bool uart_has_space(const int uart)
Check if the transmit FIFO for the specified UART index has space available.
uint8_t uart_recv(const int uart)
Receive a byte of data from the specified UART index by waiting for the receive FIFO to have data and...
void uart_send(const int uart, const uint8_t data)
Send a byte of data on the specified UART index by waiting for the transmit FIFO to have space and th...
void uart_init(const int uart)
Initialize the UART specified by the index with a shared memory handle and a buffer size of 4096 byte...