API  2.2
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
tsmart_uart_config_t Struct Reference

Configuration for UART. More...

#include <tsmart_uart.h>

Data Fields

uint32_t baud_rate
 
tsmart_uart_fc_t flow_control
 
tsmart_uart_paritybit_t parity_bit
 
tsmart_uart_wordlenght_t word_length
 
tsmart_uart_stopbit_t stop_bit
 
uint8_t * rx_buf
 
uint32_t rx_buf_sz
 
tsmart_uart_dma_t use_dma
 
tsmart_uart_tim_t use_tim
 

Detailed Description

Field Documentation

Specifies the parity mode. This parameter shall be selected amongst the following values:

  • TSMART_UART_PARITY_NO - Select without parity
  • TSMART_UART_PARITY_EVEN - Select parity even
  • TSMART_UART_PARITY_ODD - Select parity odd
Note
When parity is enabled, the computed parity is inserted at the MSB position of the transmitted data (9th bit when the word length is set to 9 data bits; 8th bit when the word length is set to 8 data bits).
Examples:
cellular_2g_ftp_receive.c, cellular_2g_tcp_client.c, cellular_2g_tcp_server.c, cumulocity_2g.c, cumulocity_wifi.c, db_uart.c, digimesh_receiver.c, freertos_timer.c, lhings_2g.c, lhings_eth.c, lhings_wifi.c, mqtt_cellular_2g_publisher.c, mqtt_cellular_2g_subscriber.c, mqtt_wifi_publisher.c, mqtt_wifi_subscriber.c, mqtt_wiznet_publisher.c, mqtt_wiznet_subscriber.c, msal_current.c, msal_digital.c, msal_voltage.c, pwr.c, rs485_receiver.c, sd_efsl.c, sd_fatfs.c, sigfox_td.c, timer.c, uart.c, watchdog.c, wifi_receiver.c, wifi_tcp_client.c, wifi_tcp_client_server.c, wifi_tcp_server.c, wiznet_tcp_client.c, wiznet_tcp_server.c, xbee802_15_4_receiver.c, xbee868_receiver.c, xv_2g.c, xv_wifi.c, and zigbee_receiver.c.