iLLD_TC27xD  1.0
Interrupt functions
Collaboration diagram for Interrupt functions:

Functions

IFX_INLINE void IfxDma_clearChannelInterrupt (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 Clear a channel transfer interrupt flag. More...
 
IFX_INLINE void IfxDma_disableChannelInterrupt (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 Disable channel interrupt trigger. More...
 
IFX_INLINE void IfxDma_enableChannelInterrupt (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 Enable channel interrupt trigger. More...
 
IFX_INLINE boolean IfxDma_getAndClearChannelInterrupt (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 Return and clear a channel transfer interrupt flag The flag is automatically cleared with the call to this function. More...
 
IFX_INLINE boolean IfxDma_getAndClearChannelPatternDetectionInterrupt (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 Returns and clears the pattern detection interrupt flag. More...
 
IFX_INLINE boolean IfxDma_getAndClearChannelWrapDestinationBufferInterrupt (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 Returns and clears the status of channel wrap destination buffer interrupt trigger flag. More...
 
IFX_INLINE boolean IfxDma_getAndClearChannelWrapSourceBufferInterrupt (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 Returns and clears the status of channel wrap source buffer interrupt trigger flag. More...
 
IFX_INLINE boolean IfxDma_getChannelInterrupt (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 Return a channel transfer interrupt flag. More...
 
IFX_INLINE boolean IfxDma_getChannelPatternDetectionOldValue (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 Returns whether the old value of pattern detection corresponding pattern comparison operation found a pattern match in previous DMA * read move or not. More...
 
IFX_INLINE volatile Ifx_SRC_SRCR * IfxDma_getSrcPointer (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 Returns the SRC pointer for given DMA channel. More...
 
IFX_INLINE void IfxDma_setChannelInterruptServiceRequest (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 Setting of channel interrupt service request by software. More...
 

Detailed Description

Function Documentation

IFX_INLINE void IfxDma_clearChannelInterrupt ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

Clear a channel transfer interrupt flag.

Parameters
dmapointer to DMA module
channelIdchannel for which the interrupt flag should be cleared
Returns
None

see Dma.INTSR

Definition at line 1153 of file IfxDma.h.

Referenced by IfxDma_Dma_clearChannelInterrupt(), and IfxQspi_SpiMaster_isrDmaTransmit().

IFX_INLINE void IfxDma_disableChannelInterrupt ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

Disable channel interrupt trigger.

Parameters
dmapointer to DMA module
channelIdDMA channel number
Returns
None
IfxDma_disableChannelInterrupt(chn[0].dma, chn[0].channelId);

Definition at line 1178 of file IfxDma.h.

IFX_INLINE void IfxDma_enableChannelInterrupt ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

Enable channel interrupt trigger.

Parameters
dmapointer to DMA module
channelIdDMA channel number
Returns
None
IfxDma_enableChannelInterrupt(chn[0].dma, chn[0].channelId);

Definition at line 1222 of file IfxDma.h.

IFX_INLINE boolean IfxDma_getAndClearChannelInterrupt ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

Return and clear a channel transfer interrupt flag The flag is automatically cleared with the call to this function.

Parameters
dmapointer to DMA module
channelIdDMA channel number
Returns
TRUE if the interrupt flag is set FALSE if the interrupt flag is not set
// wait for the end of transaction for intended channel by checking the channel interrupt flag
// and clear it once it is set and checked
// Wait till end of the transaction
while(!(IfxDma_getAndClearChannelInterrupt(chn[2].dma, chn[2].channelId)));

Definition at line 1266 of file IfxDma.h.

Referenced by IfxDma_Dma_getAndClearChannelInterrupt(), IfxQspi_SpiMaster_isrDmaReceive(), IfxQspi_SpiMaster_isrDmaTransmit(), IfxQspi_SpiMaster_isrError(), IfxQspi_SpiSlave_isrDmaReceive(), IfxQspi_SpiSlave_isrDmaTransmit(), and IfxQspi_SpiSlave_isrError().

IFX_INLINE boolean IfxDma_getAndClearChannelPatternDetectionInterrupt ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

Returns and clears the pattern detection interrupt flag.

Parameters
dmapointer to DMA module
channelIdDMA channel number
Returns
TRUE if pattern detection for a given channel is found FALSE if pattern detection for a given channel is not found
// wait till pattern match is found for given channel
// and clear it once it is set and checked
// Wait for the pattern detection
while(!(IfxDma_getAndClearChannelPatternDetectionInterrupt(chn[0].dma, chn[0].channelId)));

Definition at line 1281 of file IfxDma.h.

Referenced by IfxQspi_SpiMaster_isrDmaReceive(), IfxQspi_SpiMaster_isrDmaTransmit(), IfxQspi_SpiSlave_isrDmaReceive(), and IfxQspi_SpiSlave_isrDmaTransmit().

IFX_INLINE boolean IfxDma_getAndClearChannelWrapDestinationBufferInterrupt ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

Returns and clears the status of channel wrap destination buffer interrupt trigger flag.

Parameters
dmapointer to DMA module
channelIdDMA channel number
Returns
TRUE if wrap destination buffer interrupt trigger flag is set FALSE if wrap destination buffer interrupt trigger flag is not set or get cleared already
// wait for the destination buffer wrap interrupt flag
// and clear it once it is set and checked
boolean destinationWrapFlag;
destinationWrapFlag = IfxDma_getAndClearChannelWrapDestinationBufferInterrupt(chn[0].dma, chn[0].channelId);

Definition at line 1296 of file IfxDma.h.

IFX_INLINE boolean IfxDma_getAndClearChannelWrapSourceBufferInterrupt ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

Returns and clears the status of channel wrap source buffer interrupt trigger flag.

Parameters
dmapointer to DMA module
channelIdDMA channel number
Returns
TRUE if wrap source buffer interrupt trigger flag is set FALSE if wrap source buffer interrupt trigger flag is not set or get cleared already
// wait for the source buffer wrap interrupt flag
// and clear it once it is set and checked
boolean sourceWrapFlag;
sourceWrapFlag = IfxDma_getAndClearChannelWrapSourceBufferInterrupt(chn[0].dma, chn[0].channelId);

Definition at line 1311 of file IfxDma.h.

IFX_INLINE boolean IfxDma_getChannelInterrupt ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

Return a channel transfer interrupt flag.

Parameters
dmapointer to DMA module
channelIdchannel for which the interrupt flag should be returned
Returns
TRUE if the interrupt flag is set FALSE if the interrupt flag is not set

see Dma.INTSR

Definition at line 1338 of file IfxDma.h.

Referenced by IfxDma_Dma_getChannelInterrupt().

IFX_INLINE boolean IfxDma_getChannelPatternDetectionOldValue ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

Returns whether the old value of pattern detection corresponding pattern comparison operation found a pattern match in previous DMA * read move or not.

Parameters
dmapointer to DMA module
channelIdDMA channel number
Returns
TRUE if corresponding pattern comparison operation found a pattern match in previous DMA read move or not FALSE if corresponding pattern comparison operation did not find a pattern match in previous DMA read move
boolean patternDetectOldVal;
// Check the old value of the pattern detection
patternDetectOldVal = IfxDma_getChannelPatternDetectionOldValue(chn[0].dma, chn[0].channelId);

Definition at line 1348 of file IfxDma.h.

IFX_INLINE volatile Ifx_SRC_SRCR * IfxDma_getSrcPointer ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

Returns the SRC pointer for given DMA channel.

Parameters
dmapointer to DMA module
channelIdDMA channel number
Returns
SRC pointer for given DMA channel

Definition at line 1412 of file IfxDma.h.

Referenced by IfxDma_Dma_getSrcPointer(), IfxDma_Dma_initChannel(), IfxQspi_SpiMaster_initModule(), and IfxQspi_SpiSlave_initModule().

IFX_INLINE void IfxDma_setChannelInterruptServiceRequest ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

Setting of channel interrupt service request by software.

Parameters
dmapointer to DMA module
channelIdDMA channel number
Returns
None
// Set the channel interrupt service request through software
IfxDma_setChannelInterruptServiceRequest(chn[0].dma, chn[0].channelId);

Definition at line 1490 of file IfxDma.h.