64 uint32_t timeout_ms,
size_t *bytes_written);
int ove_hal_uart_open(ove_uart_t uart, const struct ove_uart_cfg *cfg)
Configure and enable the UART peripheral.
int ove_hal_uart_rx_enable(ove_uart_t uart)
Enable the RX interrupt / start RX reception.
void ove_hal_uart_close(ove_uart_t uart)
Disable and release the UART peripheral.
int ove_hal_uart_tx_flush(ove_uart_t uart)
Flush the TX hardware FIFO.
int ove_hal_uart_tx(ove_uart_t uart, const void *data, size_t len, uint32_t timeout_ms, size_t *bytes_written)
Blocking transmit of data.
struct ove_uart * ove_uart_t
Opaque handle for a UART peripheral.
Definition types.h:136
UART configuration descriptor.
Definition uart.h:66