iLLD_TC27xC  1.0
Channel Scan Functions
Collaboration diagram for Channel Scan Functions:

Functions

IFX_INLINE void IfxVadc_disableScanSlotExternalTrigger (Ifx_VADC_G *vadcG)
 Disables the scan slot external trigger. More...
 
IFX_INLINE void IfxVadc_enableScanSlotExternalTrigger (Ifx_VADC_G *vadcG)
 Enables the scan slot external trigger. More...
 
IFX_INLINE IfxVadc_GatingMode IfxVadc_getScanSlotGatingMode (Ifx_VADC_G *vadcG)
 Gets the request scan slot gating mode. More...
 
IFX_INLINE IfxVadc_GatingSource IfxVadc_getScanSlotGatingSource (Ifx_VADC_G *vadcG)
 Gets the request scan slot gating input. More...
 
IFX_INLINE
IfxVadc_RequestSlotPriority 
IfxVadc_getScanSlotPriority (Ifx_VADC_G *vadcG)
 Gets the request scan slot priority. More...
 
IFX_INLINE
IfxVadc_RequestSlotStartMode 
IfxVadc_getScanSlotStartMode (Ifx_VADC_G *vadcG)
 Gets the request scan slot start mode. More...
 
IFX_INLINE IfxVadc_TriggerSource IfxVadc_getScanSlotTriggerInput (Ifx_VADC_G *vadcG)
 Gets the requested scan slot trigger input. More...
 
IFX_INLINE IfxVadc_TriggerMode IfxVadc_getScanSlotTriggerMode (Ifx_VADC_G *vadcG)
 Gets the requested scan slot trigger mode. More...
 
IFX_INLINE boolean IfxVadc_isAutoScanEnabled (Ifx_VADC_G *vadcG)
 Gets the auto scan enable status. More...
 
IFX_INLINE boolean IfxVadc_isRequestScanSlotEnabled (Ifx_VADC_G *vadcG)
 Returns the scan slot requested status. More...
 
IFX_INLINE void IfxVadc_setAutoScan (Ifx_VADC_G *vadcG, boolean autoscanEnable)
 Sets the autosacn bit enable or disable. More...
 
IFX_INLINE void IfxVadc_setScanSlotGatingConfig (Ifx_VADC_G *vadcG, IfxVadc_GatingSource gatingSource, IfxVadc_GatingMode gatingMode)
 Sets the scan slot gating configuration. More...
 
IFX_INLINE void IfxVadc_setScanSlotTriggerConfig (Ifx_VADC_G *vadcG, IfxVadc_TriggerMode triggerMode, IfxVadc_TriggerSource triggerSource)
 Sets the scan slot trigger operating configurations. More...
 
IFX_INLINE void IfxVadc_startScan (Ifx_VADC_G *group)
 Starts an autoscan on the specified group. More...
 
IFX_EXTERN IfxVadc_Status IfxVadc_getScanStatus (Ifx_VADC_G *group)
 Gives the scan status for a group. More...
 
IFX_EXTERN void IfxVadc_setScan (Ifx_VADC_G *group, uint32 channels, uint32 mask, boolean continuous)
 Configures an (auto-)scan. More...
 

Detailed Description

Function Documentation

IFX_INLINE void IfxVadc_disableScanSlotExternalTrigger ( Ifx_VADC_G *  vadcG)

Disables the scan slot external trigger.

Parameters
vadcGpointer to VADC group registers.
Returns
None

Definition at line 1542 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initGroup().

IFX_INLINE void IfxVadc_enableScanSlotExternalTrigger ( Ifx_VADC_G *  vadcG)

Enables the scan slot external trigger.

Parameters
vadcGpointer to VADC group registers.
Returns
None

Definition at line 1548 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initGroup().

IFX_INLINE IfxVadc_GatingMode IfxVadc_getScanSlotGatingMode ( Ifx_VADC_G *  vadcG)

Gets the request scan slot gating mode.

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

Definition at line 1554 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE IfxVadc_GatingSource IfxVadc_getScanSlotGatingSource ( Ifx_VADC_G *  vadcG)

Gets the request scan slot gating input.

Parameters
vadcGpointer to VADC group registers.
Returns
request scan slot gating input.

Definition at line 1560 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE IfxVadc_RequestSlotPriority IfxVadc_getScanSlotPriority ( Ifx_VADC_G *  vadcG)

Gets the request scan slot priority.

Parameters
vadcGpointer to VADC group registers.
Returns
request scan slot priority.

Definition at line 1566 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE IfxVadc_RequestSlotStartMode IfxVadc_getScanSlotStartMode ( Ifx_VADC_G *  vadcG)

Gets the request scan slot start mode.

Parameters
vadcGpointer to VADC group registers.
Returns
request scan slot start mode.

Definition at line 1572 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE IfxVadc_TriggerSource IfxVadc_getScanSlotTriggerInput ( Ifx_VADC_G *  vadcG)

Gets the requested scan slot trigger input.

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

Definition at line 1578 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE IfxVadc_TriggerMode IfxVadc_getScanSlotTriggerMode ( Ifx_VADC_G *  vadcG)

Gets the requested scan slot trigger mode.

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

Definition at line 1584 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_EXTERN IfxVadc_Status IfxVadc_getScanStatus ( Ifx_VADC_G *  group)

Gives the scan status for a group.

Parameters
grouppointer to the VADC group
Returns
IfxVadc_Status

Definition at line 196 of file IfxVadc.c.

Referenced by IfxVadc_Adc_getScanStatus().

IFX_INLINE boolean IfxVadc_isAutoScanEnabled ( Ifx_VADC_G *  vadcG)

Gets the auto scan enable status.

Parameters
vadcGpointer to VADC group registers.
Returns
TRUE if auto scan enabled otherwise FALSE.

Definition at line 1590 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE boolean IfxVadc_isRequestScanSlotEnabled ( Ifx_VADC_G *  vadcG)

Returns the scan slot requested status.

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

Definition at line 1596 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE void IfxVadc_setAutoScan ( Ifx_VADC_G *  vadcG,
boolean  autoscanEnable 
)

Sets the autosacn bit enable or disable.

Parameters
vadcGpointer to VADC group registers.
autoscanEnablewhether autoscan is enabled or not.
Returns
None

Definition at line 1602 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initGroup(), and IfxVadc_setScan().

IFX_EXTERN void IfxVadc_setScan ( Ifx_VADC_G *  group,
uint32  channels,
uint32  mask,
boolean  continuous 
)

Configures an (auto-)scan.

Parameters
grouppointer to the VADC group
channelsspecifies the channels which should be enabled/disabled
maskspecifies the channels which should be modified
continuousspecifies if single triggered or continuous autoscan
Returns
None

(Auto-)scan can be enabled/disabled for the given channels which are selected with the mask

Ifx_VADC_G* group = &MODULE_VADC.G[0]; // for group 0
uint32 channels = (1 << 5) | (1 << 2); // enable channel #5 and #2
uint32 mask = (1 << 7) | (1 << 5) | (1 << 2); // modify the selection for channel #7, #5 and #2; channel #7 will be disabled
boolean continuous = TRUE; // use continuous autoscan
// configure autoscan
IfxVadc_setScan(group, channels, mask, continuous);
// start the autoscan

Definition at line 360 of file IfxVadc.c.

Referenced by IfxVadc_Adc_setScan().

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

Sets the scan slot gating configuration.

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

Definition at line 1608 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initGroup().

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

Sets the scan slot 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 1619 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initGroup().

IFX_INLINE void IfxVadc_startScan ( Ifx_VADC_G *  group)

Starts an autoscan on the specified group.

Parameters
grouppointer to the VADC group
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 1630 of file IfxVadc.h.

Referenced by IfxVadc_Adc_startScan().