iLLD_TC27xC  1.0
Module Functions
Collaboration diagram for Module Functions:

Functions

IFX_INLINE void IfxVadc_enableModule (Ifx_VADC *vadc)
 Enable VADC kernel. More...
 
IFX_INLINE uint8 IfxVadc_getAdcCalibrationActiveState (Ifx_VADC *vadc, uint8 adcCalGroupNum)
 gets ADC Calibration Flag CAL status. More...
 
IFX_INLINE Ifx_VADC_GLOBCFG IfxVadc_getGlobalConfigValue (Ifx_VADC *vadc)
 Gets the global control configuration value. More...
 
IFX_INLINE void IfxVadc_initiateStartupCalibration (Ifx_VADC *vadc)
 initiates the calibration pulse phase. More...
 
IFX_INLINE void IfxVadc_setChannelResolution (Ifx_VADC *vadc, uint8 groupInputClassNum, IfxVadc_ChannelResolution resolution)
 Sets the channel conversion mode. More...
 
IFX_INLINE void IfxVadc_setSampleTimeTicks (Ifx_VADC *vadc, uint8 groupInputClassNum, float32 analogFrequency, float32 sampleTime)
 Sets the sample time ticks of ADC group class. More...
 
IFX_EXTERN void IfxVadc_disableAccess (Ifx_VADC *vadc, IfxVadc_Protection protectionSet)
 Disable write access to the VADC config/control registers. More...
 
IFX_EXTERN void IfxVadc_disablePostCalibration (Ifx_VADC *vadc, IfxVadc_GroupId group, boolean disable)
 Disables the post calibration. More...
 
IFX_EXTERN void IfxVadc_enableAccess (Ifx_VADC *vadc, IfxVadc_Protection protectionSet)
 Enable write access to the VADC config/control registers. More...
 
IFX_EXTERN volatile Ifx_SRC_SRCR * IfxVadc_getSrcAddress (IfxVadc_GroupId group, IfxVadc_SrcNr index)
 Gives the SRC source address. More...
 
IFX_EXTERN void IfxVadc_initialiseAdcArbiterClock (Ifx_VADC *vadc, uint32 arbiterClockDivider)
 Initialises the ADC Arbiter clock. More...
 
IFX_EXTERN void IfxVadc_initialiseAdcConverterClock (Ifx_VADC *vadc, uint32 converterClockDivider)
 Initialises ADC converter clock. More...
 
IFX_EXTERN uint32 IfxVadc_initializeFAdcD (Ifx_VADC *vadc, uint32 fAdcD)
 Configure the FadcD vadc digital clock. More...
 
IFX_EXTERN uint32 IfxVadc_initializeFAdcI (Ifx_VADC *vadc, uint32 fAdcI)
 Configure the ADC analog clock. More...
 
IFX_EXTERN void IfxVadc_resetKernel (Ifx_VADC *vadc)
 Resets the kernel. More...
 
IFX_EXTERN void IfxVadc_startupCalibration (Ifx_VADC *vadc)
 Starts ADC calibration and wait for the end of the calibration process. More...
 

Detailed Description

Function Documentation

IFX_EXTERN void IfxVadc_disableAccess ( Ifx_VADC *  vadc,
IfxVadc_Protection  protectionSet 
)

Disable write access to the VADC config/control registers.

Parameters
vadcpointer to the base of VADC registers.
protectionSetIndex of the bit in the ACCPROTx {x=0/1} for which write access is to be disabled.
Returns
None

Definition at line 35 of file IfxVadc.c.

Referenced by IfxVadc_Adc_deInitGroup(), IfxVadc_Adc_initChannel(), IfxVadc_Adc_initGroup(), IfxVadc_Adc_initModule(), IfxVadc_disablePostCalibration(), IfxVadc_initialiseAdcArbiterClock(), IfxVadc_initialiseAdcConverterClock(), IfxVadc_resetKernel(), and IfxVadc_startupCalibration().

IFX_EXTERN void IfxVadc_disablePostCalibration ( Ifx_VADC *  vadc,
IfxVadc_GroupId  group,
boolean  disable 
)

Disables the post calibration.

Parameters
vadcpointer to the base of VADC registers.
groupIndex of the group.
disabledisable or not.
Returns
None

Definition at line 54 of file IfxVadc.c.

Referenced by IfxVadc_Adc_initGroup().

IFX_EXTERN void IfxVadc_enableAccess ( Ifx_VADC *  vadc,
IfxVadc_Protection  protectionSet 
)

Enable write access to the VADC config/control registers.

Parameters
vadcpointer to the base of VADC registers.
protectionSetIndex of the bit in the ACCPROTx {x=0/1} for which write access is to be enabled.
Returns
None

Definition at line 76 of file IfxVadc.c.

Referenced by IfxVadc_Adc_deInitGroup(), IfxVadc_Adc_initChannel(), IfxVadc_Adc_initGroup(), IfxVadc_Adc_initModule(), IfxVadc_disablePostCalibration(), IfxVadc_initialiseAdcArbiterClock(), IfxVadc_initialiseAdcConverterClock(), IfxVadc_resetKernel(), and IfxVadc_startupCalibration().

IFX_INLINE void IfxVadc_enableModule ( Ifx_VADC *  vadc)

Enable VADC kernel.

Parameters
vadcpointer to the base of VADC registers.
Returns
None

Definition at line 1837 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initModule().

IFX_INLINE uint8 IfxVadc_getAdcCalibrationActiveState ( Ifx_VADC *  vadc,
uint8  adcCalGroupNum 
)

gets ADC Calibration Flag CAL status.

Parameters
vadcpointer to VADC group registers.
adcCalGroupNumADC CAL group number.
Returns
CAL group status.

Definition at line 1847 of file IfxVadc.h.

Referenced by IfxVadc_startupCalibration().

IFX_INLINE Ifx_VADC_GLOBCFG IfxVadc_getGlobalConfigValue ( Ifx_VADC *  vadc)

Gets the global control configuration value.

Parameters
vadcpointer to the base of VADC registers.
Returns
global control configuration value.

Definition at line 1855 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_EXTERN volatile Ifx_SRC_SRCR* IfxVadc_getSrcAddress ( IfxVadc_GroupId  group,
IfxVadc_SrcNr  index 
)

Gives the SRC source address.

Parameters
groupIndex of the group
indexSRC number
Returns
SRC source address

Definition at line 211 of file IfxVadc.c.

Referenced by IfxVadc_Adc_getChannelConfig(), and IfxVadc_Adc_initChannel().

IFX_EXTERN void IfxVadc_initialiseAdcArbiterClock ( Ifx_VADC *  vadc,
uint32  arbiterClockDivider 
)

Initialises the ADC Arbiter clock.

Parameters
vadcpointer to the base of VADC registers
arbiterClockDividerADC arbiter clock divider.
Returns
None

Definition at line 239 of file IfxVadc.c.

Referenced by IfxVadc_initializeFAdcI().

IFX_EXTERN void IfxVadc_initialiseAdcConverterClock ( Ifx_VADC *  vadc,
uint32  converterClockDivider 
)

Initialises ADC converter clock.

Parameters
vadcpointer to the base of VADC registers
converterClockDividerADC converter clock divider.
Returns
None

Definition at line 251 of file IfxVadc.c.

Referenced by IfxVadc_initializeFAdcD().

IFX_EXTERN uint32 IfxVadc_initializeFAdcD ( Ifx_VADC *  vadc,
uint32  fAdcD 
)

Configure the FadcD vadc digital clock.

Parameters
vadcpointer to the base of VADC registers.
fAdcDADC digital clock frequency in Hz.
Returns
calculated ADC digital clock frequency in Hz.

Definition at line 263 of file IfxVadc.c.

Referenced by IfxVadc_Adc_initModule().

IFX_EXTERN uint32 IfxVadc_initializeFAdcI ( Ifx_VADC *  vadc,
uint32  fAdcI 
)

Configure the ADC analog clock.

Parameters
vadcpointer to the base of VADC registers.
fAdcIADC analog clock clock frequency in Hz. Range = [5000000, 10000000].
Returns
ADC analog clock frequency in Hz.

Definition at line 279 of file IfxVadc.c.

Referenced by IfxVadc_Adc_initModule().

IFX_INLINE void IfxVadc_initiateStartupCalibration ( Ifx_VADC *  vadc)

initiates the calibration pulse phase.

Parameters
vadcpointer to the base of VADC registers
Returns
None

Definition at line 1863 of file IfxVadc.h.

Referenced by IfxVadc_startupCalibration().

IFX_EXTERN void IfxVadc_resetKernel ( Ifx_VADC *  vadc)

Resets the kernel.

Parameters
vadcpointer to the base of VADC registers.
Returns
None

Definition at line 316 of file IfxVadc.c.

Referenced by IfxVadc_Adc_deInitModule().

IFX_INLINE void IfxVadc_setChannelResolution ( Ifx_VADC *  vadc,
uint8  groupInputClassNum,
IfxVadc_ChannelResolution  resolution 
)

Sets the channel conversion mode.

Parameters
vadcpointer to VADC module registers.
groupInputClassNumgroup input class number.
resolutionADC channel resolution.
Returns
None

Definition at line 1869 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initModule().

IFX_INLINE void IfxVadc_setSampleTimeTicks ( Ifx_VADC *  vadc,
uint8  groupInputClassNum,
float32  analogFrequency,
float32  sampleTime 
)

Sets the sample time ticks of ADC group class.

Parameters
vadcpointer to VADC module registers.
groupInputClassNumgroup input class number.
analogFrequencyADC analog frequency.
sampleTimethe requested sample time for input class.
Returns
None

Definition at line 1875 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initModule().

IFX_EXTERN void IfxVadc_startupCalibration ( Ifx_VADC *  vadc)

Starts ADC calibration and wait for the end of the calibration process.

Parameters
vadcpointer to the base of VADC registers.
Returns
None

Definition at line 371 of file IfxVadc.c.

Referenced by IfxVadc_Adc_initModule().