UART (Universal Asynchronous Receiver/Transmitter) interface. More...


Go to the source code of this file.
Data Structures | |
| struct | hw_uart_config_t |
| UART initialization configuration. More... | |
Enumerations | |
| enum | hw_uart_data_bits_t { hw_uart_data_bits_5 = 5, hw_uart_data_bits_6 = 6, hw_uart_data_bits_7 = 7, hw_uart_data_bits_8 = 8 } |
| UART data bit configuration. | |
| enum | hw_uart_stop_bits_t { hw_uart_stop_bits_1 = 1, hw_uart_stop_bits_2 = 2 } |
| UART stop bit configuration. | |
| enum | hw_uart_parity_t { hw_uart_parity_none, hw_uart_parity_even, hw_uart_parity_odd } |
| UART parity configuration. | |
| enum | hw_uart_flow_control_t { hw_uart_flow_control_none, hw_uart_flow_control_cts, hw_uart_flow_control_rts, hw_uart_flow_control_cts_rts } |
| UART hardware flow control mode. | |
Functions | |
Lifecycle | |
| sys_iostream_t * | hw_uart_init (const hw_gpio_t *rx_pin, const hw_gpio_t *tx_pin, uint32_t baud_rate, const hw_uart_config_t *config) |
| Initialize a UART device. More... | |
| sys_iostream_t * | hw_uart_init_device (const char *device, uint32_t baud_rate, const hw_uart_config_t *config) |
| Initialize a UART by device path. More... | |
Methods | |
| bool | hw_uart_flush (sys_iostream_t *uart, uint32_t timeout_ms) |
| Wait for UART transmission to complete. More... | |
UART (Universal Asynchronous Receiver/Transmitter) interface.
Definition in file uart.h.