AM273x MCU+ SDK  08.06.00
GPADC_ChannelConfigType Struct Reference

Detailed Description

GPADC Config Type data structure for the mode, trigger source and channel configuration for all the available external sources <0-8>

Structure containing parameters for GPADC channels configuration. In term of GPADC hardware, this represents the conversion configuration for the unit and muxing, sampling parameters for each channel.

Data Fields

GPADC_MeasExtSrcType channelID
 Channel number The hardware channel number from which input is given Valid values: 0x00 to MAX_GPADC_MEAS_SOURCES 0x0 = Channel 1, 0x1 = Channel 2, 0x2 = Channel 3, 0x3 = Channel 4, 0x4 = Channel 5, 0x5 = Channel 6, 0x6 = Channel 7, 0x7 = Channel 8, 0x8 = Channel 9. More...
 
uint32_t channelConfigValue
 Unique muxing config value per channel. More...
 
uint8_t channelParamValue
 Channel parameters including channel paramVal(subsystem-type), collect samples and skip *samples. More...
 
Bool isConfigured
 GPADC driver considers channels configuration passed to the driver by the application only if this flag is set TRUE: Channel Configured for channelID, FALSE: Channel is not configured. More...
 
Bool isBufferedMode
 TRUE: Buffered mode FALSE: Unbuffered/ Full Scale mode. More...
 
uint32_t skipSamples
 Number of samples to be skipped before collecting samples per input channel. More...
 
uint8_t collectSamples
 Number of samples to be collected for conversion per each input channel. More...
 
Bool useLuTable
 TRUE: Use predefined lookup table to load number of skipSamples and collectSamples configuration for the specific input channel. More...
 

Field Documentation

◆ channelID

GPADC_MeasExtSrcType GPADC_ChannelConfigType::channelID

Channel number The hardware channel number from which input is given Valid values: 0x00 to MAX_GPADC_MEAS_SOURCES 0x0 = Channel 1, 0x1 = Channel 2, 0x2 = Channel 3, 0x3 = Channel 4, 0x4 = Channel 5, 0x5 = Channel 6, 0x6 = Channel 7, 0x7 = Channel 8, 0x8 = Channel 9.

◆ channelConfigValue

uint32_t GPADC_ChannelConfigType::channelConfigValue

Unique muxing config value per channel.

◆ channelParamValue

uint8_t GPADC_ChannelConfigType::channelParamValue

Channel parameters including channel paramVal(subsystem-type), collect samples and skip *samples.

◆ isConfigured

Bool GPADC_ChannelConfigType::isConfigured

GPADC driver considers channels configuration passed to the driver by the application only if this flag is set TRUE: Channel Configured for channelID, FALSE: Channel is not configured.

◆ isBufferedMode

Bool GPADC_ChannelConfigType::isBufferedMode

TRUE: Buffered mode FALSE: Unbuffered/ Full Scale mode.

◆ skipSamples

uint32_t GPADC_ChannelConfigType::skipSamples

Number of samples to be skipped before collecting samples per input channel.

◆ collectSamples

uint8_t GPADC_ChannelConfigType::collectSamples

Number of samples to be collected for conversion per each input channel.

◆ useLuTable

Bool GPADC_ChannelConfigType::useLuTable

TRUE: Use predefined lookup table to load number of skipSamples and collectSamples configuration for the specific input channel.

FALSE: Use skipSamples and collectSamples configuration from the data structure passed by the application for each configured channel