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

M-HAL privite structure. More...

#include <mhal_spim.h>

Data Fields

u8 * tx_buf
 used for tx temp buf
 
dma_addr_t tx_dma
 temp tx DMA physical addr, it's the PA of mtk_spi_transfer->tx_buf
 
dma_addr_t rx_dma
 temp rx DMA physical addr, it's the PA of mtk_spi_transfer->rx_buf
 
u32 xfer_len
 temp transfer len to DMA
 
void * user_data
 user_data is a OS-HAL defined parameter provided by mtk_mhal_spim_dma_done_callback_register().
 
spi_dma_done_callback dma_done_callback
 This function is used to register user's DMA done callback to OS-HAL layer.
 

Detailed Description

M-HAL privite structure.

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


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