# wifiiot\_spi.h ## **Overview** **Related Modules:** [Wifiiot](Wifiiot.md) **Description:** Declares the SPI interface functions. These functions are used for SPI initialization, deinitialization, and data transmission. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Structures
SpiIsrFunc) (void) |
Indicates the SPI callback, which is used in SpiRegisterUsrFunc. |
SpiSlaveWrite (WifiIotSpiIdx spiId, char *writeData, unsigned int byteLen, unsigned int timeOutMs) |
|
SpiSlaveRead (WifiIotSpiIdx spiId, char *readData, unsigned int byteLen, unsigned int timeOutMs) |
|
SpiHostWrite (WifiIotSpiIdx spiId, char *writeData, unsigned int byteLen) |
|
SpiHostRead (WifiIotSpiIdx spiId, char *readData, unsigned int byteLen) |
|
SpiHostWriteread (WifiIotSpiIdx spiId, char *writeData, char *readData, unsigned int byteLen) |
|
SpiSetBasicInfo (WifiIotSpiIdx spiId, const WifiIotSpiCfgBasicInfo *param) |
|
SpiInit (WifiIotSpiIdx spiId, WifiIotSpiCfgInitParam initParam, const WifiIotSpiCfgBasicInfo *param) |
|
SpiDeinit (WifiIotSpiIdx spiId) |
|
SpiSetIrqMode (WifiIotSpiIdx spiId, unsigned char irqEn) |
Sets whether to enable the interrupt request (IRQ) mode for an SPI device. |
SpiSetDmaMode (WifiIotSpiIdx spiId, unsigned char dmaEn) |
Sets whether to enable DMA to transfer data for an SPI device in slave mode. |
SpiRegisterUsrFunc (WifiIotSpiIdx spiId, SpiIsrFunc prepareF, SpiIsrFunc restoreF) |
|
SpiSetLoopBackMode (WifiIotSpiIdx spiId, unsigned char lbEn) |