UART configuration. More...
#include <zpal_uart.h>
Data Fields | |
zpal_uart_id_t | id |
UART ID. | |
uint8_t * | tx_buffer |
Poniter to transmit buffer. | |
size_t | tx_buffer_len |
Size of transmit buffer. | |
uint8_t * | rx_buffer |
Poniter to receive buffer. | |
size_t | rx_buffer_len |
Size of receive buffer. | |
uint32_t | baud_rate |
Baud rate of UART. | |
uint8_t | data_bits |
Defines amount of data bits in the UART frame. | |
zpal_uart_parity_bit_t | parity_bit |
Defines parity bit in the UART frame. | |
zpal_uart_stop_bits_t | stop_bits |
Define stop bit in the UART frame. | |
zpal_uart_receive_callback_t | receive_callback |
Expect this callback to be invoked in interrupt context. | |
const void * | ptr |
This can be used for anything, but might not work for all platform implementations. | |
uint8_t | flags |
Configuration flags. | |
UART configuration.
uint32_t zpal_uart_config_t::baud_rate |
Baud rate of UART.
uint8_t zpal_uart_config_t::data_bits |
Defines amount of data bits in the UART frame.
uint8_t zpal_uart_config_t::flags |
Configuration flags.
zpal_uart_id_t zpal_uart_config_t::id |
UART ID.
zpal_uart_parity_bit_t zpal_uart_config_t::parity_bit |
Defines parity bit in the UART frame.
const void* zpal_uart_config_t::ptr |
This can be used for anything, but might not work for all platform implementations.
zpal_uart_receive_callback_t zpal_uart_config_t::receive_callback |
Expect this callback to be invoked in interrupt context.
uint8_t* zpal_uart_config_t::rx_buffer |
Poniter to receive buffer.
size_t zpal_uart_config_t::rx_buffer_len |
Size of receive buffer.
zpal_uart_stop_bits_t zpal_uart_config_t::stop_bits |
Define stop bit in the UART frame.
uint8_t* zpal_uart_config_t::tx_buffer |
Poniter to transmit buffer.
size_t zpal_uart_config_t::tx_buffer_len |
Size of transmit buffer.