This module contains APIs to program and use DMA drivers available in the SoC with MCSPI.
Functions | |
int32_t | MCSPI_lld_dmaInit (MCSPI_DmaHandle mcspiDmaHandle) |
API to open an MCSPI DMA channel. More... | |
int32_t | MCSPI_lld_dmaDeInit (MCSPILLD_Handle hMcspi, const MCSPI_ChConfig *chCfg, uint32_t chCnt) |
API to close an MCSPI DMA channel. More... | |
int32_t | MCSPI_lld_dmaChInit (MCSPILLD_Handle hMcspi, uint32_t chCnt) |
API to init a DMA Channel opened. More... | |
int32_t | MCSPI_lld_dmaTransfer (MCSPILLD_Handle hMcspi, MCSPI_ChObject *chObj, const MCSPI_Transaction *transaction) |
API to do a DMA transfer using a specific DMA driver - UDMA, EDMA etc. More... | |
void | MCSPI_lld_dmaStop (MCSPILLD_Handle hMcspi, MCSPI_ChObject *chObj, uint32_t chNum) |
API to Stop DMA using a specific DMA driver - UDMA, EDMA etc. More... | |
int32_t MCSPI_lld_dmaInit | ( | MCSPI_DmaHandle | mcspiDmaHandle | ) |
API to open an MCSPI DMA channel.
This API will open a DMA Channel using the appropriate DMA driver callbacks and the registered via Sysconfig
mcspiDmaHandle | [in] MCSPILLD_Handle returned from MCSPI_open() |
int32_t MCSPI_lld_dmaDeInit | ( | MCSPILLD_Handle | hMcspi, |
const MCSPI_ChConfig * | chCfg, | ||
uint32_t | chCnt | ||
) |
API to close an MCSPI DMA channel.
This API will open a DMA Channel using the appropriate DMA driver callbacks registered via Sysconfig
hMcspi | [in] MCSPILLD_Handle returned from MCSPI_open() |
chCnt | [in] Channel number |
chCfg | [in] Pointer to MCSPI_ChConfig. This parameter can't be NULL |
int32_t MCSPI_lld_dmaChInit | ( | MCSPILLD_Handle | hMcspi, |
uint32_t | chCnt | ||
) |
API to init a DMA Channel opened.
This API will open a DMA Channel using the appropriate DMA driver callbacks registered via Sysconfig
hMcspi | [in] MCSPILLD_Handle returned from MCSPI_open() |
chCnt | [in] Channel number |
int32_t MCSPI_lld_dmaTransfer | ( | MCSPILLD_Handle | hMcspi, |
MCSPI_ChObject * | chObj, | ||
const MCSPI_Transaction * | transaction | ||
) |
API to do a DMA transfer using a specific DMA driver - UDMA, EDMA etc.
Typically this callback is hidden from the end application and is implemented when a new DMA driver needs to be supported.
hMcspi | [in] MCSPILLD_Handle returned from MCSPI_open() |
chObj | [in] Pointer to MCSPI_ChObject. This parameter can't be NULL |
transaction | [in] Pointer to MCSPI_Transaction. This parameter can't be NULL |
void MCSPI_lld_dmaStop | ( | MCSPILLD_Handle | hMcspi, |
MCSPI_ChObject * | chObj, | ||
uint32_t | chNum | ||
) |
API to Stop DMA using a specific DMA driver - UDMA, EDMA etc.
Typically this callback is hidden from the end application and is implemented when a new DMA driver needs to be supported.
hMcspi | [in] MCSPILLD_Handle returned from MCSPI_open() |
chObj | [in] Pointer to MCSPI_ChObject. This parameter can't be NULL |
chNum | [in] Channel number |