iLLD_TC27xD  1.0
Move Engine functions
Collaboration diagram for Move Engine functions:

Functions

IFX_INLINE void IfxDma_clearErrorFlags (Ifx_DMA *dma, IfxDma_MoveEngine moveEngine, uint32 mask)
 Clear the DMA error status flags. More...
 
IFX_INLINE void IfxDma_disableMoveEngineDestinationError (Ifx_DMA *dma, IfxDma_MoveEngine moveEngine)
 Disable the generation of a Move engine destination error interrupt. More...
 
IFX_INLINE void IfxDma_disableMoveEngineSourceError (Ifx_DMA *dma, IfxDma_MoveEngine moveEngine)
 Disable the generation of a Move engine source error interrupt. More...
 
IFX_INLINE void IfxDma_enableMoveEngineDestinationError (Ifx_DMA *dma, IfxDma_MoveEngine moveEngine)
 Enable the generation of a Move engine destination error interrupt. More...
 
IFX_INLINE void IfxDma_enableMoveEngineSourceError (Ifx_DMA *dma, IfxDma_MoveEngine moveEngine)
 Enable the generation of a Move engine source error interrupt. More...
 
IFX_INLINE uint32 IfxDma_getErrorFlags (Ifx_DMA *dma, IfxDma_MoveEngine moveEngine)
 Return the DMA error status flags. More...
 

Detailed Description

Function Documentation

IFX_INLINE void IfxDma_clearErrorFlags ( Ifx_DMA *  dma,
IfxDma_MoveEngine  moveEngine,
uint32  mask 
)

Clear the DMA error status flags.

Parameters
dmapointer to DMA module
moveEnginepointer to the DMA move engine
maskvalue holds the bits to clear or mask
Returns
None
// Clear the status of the error flags (as defined in _Impl/IfxDma_cfg.h)
IFXDMA_ERROR_S | // move engine source error
IFXDMA_ERROR_D | // move engine destination error
IFXDMA_ERROR_SPB | // bus error on SPB
IFXDMA_ERROR_SRI | // bus error on SRI
IFXDMA_ERROR_RAM | // RAM error
IFXDMA_ERROR_SLL | // safe linked list CRC checksum error
IFXDMA_ERROR_DLL); // failed linked list load error

Definition at line 1165 of file IfxDma.h.

IFX_INLINE void IfxDma_disableMoveEngineDestinationError ( Ifx_DMA *  dma,
IfxDma_MoveEngine  moveEngine 
)

Disable the generation of a Move engine destination error interrupt.

Parameters
dmapointer to DMA module
moveEnginepointer to the DMA move engine
Returns
None

A coding example can be found in IfxDma_disableMoveEngineSourceError

Definition at line 1196 of file IfxDma.h.

IFX_INLINE void IfxDma_disableMoveEngineSourceError ( Ifx_DMA *  dma,
IfxDma_MoveEngine  moveEngine 
)

Disable the generation of a Move engine source error interrupt.

Parameters
dmapointer to DMA module
moveEnginepointer to the DMA move engine
Returns
None
// Disable the move engine source and destination move errors

Definition at line 1209 of file IfxDma.h.

IFX_INLINE void IfxDma_enableMoveEngineDestinationError ( Ifx_DMA *  dma,
IfxDma_MoveEngine  moveEngine 
)

Enable the generation of a Move engine destination error interrupt.

Parameters
dmapointer to DMA module
moveEnginepointer to the DMA move engine
Returns
None

A coding example can be found in IfxDma_enableMoveEngineSourceError

Definition at line 1240 of file IfxDma.h.

IFX_INLINE void IfxDma_enableMoveEngineSourceError ( Ifx_DMA *  dma,
IfxDma_MoveEngine  moveEngine 
)

Enable the generation of a Move engine source error interrupt.

Parameters
dmapointer to DMA module
moveEnginepointer to the DMA move engine
Returns
None
// Enable the move engine source and destination move errors

Definition at line 1253 of file IfxDma.h.

IFX_INLINE uint32 IfxDma_getErrorFlags ( Ifx_DMA *  dma,
IfxDma_MoveEngine  moveEngine 
)

Return the DMA error status flags.

Parameters
dmapointer to DMA module
moveEnginepointer to the DMA move engine
Returns
the content of the DMA.ERRSR register
uint32 errorFlags = 0;
// Get the status of the error flags of move engine
errorFlags = IfxDma_getErrorFlags(chn[0].dma,IfxDma_MoveEngine_1);
if( errorFlags & IFXDMA_ERROR_S ) { // move engine source error
}
if( errorFlags & IFXDMA_ERROR_D ) { // move engine destination error
// ...
}
if( errorFlags & IFXDMA_ERROR_SPB ) { // bus error on SPB
// ...
}
if( errorFlags & IFXDMA_ERROR_SRI ) { // bus error on SRI
// ...
}
if( errorFlags & IFXDMA_ERROR_RAM ) { // RAM error
// ...
}
if( errorFlags & IFXDMA_ERROR_SLL ) { // safe linked list CRC checksum error
// ...
}
if( errorFlags & IFXDMA_ERROR_DLL ) { // failed linked list load error
// ...
}

Definition at line 1399 of file IfxDma.h.