SemiDrive SSDK Appication Program Interface PTG3.0
Data Fields
sdrv_uart_config

#include <sdrv_uart.h>

Data Fields

uint32_t base
 
uint32_t irq
 
uint32_t baud
 
uint32_t clk_freq
 
sdrv_uart_dls_e data_bits
 
sdrv_uart_stop_e stop_bits
 
sdrv_uart_parity_e parity
 
sdrv_uart_fcm_config_t fcm
 
uint8_t abr_en
 
sdrv_abr_max_e match_num
 
uint8_t txwmlvl
 
uint8_t rxwmlvl
 
bool dma_en
 
sdrv_rxidle_ctl_e rx_idle
 

Field Documentation

◆ abr_en

uint8_t abr_en

Auto baudrate detect enable/disable

◆ base

uint32_t base

Uart module base

◆ baud

uint32_t baud

Driver will set the result of clk_freq/baud to the baudrate register. Note : User need to note the baudrate register is an integer, there is an error between the excepted value and the actual value set in the register.The baudrate error interrupt state is generated when the error exceeds 1.5%. When the value of clk_freq/baud is greater than 34, user do not need to consder the above error.

◆ clk_freq

uint32_t clk_freq

Uart clk freq

◆ data_bits

sdrv_uart_dls_e data_bits

Number of data bits in one character

◆ dma_en

bool dma_en

Uart dma enable status

◆ fcm

Flow control mode

◆ irq

uint32_t irq

Uart module irq num

◆ match_num

sdrv_abr_max_e match_num

The character number that abr expect to recv and match

◆ parity

Parity type

◆ rx_idle

The time of high level on rx line to detect idle.

◆ rxwmlvl

uint8_t rxwmlvl

Receive water level

◆ stop_bits

sdrv_uart_stop_e stop_bits

Number of stop bits

◆ txwmlvl

uint8_t txwmlvl

Transmit water level


The documentation for this struct was generated from the following file: