iLLD_TC27xD  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)
 Enables/Disables continuous auto scan. 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)
 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 1748 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 1782 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 2035 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 2041 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 2047 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 2053 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 2059 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 2065 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 330 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 2103 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 2121 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE void IfxVadc_setAutoScan ( Ifx_VADC_G *  vadcG,
boolean  autoscanEnable 
)

Enables/Disables continuous auto scan.

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

Definition at line 2151 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initGroup().

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

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
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
// configure scan
IfxVadc_setScan(group, channels, mask);
// enable Auto-Scan
// start the scan

Definition at line 537 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 2351 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 2362 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

See IfxVadc_setScan

Definition at line 2406 of file IfxVadc.h.

Referenced by IfxVadc_Adc_startScan().