iLLD_TC27xD  1.0
Double Buffer functions
Collaboration diagram for Double Buffer functions:

Functions

IFX_INLINE boolean IfxDma_getDoubleBufferRead (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 get information on buffer being read by software and clear the notification flag More...
 
IFX_INLINE boolean IfxDma_getDoubleBufferSelection (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 get Double buffer selection More...
 
IFX_INLINE void IfxDma_keepDoubleBufferActive (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 keeps the double buffer active More...
 
IFX_INLINE void IfxDma_switchDoubleBuffer (Ifx_DMA *dma, IfxDma_ChannelId channelId)
 Double buffer switch application. More...
 

Detailed Description

Function Documentation

IFX_INLINE boolean IfxDma_getDoubleBufferRead ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

get information on buffer being read by software and clear the notification flag

Parameters
dmapointer to DMA module
channelIdDMA channel number
Returns
TRUE if one of the buffers is being read by software FALSE if one of the buffers is already read by software
// Check the buffer being read (Double buffer operation mode)
while(!(IfxDma_getDoubleBufferRead(chn[0].dma, chn[0].channelId)));

Definition at line 1378 of file IfxDma.h.

IFX_INLINE boolean IfxDma_getDoubleBufferSelection ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

get Double buffer selection

Parameters
dmapointer to DMA module
channelIdchannelId DMA channel number
Returns
TRUE if buffer 1 is being filled FALSE if buffer 0 is being filled
boolean buffer_being_filled;
// Check the buffer being filled (Double buffer operation mode)
buffer_being_filled = IfxDma_getDoubleBufferSelection(chn[0].dma, chn[0].channelId));

Definition at line 1393 of file IfxDma.h.

IFX_INLINE void IfxDma_keepDoubleBufferActive ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

keeps the double buffer active

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

Definition at line 1443 of file IfxDma.h.

IFX_INLINE void IfxDma_switchDoubleBuffer ( Ifx_DMA *  dma,
IfxDma_ChannelId  channelId 
)

Double buffer switch application.

Parameters
dmapointer to DMA module
channelIdDMA channel number
Returns
None
// Apply software buffer switch
IfxDma_switchDoubleBuffer(chn[0].dma, chn[0].channelId);

Definition at line 1564 of file IfxDma.h.