SemiDrive SSDK Appication Program Interface PTG3.0
Data Fields
sdrv_uart

#include <sdrv_uart.h>

Data Fields

uint32_t base
 
uint32_t irq
 
uint32_t baud
 
uint32_t clk_freq
 
volatile sdrv_uart_transfer_type_e rxtransfer_type
 
volatile sdrv_uart_transfer_type_e txtransfer_type
 
const uint8_t * tx_ptr
 
volatile uint32_t tx_remain
 
uart_callback_t tx_async_cb
 
void * tx_userparam
 
uint8_t * rx_ptr
 
volatile uint32_t rx_remain
 
uart_callback_t rx_async_cb
 
void * rx_userparam
 
uart_callback_t callback
 
void * userData
 
volatile sdrv_uart_transfer_status_e tx_state
 
volatile sdrv_uart_transfer_status_e rx_state
 
volatile uint8_t abr_count
 
volatile sdrv_uart_transfer_status_e abr_state
 
sdrv_dma_channel_trx_dmachannel
 
sdrv_dma_channel_ttx_dmachannel
 
sdrv_rxidle_ctl_e rx_idle
 

Member Function Documentation

◆ __attribute__() [1/2]

sdrv_dma_linklist_descriptor_t rx_dma_linklist[NUM_LINKLIST_ITEMS] __attribute__ ( (__aligned__(CONFIG_ARCH_CACHE_LINE))  )

◆ __attribute__() [2/2]

sdrv_dma_linklist_descriptor_t tx_dma_linklist[NUM_LINKLIST_ITEMS] __attribute__ ( (__aligned__(CONFIG_ARCH_CACHE_LINE))  )

Field Documentation

◆ abr_count

volatile uint8_t abr_count

Auto baudrate detect count

◆ abr_state

volatile sdrv_uart_transfer_status_e abr_state

Auto baudrate detect status

◆ base

uint32_t base

Uart module base

◆ baud

uint32_t baud

Uart dev baud rate

◆ bytes_rxcarried

uint32_t bytes_rxcarried

◆ callback

uart_callback_t callback

Uart transmit callback function

◆ clk_freq

uint32_t clk_freq

Uart module clk freq

◆ dma_instance

sdrv_dma_t* dma_instance

◆ irq

uint32_t irq

Uart module irq num

◆ rx_async_cb

uart_callback_t rx_async_cb

Uart transmit callback function

◆ rx_dmachannel

sdrv_dma_channel_t* rx_dmachannel

The pointer of rx dma channel.

◆ rx_idle

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

◆ rx_ptr

uint8_t* rx_ptr

Pointer to current Rx character

◆ rx_remain

volatile uint32_t rx_remain

Number of remaining Rx characters in SDRV_TRANSFER_ASYNC_MODE; The size of the data to be transferred in SDRV_TRANSFER_DMA_MODE.

◆ rx_state

volatile sdrv_uart_transfer_status_e rx_state

Transmit status

◆ rx_userparam

void* rx_userparam

Uart transmit callback function user param

◆ rxtransfer_type

volatile sdrv_uart_transfer_type_e rxtransfer_type

Uart transfer mode

◆ tx_async_cb

uart_callback_t tx_async_cb

Uart transmit callback function

◆ tx_dmachannel

sdrv_dma_channel_t* tx_dmachannel

The pointer of tx dma channel.

◆ tx_ptr

const uint8_t* tx_ptr

Pointer to current Tx character

◆ tx_remain

volatile uint32_t tx_remain

Number of remaining Tx characters in SDRV_TRANSFER_ASYNC_MODE; The size of the data to be transferred in SDRV_TRANSFER_DMA_MODE.

◆ tx_state

volatile sdrv_uart_transfer_status_e tx_state

Receive status

◆ tx_userparam

void* tx_userparam

Uart transmit callback function user param

◆ txtransfer_type

volatile sdrv_uart_transfer_type_e txtransfer_type

Uart transfer mode

◆ userData

void* userData

Uart transmit callback function user param


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