Azure Sphere MT3620 M4 API Reference Manual
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
mtk_uart_private Struct Reference

M-HAL private structure. More...

#include <mhal_uart.h>

Data Fields

u8 dma_tx_ch
 temp tx transfer len
 
u8 dma_rx_ch
 temp rx transfer len
 
unsigned char * tx_buf
 used for tx temp buf
 
unsigned char * rx_buf
 used for rx temp buf
 
dma_addr_t tx_dma
 temp tx DMA physical addr
 
dma_addr_t rx_dma
 temp rx DMA physical addr
 
u32 tx_len
 temp tx transfer len
 
u32 rx_len
 temp rx transfer len
 
u32 tx_size
 tx transfer len
 
u32 rx_size
 tx transfer len
 
void * user_data
 user_data is a OS-HAL defined parameter provided by #mtk_mhal_uart_dma_done_callback_register().
 
uart_dma_done_callback uart_tx_dma_callback
 This function is used to register user's TX DMA done callback to OS-HAL layer.
 
uart_dma_done_callback uart_rx_dma_callback
 This function is used to register user's RX DMA done callback to OS-HAL layer.
 

Detailed Description

M-HAL private structure.

It's only used by DMA mode to program M-HAL. OS-HAL does not need to care this structure.


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