mikroSDK Reference Manual
|
UART HAL init configuration structure, consisted of the following fields : More...
Data Fields | |
hal_pin_name_t | tx_pin |
hal_pin_name_t | rx_pin |
uint32_t | baud |
hal_uart_data_bits_t | data_bits |
hal_uart_parity_t | parity |
hal_uart_stop_bits_t | stop_bits |
ring_buf8_t | tx_buf |
ring_buf8_t | rx_buf |
size_t | tx_ring_size |
size_t | rx_ring_size |
User needs to specifiy values herein.
Example
hal_pin_name_t hal_uart_config_t::tx_pin |
Tx pin.
hal_pin_name_t hal_uart_config_t::rx_pin |
Rx pin.
uint32_t hal_uart_config_t::baud |
Baud rate.
hal_uart_data_bits_t hal_uart_config_t::data_bits |
Data bits. See hal_uart_data_bits_t for valid values.
hal_uart_parity_t hal_uart_config_t::parity |
Parity bits. See hal_uart_parity_t for valid values.
hal_uart_stop_bits_t hal_uart_config_t::stop_bits |
Stop bits. See hal_uart_stop_bits_t for valid values.
ring_buf8_t hal_uart_config_t::tx_buf |
Tx buffer.
ring_buf8_t hal_uart_config_t::rx_buf |
Rx buffer.
size_t hal_uart_config_t::tx_ring_size |
Tx ring size.
size_t hal_uart_config_t::rx_ring_size |
Rx ring size.