AM64x MCU+ SDK  08.02.00
mcspi_dma.h File Reference

Introduction

MCSPI DMA header file.

Go to the source code of this file.

Data Structures

struct  MCSPI_DmaFxns
 Driver implementation callbacks. More...
 
struct  MCSPI_DmaConfig
 MCSPI DMA Configuration, these are filled by SysCfg based on the DMA driver that is selected. More...
 

Typedefs

typedef void * MCSPI_DmaHandle
 Handle to the MCSPI DMA Config Object returned by MCSPI_dmaOpen. More...
 
typedef int32_t(* MCSPI_dmaOpenFxn) (void *mcspiDmaArgs)
 Driver implementation to open a specific DMA driver channel - UDMA, EDMA etc. More...
 
typedef int32_t(* MCSPI_dmaCloseFxn) (MCSPI_Handle handle, const MCSPI_ChConfig *chCfg)
 Driver implementation to close a specific DMA driver channel - UDMA, EDMA etc. More...
 
typedef int32_t(* MCSPI_dmaChInitFxn) (MCSPI_Handle handle, const MCSPI_ChConfig *chCfg, const MCSPI_DmaChConfig *dmaChCfg)
 Driver implementation to init a DMA channel params using a specific DMA driver - UDMA, EDMA etc. More...
 
typedef int32_t(* MCSPI_dmaTransferMasterFxn) (MCSPI_Object *obj, MCSPI_ChObject *chObj, const MCSPI_Attrs *attrs, MCSPI_Transaction *transaction)
 Driver implementation to do a DMA transfer using a specific DMA driver - UDMA, EDMA etc. More...
 
typedef int32_t(* MCSPI_dmaStopFxn) (MCSPI_Object *obj, const MCSPI_Attrs *attrs, MCSPI_ChObject *chObj, uint32_t chNum)
 Driver implementation to Stop DMA using a specific DMA driver - UDMA, EDMA etc. More...
 

Functions

MCSPI_DmaHandle MCSPI_dmaOpen (int32_t index)
 API to open an MCSPI DMA channel. More...
 
int32_t MCSPI_dmaClose (MCSPI_Handle handle, const MCSPI_ChConfig *chCfg)
 API to close an MCSPI DMA channel. More...
 
int32_t MCSPI_dmaChInit (MCSPI_Handle handle, const MCSPI_ChConfig *chCfg, const MCSPI_DmaChConfig *dmaChCfg)
 API to init a DMA Channel opened. More...
 
int32_t MCSPI_dmaTransfer (MCSPI_Object *obj, MCSPI_ChObject *chObj, const MCSPI_Attrs *attrs, MCSPI_Transaction *transaction)
 API to do a DMA transfer using a specific DMA driver - UDMA, EDMA etc. More...
 
int32_t MCSPI_dmaStop (MCSPI_Object *obj, const MCSPI_Attrs *attrs, MCSPI_ChObject *chObj, uint32_t chNum)
 API to Stop DMA using a specific DMA driver - UDMA, EDMA etc. More...