#include "chip.h"Go to the source code of this file.
Defines | |
| #define | USE_SPI_DMA |
| #define | DMA_SPI_LLI 2 |
Functions | |
| uint32_t | SPID_Configure (Spid *pSpid, Spi *pSpiHw, uint8_t spiId, uint32_t spiMode, sXdmad *pXdmad) |
| Initializes the Spid structure and the corresponding SPI & DMA hardware. select value. The driver will uses DMA channel 0 for RX and DMA channel 1 for TX. The DMA channels are freed automatically when no SPI command processing. | |
| void | SPID_ConfigureCS (Spid *pSpid, uint32_t dwCS, uint32_t dwCsr) |
| Configures the parameters for the device corresponding to the cs value. | |
| uint32_t | SPID_SendCommand (Spid *pSpid, SpidCmd *pCommand) |
| Starts a SPI master transfer. This is a non blocking function. It will return as soon as the transfer is started. | |
| uint32_t | SPID_IsBusy (const Spid *pSpid) |
| Check if the SPI driver is busy. | |
Implementation for the SPI Flash with xDMA driver.
Definition in file spi_dma.c.
| #define DMA_SPI_LLI 2 |
| uint32_t SPID_Configure | ( | Spid * | pSpid, | |
| Spi * | pSpiHw, | |||
| uint8_t | spiId, | |||
| uint32_t | spiMode, | |||
| sXdmad * | pXdmad | |||
| ) |
Initializes the Spid structure and the corresponding SPI & DMA hardware. select value. The driver will uses DMA channel 0 for RX and DMA channel 1 for TX. The DMA channels are freed automatically when no SPI command processing.
| pSpid | Pointer to a Spid instance. | |
| pSpiHw | Associated SPI peripheral. | |
| spiId | SPI peripheral identifier. | |
| pDmad | Pointer to a Dmad instance. |
Definition at line 282 of file spi_dma.c.

| void SPID_ConfigureCS | ( | Spid * | pSpid, | |
| uint32_t | dwCS, | |||
| uint32_t | dwCsr | |||
| ) |
| uint32_t SPID_IsBusy | ( | const Spid * | pSpid | ) |
Starts a SPI master transfer. This is a non blocking function. It will return as soon as the transfer is started.
| pSpid | Pointer to a Spid instance. | |
| pCommand | Pointer to the SPI command to execute. |
Definition at line 335 of file spi_dma.c.

1.7.1