Go to the documentation of this file.
43 #define SOFT_UART_FLAG_INVERT_TX 0x1
48 #define SOFT_UART_FLAG_INVERT_RX 0x2
uart_stop_bits_t
Definition of possible stop bits lengths in a UART frame.
tim_t rx_timer
Hardware timer used for RX.
Low-level timer peripheral driver interface definitions.
void soft_uart_write(soft_uart_t uart, const uint8_t *data, size_t len)
Write data from the given buffer to the specified UART device.
int soft_uart_mode(soft_uart_t uart, uart_data_bits_t data_bits, uart_parity_t parity, uart_stop_bits_t stop_bits)
Setup parity, data and stop bits for a given UART device.
unsigned int tim_t
Default timer type.
tim_t tx_timer
Hardware timer used for TX.
uart_parity_t
Definition of possible parity modes.
uint8_t flags
Soft UART flags.
Software UART port descriptor.
Low-level UART peripheral driver interface definition.
void soft_uart_poweron(soft_uart_t uart)
Power on the given UART device.
int soft_uart_init(soft_uart_t uart, uint32_t baudrate, uart_rx_cb_t rx_cb, void *arg)
Initialize a given UART device.
void soft_uart_poweroff(soft_uart_t uart)
Power off the given UART device.
Low-level GPIO peripheral driver interface definitions.
unsigned soft_uart_t
Software UART type definition.
uart_data_bits_t
Definition of possible data bits lengths in a UART frame.
uint32_t timer_freq
Operating frequency of the timer.
void(* uart_rx_cb_t)(void *arg, uint8_t data)
Signature for receive interrupt callback.