S32 SDK
edma_hal.c File Reference
#include "edma_hal.h"

Go to the source code of this file.

Functions

void EDMA_HAL_Init (DMA_Type *base)
 Initializes eDMA module to known state. More...
 
void EDMA_HAL_CancelTransfer (DMA_Type *base)
 Cancels the remaining data transfer. More...
 
void EDMA_HAL_CancelTransferWithError (DMA_Type *base)
 Cancels the remaining data transfer and treats it as an error condition. More...
 
void EDMA_HAL_SetErrorIntCmd (DMA_Type *base, uint8_t channel, bool enable)
 Enables/Disables the error interrupt for channels. More...
 
void EDMA_HAL_SetDmaRequestCmd (DMA_Type *base, uint8_t channel, bool enable)
 Enables/Disables the DMA request for the channel or all channels. More...
 
void EDMA_HAL_TCDClearReg (DMA_Type *base, uint32_t channel)
 Clears all registers to 0 for the hardware TCD. More...
 
void EDMA_HAL_TCDSetAttribute (DMA_Type *base, uint32_t channel, edma_modulo_t srcModulo, edma_modulo_t destModulo, edma_transfer_size_t srcTransferSize, edma_transfer_size_t destTransferSize)
 Configures the transfer attribute for the eDMA channel. More...
 
void EDMA_HAL_TCDSetNbytes (DMA_Type *base, uint32_t channel, uint32_t nbytes)
 Configures the nbytes for the eDMA channel. More...
 
uint32_t EDMA_HAL_TCDGetNbytes (const DMA_Type *base, uint32_t channel)
 Gets the nbytes configuration data for the TCD. More...
 
void EDMA_HAL_TCDSetMinorLoopOffset (DMA_Type *base, uint32_t channel, int32_t offset)
 Configures the minor loop offset for the TCD. More...
 
void EDMA_HAL_TCDSetScatterGatherLink (DMA_Type *base, uint32_t channel, uint32_t nextTCDAddr)
 Configures the memory address for the next transfer TCD for the TCD. More...
 
void EDMA_HAL_TCDSetChannelMinorLink (DMA_Type *base, uint32_t channel, uint32_t linkChannel, bool enable)
 Sets the channel minor link for the TCD. More...
 
void EDMA_HAL_TCDSetMajorCount (DMA_Type *base, uint32_t channel, uint32_t count)
 Sets the major iteration count according to minor loop channel link setting. More...
 
uint32_t EDMA_HAL_TCDGetBeginMajorCount (const DMA_Type *base, uint32_t channel)
 Returns the begin major iteration count. More...
 
uint32_t EDMA_HAL_TCDGetCurrentMajorCount (const DMA_Type *base, uint32_t channel)
 Returns the current major iteration count. More...
 
uint32_t EDMA_HAL_TCDGetUnfinishedBytes (const DMA_Type *base, uint32_t channel)
 Gets the number of bytes haven't transferred for the TCD. More...
 
uint32_t EDMA_HAL_TCDGetFinishedBytes (const DMA_Type *base, uint32_t channel)
 Gets the number of bytes already transferred for the TCD. More...