MCUSW
|
ADC Group configuration structure.
Adc_GroupType Adc_GroupConfigType::groupId |
Group ID - This should be same as that of the index in to the groupCfg[] array
Adc_GroupPriorityType Adc_GroupConfigType::groupPriority |
Group priority
Adc_HWUnitType Adc_GroupConfigType::hwUnitId |
HWUnit associated with this group
Adc_GroupEndNotifyType Adc_GroupConfigType::Adc_GroupEndNotification |
Group end notification callback fxn pointer
Adc_StreamNumSampleType Adc_GroupConfigType::streamNumSamples |
Contains how many samples fit into result buffer
Adc_ResolutionType Adc_GroupConfigType::resolution |
Group resolution - This is not configurable and should be set to ADC_DEF_CHANNEL_RESOLUTION
Adc_GroupConvModeType Adc_GroupConfigType::convMode |
Operation mode of the group
Adc_TriggerSourceType Adc_GroupConfigType::triggSrc |
Determines the trigger source (hw or sw trigger). Note: Only SW trigger is supported
Adc_GroupAccessModeType Adc_GroupConfigType::accessMode |
Defines the type of the groups buffer
Adc_StreamBufferModeType Adc_GroupConfigType::streamBufMode |
Use linear or circular stream buffer
Adc_HwTriggerSignalType Adc_GroupConfigType::hwTrigSignal |
Use rising or falling edge for event pin trigger. Note: Since HW trigger is not supported, this parameter is not used
Adc_HwTriggerTimerType Adc_GroupConfigType::hwTrigTimer |
Hardware trigger event. Note: Since HW trigger is not supported, this parameter is not used. Set it to 0.
Adc_GroupReplacementType Adc_GroupConfigType::groupReplacement |
Group replacement logic when priority mechanism is ON - i.e prioritySupport is not ADC_PRIORITY_NONE.
uint32 Adc_GroupConfigType::highRange |
Sampled ADC data is compared to this value. If the sampled data is greater than this value, then interrupt is generated. Valid values: ADC_MIN_RANGE to ADC_MAX_RANGE.
This check can be enabled/disabled individually for each of the channel (step) using rangeCheckEnable parameter.
Note: Since there are no standard MCAL API for this feature, this is not supported by the ADC driver
uint32 Adc_GroupConfigType::lowRange |
Sampled ADC data is compared to this value. If the sampled data is lesser than this value, then interrupt is generated. Valid values: ADC_MIN_RANGE to ADC_MAX_RANGE.
This check can be enabled/disabled individually for each of the channel (step) using rangeCheckEnable parameter.
Note: Since there are no standard MCAL API for this feature, this is not supported by the ADC driver
uint32 Adc_GroupConfigType::numChannels |
Number of channels in this group
Adc_ChannelConfigType Adc_GroupConfigType::channelConfig[ADC_NUM_CHANNEL] |
Channel (HW step) configuration. numChannels elements should be initialized