iLLD_TC27xD  1.0
Queue Request Functions
Collaboration diagram for Queue Request Functions:

Functions

IFX_INLINE void IfxVadc_addToQueue (Ifx_VADC_G *group, IfxVadc_ChannelId channel, uint32 options)
 Add an entry to the queue of a group for the specified channel with the following options set: refill incase of aborted conversion source interrupt enable/disable external trigger control of the aborted conversion. More...
 
IFX_INLINE void IfxVadc_clearQueue (Ifx_VADC_G *vadcG, boolean flushQueue)
 Clears all the queue entries including backup stage. More...
 
IFX_INLINE void IfxVadc_disableQueueSlotExternalTrigger (Ifx_VADC_G *vadcG)
 Disables the external trigger. More...
 
IFX_INLINE void IfxVadc_enableQueueSlotExternalTrigger (Ifx_VADC_G *vadcG)
 Enables the external trigger. More...
 
IFX_INLINE IfxVadc_GatingMode IfxVadc_getQueueSlotGatingMode (Ifx_VADC_G *vadcG)
 Gets the requested queue slot gating mode. More...
 
IFX_INLINE IfxVadc_GatingSource IfxVadc_getQueueSlotGatingSource (Ifx_VADC_G *vadcG)
 Gets the requested queue slot gating input. More...
 
IFX_INLINE
IfxVadc_RequestSlotPriority 
IfxVadc_getQueueSlotPriority (Ifx_VADC_G *vadcG)
 Gets the request queue slot priority. More...
 
IFX_INLINE
IfxVadc_RequestSlotStartMode 
IfxVadc_getQueueSlotStartMode (Ifx_VADC_G *vadcG)
 Gets the requested queue slot start mode. More...
 
IFX_INLINE IfxVadc_TriggerSource IfxVadc_getQueueSlotTriggerInput (Ifx_VADC_G *vadcG)
 Gets the requested queue slot trigger input. More...
 
IFX_INLINE IfxVadc_TriggerMode IfxVadc_getQueueSlotTriggerMode (Ifx_VADC_G *vadcG)
 Gets the requested queue slot trigger mode. More...
 
IFX_INLINE boolean IfxVadc_isRequestQueueSlotEnabled (Ifx_VADC_G *vadcG)
 Returns the queue slot requested status. More...
 
IFX_INLINE void IfxVadc_setQueueSlotGatingConfig (Ifx_VADC_G *vadcG, IfxVadc_GatingSource gatingSource, IfxVadc_GatingMode gatingMode)
 Sets the gating configurations. More...
 
IFX_INLINE void IfxVadc_setQueueSlotTriggerOperatingConfig (Ifx_VADC_G *vadcG, IfxVadc_TriggerMode triggerMode, IfxVadc_TriggerSource triggerSource)
 Sets the trigger operating configurations. More...
 
IFX_INLINE void IfxVadc_startQueue (Ifx_VADC_G *group)
 Starts a queue of a group by generating a trigger event through software. More...
 
IFX_EXTERN IfxVadc_Status IfxVadc_getQueueStatus (Ifx_VADC_G *group)
 Gives the status of the Queue of a group by returning non zero value if the Queue is full. More...
 

Detailed Description

Function Documentation

IFX_INLINE void IfxVadc_addToQueue ( Ifx_VADC_G *  group,
IfxVadc_ChannelId  channel,
uint32  options 
)

Add an entry to the queue of a group for the specified channel with the following options set: refill incase of aborted conversion source interrupt enable/disable external trigger control of the aborted conversion.

Parameters
grouppointer to the VADC group
channelspecifies channel Id
optionsspecifies the refill, source interrupt enable/disable and external trigger control selection
Returns
None
Ifx_VADC_G* group = &MODULE_VADC.G[0]; // for group 0
IfxVadc_ChannelId channel = 1; // for channel 1
// Add channel 1 to queue of group 0 with the refill turned on
IfxVadc_addToQueue(qroup, channel, (1<<IFX_VADC_G_QBUR0_RF_OFF));

Definition at line 1680 of file IfxVadc.h.

Referenced by IfxVadc_Adc_addToQueue().

IFX_INLINE void IfxVadc_clearQueue ( Ifx_VADC_G *  vadcG,
boolean  flushQueue 
)

Clears all the queue entries including backup stage.

Parameters
vadcGpointer to VADC group registers.
flushQueueWhether queue is cleared or not.
Returns
None

Definition at line 1715 of file IfxVadc.h.

Referenced by IfxVadc_Adc_clearQueue(), and IfxVadc_Adc_initGroup().

IFX_INLINE void IfxVadc_disableQueueSlotExternalTrigger ( Ifx_VADC_G *  vadcG)

Disables the external trigger.

Parameters
vadcGpointer to VADC group registers.
Returns
None

Definition at line 1742 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initGroup().

IFX_INLINE void IfxVadc_enableQueueSlotExternalTrigger ( Ifx_VADC_G *  vadcG)

Enables the external trigger.

Parameters
vadcGpointer to VADC group registers.
Returns
None

Definition at line 1776 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initGroup().

IFX_INLINE IfxVadc_GatingMode IfxVadc_getQueueSlotGatingMode ( Ifx_VADC_G *  vadcG)

Gets the requested queue slot gating mode.

Parameters
vadcGpointer to VADC group registers.
Returns
requested queue slot gating mode.

Definition at line 1989 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE IfxVadc_GatingSource IfxVadc_getQueueSlotGatingSource ( Ifx_VADC_G *  vadcG)

Gets the requested queue slot gating input.

Parameters
vadcGpointer to VADC group registers.
Returns
requested queue slot gating input.

Definition at line 1995 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE IfxVadc_RequestSlotPriority IfxVadc_getQueueSlotPriority ( Ifx_VADC_G *  vadcG)

Gets the request queue slot priority.

Parameters
vadcGpointer to VADC group registers.
Returns
requested queue slot priority.

Definition at line 2001 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE IfxVadc_RequestSlotStartMode IfxVadc_getQueueSlotStartMode ( Ifx_VADC_G *  vadcG)

Gets the requested queue slot start mode.

Parameters
vadcGpointer to VADC group registers.
Returns
requested queue slot start mode.

Definition at line 2007 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE IfxVadc_TriggerSource IfxVadc_getQueueSlotTriggerInput ( Ifx_VADC_G *  vadcG)

Gets the requested queue slot trigger input.

Parameters
vadcGpointer to VADC group registers.
Returns
requested queue slot trigger input.

Definition at line 2013 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE IfxVadc_TriggerMode IfxVadc_getQueueSlotTriggerMode ( Ifx_VADC_G *  vadcG)

Gets the requested queue slot trigger mode.

Parameters
vadcGpointer to VADC group registers.
Returns
requested queue slot trigger mode.

Definition at line 2019 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_EXTERN IfxVadc_Status IfxVadc_getQueueStatus ( Ifx_VADC_G *  group)

Gives the status of the Queue of a group by returning non zero value if the Queue is full.

Parameters
grouppointer to the VADC group
Returns
status of the Queue
Ifx_VADC_G* group = &MODULE_VADC.G[0]; // for group 0
boolean queueFull = (IfxVadc_getQueueStatus(group)==IfxVadc_Status_queueFull)?TRUE:FALSE; // get Queue status for group 0

Definition at line 262 of file IfxVadc.c.

Referenced by IfxVadc_Adc_getQueueStatus().

IFX_INLINE boolean IfxVadc_isRequestQueueSlotEnabled ( Ifx_VADC_G *  vadcG)

Returns the queue slot requested status.

Parameters
vadcGpointer to VADC group registers.
Returns
TRUE if queue slot request enabled otherwise FALSE.

Definition at line 2115 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE void IfxVadc_setQueueSlotGatingConfig ( Ifx_VADC_G *  vadcG,
IfxVadc_GatingSource  gatingSource,
IfxVadc_GatingMode  gatingMode 
)

Sets the gating configurations.

Parameters
vadcGpointer to VADC group registers.
gatingSourcegate input for group.
gatingModegating mode. High level, Low Level or Gating disabled.
Returns
None

Definition at line 2303 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initGroup().

IFX_INLINE void IfxVadc_setQueueSlotTriggerOperatingConfig ( Ifx_VADC_G *  vadcG,
IfxVadc_TriggerMode  triggerMode,
IfxVadc_TriggerSource  triggerSource 
)

Sets the trigger operating configurations.

Parameters
vadcGpointer to VADC group registers.
triggerModetrigger mode. Rising, falling any edge leads to an trigger event.
triggerSourcetrigger input for group.
Returns
None

Definition at line 2314 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initGroup().

IFX_INLINE void IfxVadc_startQueue ( Ifx_VADC_G *  group)

Starts a queue of a group by generating a trigger event through software.

Parameters
grouppointer to the VADC group
Returns
None

Definition at line 2400 of file IfxVadc.h.

Referenced by IfxVadc_Adc_startQueue().