iLLD_TC27xD  1.0
Channel Functions
Collaboration diagram for Channel Functions:

Functions

IFX_INLINE void IfxVadc_clearChannelRequest (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelId)
 Clears the channel request. More...
 
IFX_INLINE void IfxVadc_enableFifoMode (Ifx_VADC_G *vadcG, IfxVadc_ChannelResult resultRegister, IfxVadc_FifoMode fifoMode)
 Enables the FIFO mode. More...
 
IFX_INLINE void IfxVadc_enableServiceRequest (Ifx_VADC_G *vadcG, IfxVadc_ChannelResult resultRegister)
 
IFX_INLINE Ifx_VADC_G_CHASS IfxVadc_getAssignedChannels (Ifx_VADC_G *vadcG)
 Gets the group's assigned channels. More...
 
IFX_INLINE Ifx_VADC_CHCTR IfxVadc_getChannelControlConfig (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelIndex)
 Gets the current ADC channel control configurations. More...
 
IFX_INLINE IfxVadc_InputClasses IfxVadc_getChannelInputClass (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelIndex)
 Gets the channel input class. More...
 
IFX_INLINE
IfxVadc_ChannelResolution 
IfxVadc_getGroupResolution (Ifx_VADC_G *vadcG, uint8 inputClassNum)
 Gets the ADC input class channel resolution. More...
 
IFX_INLINE float32 IfxVadc_getGroupSampleTime (Ifx_VADC_G *vadcG, uint8 inputClassNum, float32 analogFrequency)
 Gets the ADC input class channel sample time. More...
 
IFX_INLINE void IfxVadc_setBackgroundPriorityChannel (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelIndex)
 Sets the channels with low priority as background channel. More...
 
IFX_INLINE void IfxVadc_setBackgroundResultTarget (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelIndex, boolean globalResultUsage)
 Sets the target for result background source. More...
 
IFX_INLINE void IfxVadc_setBoundaryMode (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelIndex, IfxVadc_BoundaryExtension boundaryMode)
 Selects boundary extension. More...
 
IFX_INLINE void IfxVadc_setChannelEventNodePointer0 (Ifx_VADC_G *vadcG, IfxVadc_SrcNr channelSrcNr, IfxVadc_ChannelId channel)
 Sets the channel event service request line. More...
 
IFX_INLINE void IfxVadc_setChannelInputClass (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelIndex, IfxVadc_InputClasses inputClass)
 Sets the channel input class. More...
 
IFX_INLINE void IfxVadc_setChannelLimitCheckMode (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelIndex, IfxVadc_LimitCheck limitCheck)
 Sets the channel event mode. More...
 
IFX_INLINE void IfxVadc_setGroupPriorityChannel (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelIndex)
 Sets channel as priority channel with in the group. More...
 
IFX_INLINE void IfxVadc_setLowerBoundary (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelIndex, IfxVadc_BoundarySelection lowerBoundary)
 Sets group's lower boundary. More...
 
IFX_INLINE void IfxVadc_setReferenceInput (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelIndex, IfxVadc_ChannelReference reference)
 Selects the refernce input. More...
 
IFX_INLINE void IfxVadc_setResultNodeEventPointer0 (Ifx_VADC_G *vadcG, IfxVadc_SrcNr resultSrcNr, IfxVadc_ChannelResult resultRegister)
 Sets result event node pointer 0. More...
 
IFX_INLINE void IfxVadc_setResultNodeEventPointer1 (Ifx_VADC_G *vadcG, IfxVadc_SrcNr resultSrcNr, IfxVadc_ChannelResult resultRegister)
 Sets result event node pointer 1. More...
 
IFX_INLINE void IfxVadc_setResultPosition (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelIndex, boolean rightAlignedStorage)
 Sets result store position. More...
 
IFX_INLINE void IfxVadc_setSyncRequest (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelIndex, boolean synchonize)
 Sets channel synchronization request. More...
 
IFX_INLINE void IfxVadc_setUpperBoundary (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelIndex, IfxVadc_BoundarySelection upperBoundary)
 Sets group's upper boundary. More...
 
IFX_INLINE void IfxVadc_storeGroupResult (Ifx_VADC_G *vadcG, IfxVadc_ChannelId channelIndex, IfxVadc_ChannelResult resultRegister)
 Sets the group result register. More...
 
IFX_EXTERN float32 IfxVadc_getChannelConversionTime (Ifx_VADC *vadc, IfxVadc_GroupId group, IfxVadc_InputClasses inputClass, float32 analogFrequency, float32 moduleFrequency, IfxVadc_ConversionType conversionMode)
 get channel conversion timing More...
 

Detailed Description

Function Documentation

IFX_INLINE void IfxVadc_clearChannelRequest ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelId 
)

Clears the channel request.

Parameters
vadcGpointer to VADC group registers.
channelIdchannel id whose request to be cleared.
Returns
None

Definition at line 1709 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_enableFifoMode ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelResult  resultRegister,
IfxVadc_FifoMode  fifoMode 
)

Enables the FIFO mode.

Parameters
vadcGpointer to VADC group registers.
resultRegisterchannel result register.
fifoModeFIFO mode .
Returns
None

Definition at line 1760 of file IfxVadc.h.

IFX_INLINE void IfxVadc_enableServiceRequest ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelResult  resultRegister 
)
Parameters
vadcGpointer to VADC group registers.
resultRegisterchannel result register.
Returns
None

Definition at line 1788 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE Ifx_VADC_G_CHASS IfxVadc_getAssignedChannels ( Ifx_VADC_G *  vadcG)

Gets the group's assigned channels.

Parameters
vadcGpointer to VADC group registers.
Returns
group's assigned channels.

Definition at line 1808 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getChannelConfig().

IFX_INLINE Ifx_VADC_CHCTR IfxVadc_getChannelControlConfig ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelIndex 
)

Gets the current ADC channel control configurations.

Parameters
vadcGpointer to VADC group registers.
channelIndexADC channel number.
Returns
current ADC channel control configuration.

Definition at line 1852 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getChannelConfig().

IFX_EXTERN float32 IfxVadc_getChannelConversionTime ( Ifx_VADC *  vadc,
IfxVadc_GroupId  group,
IfxVadc_InputClasses  inputClass,
float32  analogFrequency,
float32  moduleFrequency,
IfxVadc_ConversionType  conversionMode 
)

get channel conversion timing

Parameters
vadcPointer to VADC module
groupspecifies the Group
inputClassInput class used
analogFrequencyADC module analog frequency fadci in Hz.
moduleFrequencyADC module frequency fvadc in Hz.
conversionModespecifies the conversion mode (Standard conversion mode)
Returns
Channel conversion Time in sec

Definition at line 202 of file IfxVadc.c.

Referenced by IfxVadc_Adc_getChannelConversionTime().

IFX_INLINE IfxVadc_InputClasses IfxVadc_getChannelInputClass ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelIndex 
)

Gets the channel input class.

Parameters
vadcGpointer to VADC Group register space
channelIndexspecifies channel ID
Returns
Input class

Definition at line 1860 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getChannelConversionTime().

IFX_INLINE IfxVadc_ChannelResolution IfxVadc_getGroupResolution ( Ifx_VADC_G *  vadcG,
uint8  inputClassNum 
)

Gets the ADC input class channel resolution.

Parameters
vadcGpointer to VADC group registers.
inputClassNumADC input class number.
Returns
ADC input class channel resolution.

Definition at line 1951 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE float32 IfxVadc_getGroupSampleTime ( Ifx_VADC_G *  vadcG,
uint8  inputClassNum,
float32  analogFrequency 
)

Gets the ADC input class channel sample time.

Parameters
vadcGpointer to VADC group registers.
inputClassNumADC input class number.
analogFrequencyADC module analog frequency in Hz.
Returns
ADC input class channel sample time in sec.

Definition at line 1968 of file IfxVadc.h.

Referenced by IfxVadc_Adc_getGroupConfig().

IFX_INLINE void IfxVadc_setBackgroundPriorityChannel ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelIndex 
)

Sets the channels with low priority as background channel.

Parameters
vadcGpointer to VADC group registers.
channelIndexgroup channel id.
Returns
None

Definition at line 2157 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_setBackgroundResultTarget ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelIndex,
boolean  globalResultUsage 
)

Sets the target for result background source.

Parameters
vadcGpointer to VADC group registers.
channelIndexgroup channel id.
globalResultUsagewhether storage in global result register.
Returns
None

Definition at line 2163 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_setBoundaryMode ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelIndex,
IfxVadc_BoundaryExtension  boundaryMode 
)

Selects boundary extension.

Parameters
vadcGpointer to VADC group registers.
channelIndexgroup channel id.
boundaryModeboundary extension mode.
Returns
None

Definition at line 2198 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_setChannelEventNodePointer0 ( Ifx_VADC_G *  vadcG,
IfxVadc_SrcNr  channelSrcNr,
IfxVadc_ChannelId  channel 
)

Sets the channel event service request line.

Parameters
vadcGpointer to VADC group registers.
channelSrcNrchannel event Service Node.
channelchannel number.
Returns
None

Definition at line 2204 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_setChannelInputClass ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelIndex,
IfxVadc_InputClasses  inputClass 
)

Sets the channel input class.

Parameters
vadcGpointer to VADC group registers.
channelIndexgroup channel id.
inputClassgroup input class.
Returns
None

Definition at line 2211 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_setChannelLimitCheckMode ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelIndex,
IfxVadc_LimitCheck  limitCheck 
)

Sets the channel event mode.

Parameters
vadcGpointer to VADC group registers.
channelIndexgroup channel id.
limitCheckchannel event mode.
Returns
None

Definition at line 2217 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_setGroupPriorityChannel ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelIndex 
)

Sets channel as priority channel with in the group.

Parameters
vadcGpointer to VADC group registers.
channelIndexgroup channel id.
Returns
None

Definition at line 2272 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_setLowerBoundary ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelIndex,
IfxVadc_BoundarySelection  lowerBoundary 
)

Sets group's lower boundary.

Parameters
vadcGpointer to VADC group registers.
channelIndexgroup channel id.
lowerBoundarygroup lower boundary.
Returns
None

Definition at line 2290 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_setReferenceInput ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelIndex,
IfxVadc_ChannelReference  reference 
)

Selects the refernce input.

Parameters
vadcGpointer to VADC group registers.
channelIndexgroup channel id.
referencereference input.
Returns
None

Definition at line 2325 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_setResultNodeEventPointer0 ( Ifx_VADC_G *  vadcG,
IfxVadc_SrcNr  resultSrcNr,
IfxVadc_ChannelResult  resultRegister 
)

Sets result event node pointer 0.

Parameters
vadcGpointer to VADC group registers.
resultSrcNrchannel result event service node.
resultRegisterchannel result register.
Returns
None

Definition at line 2331 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_setResultNodeEventPointer1 ( Ifx_VADC_G *  vadcG,
IfxVadc_SrcNr  resultSrcNr,
IfxVadc_ChannelResult  resultRegister 
)

Sets result event node pointer 1.

Parameters
vadcGpointer to VADC group registers.
resultSrcNrchannel result event service node.
resultRegisterchannel result register.
Returns
None

Definition at line 2338 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_setResultPosition ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelIndex,
boolean  rightAlignedStorage 
)

Sets result store position.

Parameters
vadcGpointer to VADC group registers.
channelIndexgroup channel id.
rightAlignedStorageresult store position.
Returns
None

Definition at line 2345 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_setSyncRequest ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelIndex,
boolean  synchonize 
)

Sets channel synchronization request.

Parameters
vadcGpointer to VADC group registers.
channelIndexgroup channel id.
synchonizewhether channel synchronize or stand alone operation.
Returns
None

Definition at line 2382 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_setUpperBoundary ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelIndex,
IfxVadc_BoundarySelection  upperBoundary 
)

Sets group's upper boundary.

Parameters
vadcGpointer to VADC group registers.
channelIndexgroup channel id.
upperBoundarygroup upper boundary.
Returns
None

Definition at line 2388 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().

IFX_INLINE void IfxVadc_storeGroupResult ( Ifx_VADC_G *  vadcG,
IfxVadc_ChannelId  channelIndex,
IfxVadc_ChannelResult  resultRegister 
)

Sets the group result register.

Parameters
vadcGpointer to VADC group registers.
channelIndexgroup channel id.
resultRegisterresult register for group result storage.
Returns
None

Definition at line 2412 of file IfxVadc.h.

Referenced by IfxVadc_Adc_initChannel().