|
Azure Sphere MT3620 M4 API Reference Manual
|
I/O INTERFACE between SPI OS-HAL and M-HAL. More...
#include <mhal_spis.h>
Data Fields | |
| void * | tx_buf |
| Data to be written (DMA-safe memory), or NULL. | |
| void * | rx_buf |
| Data to be read (DMA-safe memory), or NULL. | |
| unsigned int | len |
| Size of rx and tx buffers (in bytes) | |
| int | direction |
| Spim read or write data, 0: Read(spis TX), 1: Write(spis RX) | |
| int | use_dma |
| Spis support FIFO and DMA mode, 0:FIFO, 1: DMA. | |
I/O INTERFACE between SPI OS-HAL and M-HAL.
struct mtk_spis_transfer needs to be configured before each transfer,
User should always provide rx_buf or tx_buf, others are copied by parsing H2DMB