SAMV71 Xplained Ultra Software Package 1.4

xdmad.c File Reference

#include "chip.h"
#include <assert.h>

Go to the source code of this file.

Functions

void XDMAD_Initialize (sXdmad *pXdmad, uint8_t bPollingMode)
 Initialize xDMA driver instance.
uint32_t XDMAD_AllocateChannel (sXdmad *pXdmad, uint8_t bSrcID, uint8_t bDstID)
 Allocate a XDMA channel for upper layer.
eXdmadRC XDMAD_FreeChannel (sXdmad *pXdmad, uint32_t dwChannel)
 Free the specified xDMA channel.
eXdmadRC XDMAD_SetCallback (sXdmad *pXdmad, uint32_t dwChannel, XdmadTransferCallback fCallback, void *pArg)
 Set the callback function for xDMA channel transfer.
eXdmadRC XDMAD_PrepareChannel (sXdmad *pXdmad, uint32_t dwChannel)
 Enable clock of the xDMA peripheral, Enable the dma peripheral, configure configuration register for xDMA transfer.
void XDMAD_Handler (sXdmad *pDmad)
 xDMA interrupt handler
eXdmadRC XDMAD_IsTransferDone (sXdmad *pXdmad, uint32_t dwChannel)
 Check if DMA transfer is finished. In polling mode XDMAD_Handler() is polled.
eXdmadRC XDMAD_ConfigureTransfer (sXdmad *pXdmad, uint32_t dwChannel, sXdmadCfg *pXdmaParam, uint32_t dwXdmaDescCfg, uint32_t dwXdmaDescAddr, uint32_t dwXdmaIntEn)
 Configure DMA for a single transfer.
eXdmadRC XDMAD_StartTransfer (sXdmad *pXdmad, uint32_t dwChannel)
 Start xDMA transfer.
eXdmadRC XDMAD_StopTransfer (sXdmad *pXdmad, uint32_t dwChannel)
 Stop DMA transfer.

Detailed Description

Definition in file xdmad.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines