SAMV71 Xplained Ultra Software Package 1.5

xdmac.c File Reference

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

Go to the source code of this file.

Functions

uint32_t XDMAC_GetType (Xdmac *pXdmac)
 Get XDMAC global type.
uint32_t XDMAC_GetConfig (Xdmac *pXdmac)
 Get XDMAC global configuration.
uint32_t XDMAC_GetArbiter (Xdmac *pXdmac)
 Get XDMAC global weighted arbiter configuration.
void XDMAC_EnableGIt (Xdmac *pXdmac, uint8_t dwInteruptMask)
 Enables XDMAC global interrupt.
void XDMAC_DisableGIt (Xdmac *pXdmac, uint8_t dwInteruptMask)
 Disables XDMAC global interrupt.
uint32_t XDMAC_GetGItMask (Xdmac *pXdmac)
 Get XDMAC global interrupt mask.
uint32_t XDMAC_GetGIsr (Xdmac *pXdmac)
 Get XDMAC global interrupt status.
uint32_t XDMAC_GetMaskedGIsr (Xdmac *pXdmac)
 Get XDMAC masked global interrupt.
void XDMAC_EnableChannel (Xdmac *pXdmac, uint8_t channel)
 enables the relevant channel of given XDMAC.
void XDMAC_EnableChannels (Xdmac *pXdmac, uint32_t bmChannels)
 enables the relevant channels of given XDMAC.
void XDMAC_DisableChannel (Xdmac *pXdmac, uint8_t channel)
 Disables the relevant channel of given XDMAC.
void XDMAC_DisableChannels (Xdmac *pXdmac, uint32_t bmChannels)
 Disables the relevant channels of given XDMAC.
uint32_t XDMAC_GetGlobalChStatus (Xdmac *pXdmac)
 Get Global channel status of given XDMAC.
void XDMAC_SuspendReadChannel (Xdmac *pXdmac, uint8_t channel)
 Suspend the relevant channel's read.
void XDMAC_SuspendWriteChannel (Xdmac *pXdmac, uint8_t channel)
 Suspend the relevant channel's write.
void XDMAC_SuspendReadWriteChannel (Xdmac *pXdmac, uint8_t channel)
 Suspend the relevant channel's read & write.
void XDMAC_ResumeReadWriteChannel (Xdmac *pXdmac, uint8_t channel)
 Resume the relevant channel's read & write.
void XDMAC_SoftwareTransferReq (Xdmac *pXdmac, uint8_t channel)
 Set software transfer request on the relevant channel.
uint32_t XDMAC_GetSoftwareTransferStatus (Xdmac *pXdmac)
 Get software transfer status of the relevant channel.
void XDMAC_SoftwareFlushReq (Xdmac *pXdmac, uint8_t channel)
 Set software flush request on the relevant channel.
void XDMAC_EnableChannelIt (Xdmac *pXdmac, uint8_t channel, uint8_t dwInteruptMask)
 Disable interrupt with mask on the relevant channel of given XDMA.
void XDMAC_DisableChannelIt (Xdmac *pXdmac, uint8_t channel, uint8_t dwInteruptMask)
 Enable interrupt with mask on the relevant channel of given XDMA.
uint32_t XDMAC_GetChannelItMask (Xdmac *pXdmac, uint8_t channel)
 Get interrupt mask for the relevant channel of given XDMA.
uint32_t XDMAC_GetChannelIsr (Xdmac *pXdmac, uint8_t channel)
 Get interrupt status for the relevant channel of given XDMA.
uint32_t XDMAC_GetMaskChannelIsr (Xdmac *pXdmac, uint8_t channel)
 Get masked interrupt status for the relevant channel of given XDMA.
void XDMAC_SetSourceAddr (Xdmac *pXdmac, uint8_t channel, uint32_t addr)
 Set source address for the relevant channel of given XDMA.
void XDMAC_SetDestinationAddr (Xdmac *pXdmac, uint8_t channel, uint32_t addr)
 Set destination address for the relevant channel of given XDMA.
void XDMAC_SetDescriptorAddr (Xdmac *pXdmac, uint8_t channel, uint32_t addr, uint8_t ndaif)
 Set next descriptor's address & interface for the relevant channel of given XDMA.
void XDMAC_SetDescriptorControl (Xdmac *pXdmac, uint8_t channel, uint8_t config)
 Set next descriptor's configuration for the relevant channel of given XDMA.
void XDMAC_SetMicroblockControl (Xdmac *pXdmac, uint8_t channel, uint32_t ublen)
 Set microblock length for the relevant channel of given XDMA.
void XDMAC_SetBlockControl (Xdmac *pXdmac, uint8_t channel, uint16_t blen)
 Set block length for the relevant channel of given XDMA.
void XDMAC_SetChannelConfig (Xdmac *pXdmac, uint8_t channel, uint32_t config)
 Set configuration for the relevant channel of given XDMA.
uint32_t XDMAC_GetChannelConfig (Xdmac *pXdmac, uint8_t channel)
 Get the relevant channel's configuration of given XDMA.
void XDMAC_SetDataStride_MemPattern (Xdmac *pXdmac, uint8_t channel, uint32_t dds_msp)
 Set the relevant channel's data stride memory pattern of given XDMA.
void XDMAC_SetSourceMicroBlockStride (Xdmac *pXdmac, uint8_t channel, uint32_t subs)
 Set the relevant channel's source microblock stride of given XDMA.
void XDMAC_SetDestinationMicroBlockStride (Xdmac *pXdmac, uint8_t channel, uint32_t dubs)
 Set the relevant channel's destination microblock stride of given XDMA.
uint32_t XDMAC_GetChDestinationAddr (Xdmac *pXdmac, uint8_t channel)
 Get the relevant channel's destination address of given XDMA.

Detailed Description

Implementation of xDMA controller (XDMAC).

Definition in file xdmac.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines