UART configuration.

Public Attributes#

uint8_t *

Poniter to transmit buffer.

size_t

Size of transmit buffer.

uint8_t *

Poniter to receive buffer.

size_t

Size of receive buffer.

uint32_t

Baud rate of UART.

uint8_t

Defines amount of data bits in the UART frame.

Defines parity bit in the UART frame.

Define stop bit in the UART frame.

Expect this callback to be invoked in interrupt context.

const void *

This can be used for anything, but might not work for all platform implementations.

uint8_t

Configuration flags.

Public Attribute Documentation#

id#

zpal_uart_id_t zpal_uart_config_t::id

UART ID.


tx_buffer#

uint8_t* zpal_uart_config_t::tx_buffer

Poniter to transmit buffer.


tx_buffer_len#

size_t zpal_uart_config_t::tx_buffer_len

Size of transmit buffer.


rx_buffer#

uint8_t* zpal_uart_config_t::rx_buffer

Poniter to receive buffer.


rx_buffer_len#

size_t zpal_uart_config_t::rx_buffer_len

Size of receive buffer.


baud_rate#

uint32_t zpal_uart_config_t::baud_rate

Baud rate of UART.


data_bits#

uint8_t zpal_uart_config_t::data_bits

Defines amount of data bits in the UART frame.


parity_bit#

zpal_uart_parity_bit_t zpal_uart_config_t::parity_bit

Defines parity bit in the UART frame.


stop_bits#

zpal_uart_stop_bits_t zpal_uart_config_t::stop_bits

Define stop bit in the UART frame.


receive_callback#

zpal_uart_receive_callback_t zpal_uart_config_t::receive_callback

Expect this callback to be invoked in interrupt context.


ptr#

const void* zpal_uart_config_t::ptr

This can be used for anything, but might not work for all platform implementations.


flags#

uint8_t zpal_uart_config_t::flags

Configuration flags.