Defines the configuration structure for an ADC PAL conversion group. More...

#include <platform/pal/adc/inc/adc_pal.h>

Data Fields

const adc_input_chan_t * inputChannelArray
 
uint16_t * resultBuffer
 
uint8_t numChannels
 
uint8_t numSetsResultBuffer
 
bool hwTriggerSupport
 
adc_trigger_source_t triggerSource
 
adc_delay_type_t delayType
 
uint16_t * delayArray
 
bool continuousConvEn
 
adc_callback_t callback
 
void * callbackUserData
 

Detailed Description

Defines the configuration structure for an ADC PAL conversion group.

Implements : adc_group_config_t_Class

Definition at line 129 of file adc_pal.h.

Field Documentation

adc_callback_t callback

Callback function associated with group conversion complete

Definition at line 145 of file adc_pal.h.

void* callbackUserData

Pointer to additional user data to be passed by the callback

Definition at line 146 of file adc_pal.h.

bool continuousConvEn

Flag for enabling continuous conversions of a group - used only for SW triggered groups i.e. hwTriggerSupport==false.

Definition at line 143 of file adc_pal.h.

uint16_t* delayArray

Pointer to array of delay values introduced from the occurrence of a HW trigger event until each ADC conversion in the group can start execution. Expressed in clock ticks. Note: the delay might be bigger if there is an overlap with another conversion already executing.

Definition at line 141 of file adc_pal.h.

adc_delay_type_t delayType

Type of delay configuration. Supported values are platform dependent.

Definition at line 140 of file adc_pal.h.

bool hwTriggerSupport

Conversion group is HW triggered (true) or SW triggered (false).

Definition at line 137 of file adc_pal.h.

const adc_input_chan_t* inputChannelArray

Pointer to the array of ADC input channels. Each entry in this array corresponds to an individual conversion in the group. The same input channel may appear multiple times. E.g.: InputChan0,InputChan1,InputChan0,InputChan2

Definition at line 131 of file adc_pal.h.

uint8_t numChannels

Number of input channels in the array

Definition at line 134 of file adc_pal.h.

uint8_t numSetsResultBuffer

Number of sets of results which can be stored in result buffer: length of the result buffer = numChannels x numSetsResultBuffer

Definition at line 135 of file adc_pal.h.

uint16_t* resultBuffer

Pointer to the array for conversion results

Definition at line 133 of file adc_pal.h.

adc_trigger_source_t triggerSource

HW trigger source associated with the conversion group. Will be ignored if (hwTriggerSupport == false). Note for MPC574xP: this enables the HW trigger source for all other groups; the actual order of execution of groups depends on the order of occurrence of triggers.

Definition at line 138 of file adc_pal.h.


The documentation for this struct was generated from the following file: