mikroSDK Reference Manual
|
UART init configuration structure, consisted of the following fields : More...
Data Fields | |
pin_name_t | tx_pin |
pin_name_t | rx_pin |
uint32_t | baud |
uart_data_bits_t | data_bits |
uart_parity_t | parity |
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 specify values herein.
Example
pin_name_t uart_config_t::tx_pin |
Tx pin.
pin_name_t uart_config_t::rx_pin |
Rx pin.
uint32_t uart_config_t::baud |
Baud rate.
uart_data_bits_t uart_config_t::data_bits |
Data bits.
uart_parity_t uart_config_t::parity |
Parity bits.
uart_stop_bits_t uart_config_t::stop_bits |
Stop bits.
ring_buf8_t uart_config_t::tx_buf |
Tx buffer.
ring_buf8_t uart_config_t::rx_buf |
Rx buffer.
size_t uart_config_t::tx_ring_size |
Tx ring size.
size_t uart_config_t::rx_ring_size |
Rx ring size.