iLLD_TC27xD
1.0
|
Functions | |
IFX_INLINE void | IfxVadc_configureWaitForReadMode (Ifx_VADC_G *group, uint32 resultIdx, boolean waitForRead) |
access function to enable/disable wait for read mode for result registers More... | |
IFX_INLINE void | IfxVadc_configureWaitForReadModeForGlobalResultRegister (Ifx_VADC *vadc, boolean waitForRead) |
access function to enable/disable wait for read mode for global result register More... | |
IFX_INLINE void | IfxVadc_enableBackgroundScanSlotExternalTrigger (Ifx_VADC *vadc) |
Enables the background sacn external trigger. More... | |
IFX_INLINE IfxVadc_GatingMode | IfxVadc_getBackgroundScanGatingMode (Ifx_VADC *vadc) |
Gets the background scan gating mode. More... | |
IFX_INLINE IfxVadc_GatingSource | IfxVadc_getBackgroundScanGatingSource (Ifx_VADC *vadc) |
Gets the gating input selection. More... | |
IFX_INLINE IfxVadc_RequestSlotPriority | IfxVadc_getBackgroundScanSlotPriority (Ifx_VADC_G *vadcG) |
Gets the requested background scan slot priority. More... | |
IFX_INLINE IfxVadc_RequestSlotStartMode | IfxVadc_getBackgroundScanSlotStartMode (Ifx_VADC_G *vadcG) |
Gets the requested background scan slot start mode. More... | |
IFX_INLINE IfxVadc_TriggerSource | IfxVadc_getBackgroundScanTriggerInput (Ifx_VADC *vadc) |
Gets the background scan trigger input. More... | |
IFX_INLINE IfxVadc_TriggerMode | IfxVadc_getBackgroundScanTriggerMode (Ifx_VADC *vadc) |
Gets the background scan external trigger mode. More... | |
IFX_INLINE IfxVadc_ChannelResolution | IfxVadc_getGlobalResolution (Ifx_VADC *vadc, uint8 inputClassNum) |
get global input class resolution More... | |
IFX_INLINE Ifx_VADC_GLOBRES | IfxVadc_getGlobalResult (Ifx_VADC *vadc) |
return conversion result stored in the Global result Register More... | |
IFX_INLINE float32 | IfxVadc_getGlobalSampleTime (Ifx_VADC *vadc, uint8 inputClassNum, float32 analogFrequency) |
get global input class sample time in sec More... | |
IFX_INLINE void | IfxVadc_getGroupResult (Ifx_VADC_G *group, Ifx_VADC_RES *results, uint32 resultOffset, uint32 numResults) |
Get conversion result for the group. More... | |
IFX_INLINE Ifx_VADC_RES | IfxVadc_getResult (Ifx_VADC_G *group, uint32 resultIdx) |
Get conversion result (Function does not care about the alignment) value = raw * gain + offset. More... | |
IFX_INLINE boolean | IfxVadc_isAutoBackgroundScanEnabled (Ifx_VADC *vadc) |
Returns the auto background scan status. More... | |
IFX_INLINE boolean | IfxVadc_isRequestBackgroundScanSlotEnabled (Ifx_VADC_G *vadcG) |
Returns the background scan slot requested status. More... | |
IFX_INLINE void | IfxVadc_setAutoBackgroundScan (Ifx_VADC *vadc, boolean autoBackgroundScanEnable) |
Enables/Disables continuous background auto scan. More... | |
IFX_INLINE void | IfxVadc_setBackgroundScan (Ifx_VADC *vadc, IfxVadc_GroupId groupId, uint32 channels, uint32 mask) |
configures a background scan; can also stop autoscan if all channels are 0 More... | |
IFX_INLINE void | IfxVadc_setBackgroundScanSlotGatingConfig (Ifx_VADC *vadc, IfxVadc_GatingSource gatingSource, IfxVadc_GatingMode gatingMode) |
Sets the background scan slot gating configurations. More... | |
IFX_INLINE void | IfxVadc_setBackgroundScanSlotTriggerConfig (Ifx_VADC *vadc, IfxVadc_TriggerMode triggerMode, IfxVadc_TriggerSource triggerSource) |
Sets the background scan exteranal trigger operating configurations. More... | |
IFX_INLINE void | IfxVadc_startBackgroundScan (Ifx_VADC *vadc) |
Starts a background scan. More... | |
IFX_EXTERN IfxVadc_Status | IfxVadc_getBackgroundScanStatus (Ifx_VADC *vadc) |
Gives the background scan status for a group. More... | |
IFX_EXTERN Ifx_VADC_RES | IfxVadc_getResultBasedOnRequestSource (Ifx_VADC *vadc, Ifx_VADC_G *group, IfxVadc_ChannelId channel, IfxVadc_RequestSource sourceType) |
Get conversion result (Function does not care about the alignment) value = raw * gain + offset. More... | |
IFX_INLINE void IfxVadc_configureWaitForReadMode | ( | Ifx_VADC_G * | group, |
uint32 | resultIdx, | ||
boolean | waitForRead | ||
) |
access function to enable/disable wait for read mode for result registers
group | pointer to the VADC group |
resultIdx | result register index |
waitForRead | wait for read mode enabled/disabled |
Definition at line 1721 of file IfxVadc.h.
Referenced by IfxVadc_Adc_configureWaitForReadMode().
IFX_INLINE void IfxVadc_configureWaitForReadModeForGlobalResultRegister | ( | Ifx_VADC * | vadc, |
boolean | waitForRead | ||
) |
access function to enable/disable wait for read mode for global result register
vadc | pointer to the VADC |
waitForRead | wait for read mode enabled/disabled |
Definition at line 1727 of file IfxVadc.h.
Referenced by IfxVadc_Adc_configureWaitForReadModeForGlobalResultRegister().
IFX_INLINE void IfxVadc_enableBackgroundScanSlotExternalTrigger | ( | Ifx_VADC * | vadc) |
Enables the background sacn external trigger.
vadc | pointer to the base of VADC registers. |
Definition at line 1754 of file IfxVadc.h.
Referenced by IfxVadc_Adc_initGroup().
IFX_INLINE IfxVadc_GatingMode IfxVadc_getBackgroundScanGatingMode | ( | Ifx_VADC * | vadc) |
Gets the background scan gating mode.
vadc | pointer to the base of VADC registers. |
Definition at line 1816 of file IfxVadc.h.
Referenced by IfxVadc_Adc_getGroupConfig().
IFX_INLINE IfxVadc_GatingSource IfxVadc_getBackgroundScanGatingSource | ( | Ifx_VADC * | vadc) |
Gets the gating input selection.
vadc | pointer to the base of VADC registers. |
Definition at line 1822 of file IfxVadc.h.
Referenced by IfxVadc_Adc_getGroupConfig().
IFX_INLINE IfxVadc_RequestSlotPriority IfxVadc_getBackgroundScanSlotPriority | ( | Ifx_VADC_G * | vadcG) |
Gets the requested background scan slot priority.
vadcG | pointer to VADC group registers. |
Definition at line 1828 of file IfxVadc.h.
Referenced by IfxVadc_Adc_getGroupConfig().
IFX_INLINE IfxVadc_RequestSlotStartMode IfxVadc_getBackgroundScanSlotStartMode | ( | Ifx_VADC_G * | vadcG) |
Gets the requested background scan slot start mode.
vadcG | pointer to VADC group registers. |
Definition at line 1834 of file IfxVadc.h.
Referenced by IfxVadc_Adc_getGroupConfig().
IFX_EXTERN IfxVadc_Status IfxVadc_getBackgroundScanStatus | ( | Ifx_VADC * | vadc) |
Gives the background scan status for a group.
vadc | pointer to the VADC module |
Definition at line 181 of file IfxVadc.c.
Referenced by IfxVadc_Adc_getBackgroundScanStatus().
IFX_INLINE IfxVadc_TriggerSource IfxVadc_getBackgroundScanTriggerInput | ( | Ifx_VADC * | vadc) |
Gets the background scan trigger input.
vadc | pointer to the base of VADC registers. |
Definition at line 1840 of file IfxVadc.h.
Referenced by IfxVadc_Adc_getGroupConfig().
IFX_INLINE IfxVadc_TriggerMode IfxVadc_getBackgroundScanTriggerMode | ( | Ifx_VADC * | vadc) |
Gets the background scan external trigger mode.
vadc | pointer to the base of VADC registers. |
Definition at line 1846 of file IfxVadc.h.
Referenced by IfxVadc_Adc_getGroupConfig().
IFX_INLINE IfxVadc_ChannelResolution IfxVadc_getGlobalResolution | ( | Ifx_VADC * | vadc, |
uint8 | inputClassNum | ||
) |
get global input class resolution
vadc | Pointer to the VADC Group |
inputClassNum | global input class number |
Definition at line 1922 of file IfxVadc.h.
Referenced by IfxVadc_Adc_getModuleConfig().
IFX_INLINE Ifx_VADC_GLOBRES IfxVadc_getGlobalResult | ( | Ifx_VADC * | vadc) |
return conversion result stored in the Global result Register
vadc | pointer to the VADC module |
Definition at line 1928 of file IfxVadc.h.
Referenced by IfxVadc_Adc_getGlobalResult().
IFX_INLINE float32 IfxVadc_getGlobalSampleTime | ( | Ifx_VADC * | vadc, |
uint8 | inputClassNum, | ||
float32 | analogFrequency | ||
) |
get global input class sample time in sec
vadc | Pointer to the VADC Group Register space |
inputClassNum | ADC input class number |
analogFrequency | ADC module analog frequency in Hz. |
Definition at line 1938 of file IfxVadc.h.
Referenced by IfxVadc_Adc_getModuleConfig().
IFX_INLINE void IfxVadc_getGroupResult | ( | Ifx_VADC_G * | group, |
Ifx_VADC_RES * | results, | ||
uint32 | resultOffset, | ||
uint32 | numResults | ||
) |
Get conversion result for the group.
group | pointer to the VADC group |
results | pointer to scaled conversion results |
resultOffset | offset for the first result |
numResults | number of results |
Definition at line 1957 of file IfxVadc.h.
Referenced by IfxVadc_Adc_getGroupResult().
IFX_INLINE Ifx_VADC_RES IfxVadc_getResult | ( | Ifx_VADC_G * | group, |
uint32 | resultIdx | ||
) |
Get conversion result (Function does not care about the alignment) value = raw * gain + offset.
group | pointer to the VADC group |
resultIdx | result register index |
Definition at line 2025 of file IfxVadc.h.
Referenced by IfxVadc_Adc_getResult().
IFX_EXTERN Ifx_VADC_RES IfxVadc_getResultBasedOnRequestSource | ( | Ifx_VADC * | vadc, |
Ifx_VADC_G * | group, | ||
IfxVadc_ChannelId | channel, | ||
IfxVadc_RequestSource | sourceType | ||
) |
Get conversion result (Function does not care about the alignment) value = raw * gain + offset.
vadc | VADC module pointer |
group | pointer to the VADC group |
channel | channel Id |
sourceType | type of request source |
Definition at line 280 of file IfxVadc.c.
Referenced by IfxVadc_Adc_getResultBasedOnRequestSource().
IFX_INLINE boolean IfxVadc_isAutoBackgroundScanEnabled | ( | Ifx_VADC * | vadc) |
Returns the auto background scan status.
vadc | pointer to the base of VADC registers. |
Definition at line 2097 of file IfxVadc.h.
Referenced by IfxVadc_Adc_getGroupConfig().
IFX_INLINE boolean IfxVadc_isRequestBackgroundScanSlotEnabled | ( | Ifx_VADC_G * | vadcG) |
Returns the background scan slot requested status.
vadcG | pointer to VADC group registers. |
Definition at line 2109 of file IfxVadc.h.
Referenced by IfxVadc_Adc_getGroupConfig().
IFX_INLINE void IfxVadc_setAutoBackgroundScan | ( | Ifx_VADC * | vadc, |
boolean | autoBackgroundScanEnable | ||
) |
Enables/Disables continuous background auto scan.
vadc | pointer to the base of VADC registers. |
autoBackgroundScanEnable | whether auto background scan enabled or not. |
Definition at line 2145 of file IfxVadc.h.
Referenced by IfxVadc_Adc_initGroup().
IFX_INLINE void IfxVadc_setBackgroundScan | ( | Ifx_VADC * | vadc, |
IfxVadc_GroupId | groupId, | ||
uint32 | channels, | ||
uint32 | mask | ||
) |
configures a background scan; can also stop autoscan if all channels are 0
vadc | pointer to the VADC module registers |
groupId | group index |
channels | specifies the channels which should be enabled/disabled |
mask | specifies the channels which should be modified |
Background scan can be enabled/disabled for the given channels which are selected with the mask
Definition at line 2169 of file IfxVadc.h.
Referenced by IfxVadc_Adc_setBackgroundScan().
IFX_INLINE void IfxVadc_setBackgroundScanSlotGatingConfig | ( | Ifx_VADC * | vadc, |
IfxVadc_GatingSource | gatingSource, | ||
IfxVadc_GatingMode | gatingMode | ||
) |
Sets the background scan slot gating configurations.
vadc | pointer to the base of VADC registers. |
gatingSource | gate input for group. |
gatingMode | gating mode. High level, Low Level or Gating disabled. |
Definition at line 2176 of file IfxVadc.h.
Referenced by IfxVadc_Adc_initGroup().
IFX_INLINE void IfxVadc_setBackgroundScanSlotTriggerConfig | ( | Ifx_VADC * | vadc, |
IfxVadc_TriggerMode | triggerMode, | ||
IfxVadc_TriggerSource | triggerSource | ||
) |
Sets the background scan exteranal trigger operating configurations.
vadc | pointer to the base of VADC registers. |
triggerMode | trigger mode. Rising, falling any edge leads to an trigger event. |
triggerSource | trigger input for group. |
Definition at line 2187 of file IfxVadc.h.
Referenced by IfxVadc_Adc_initGroup().
IFX_INLINE void IfxVadc_startBackgroundScan | ( | Ifx_VADC * | vadc) |
Starts a background scan.
vadc | pointer to the VADC module |
Definition at line 2394 of file IfxVadc.h.
Referenced by IfxVadc_Adc_startBackgroundScan().