|
SemiDrive SSDK Appication Program Interface PTG3.0
|
#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 |
| uint8_t abr_en |
Auto baudrate detect enable/disable
| uint32_t base |
Uart module base
| 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.
| uint32_t clk_freq |
Uart clk freq
| sdrv_uart_dls_e data_bits |
Number of data bits in one character
| bool dma_en |
Uart dma enable status
Flow control mode
| uint32_t irq |
Uart module irq num
| sdrv_abr_max_e match_num |
The character number that abr expect to recv and match
| sdrv_uart_parity_e parity |
Parity type
| sdrv_rxidle_ctl_e rx_idle |
The time of high level on rx line to detect idle.
| uint8_t rxwmlvl |
Receive water level
| sdrv_uart_stop_e stop_bits |
Number of stop bits
| uint8_t txwmlvl |
Transmit water level