Data Fields
ADCBufMSP432E4_Channels Struct Reference

ADCBufMSP432E4 Channel Settings. More...

#include <ADCBufMSP432E4.h>

Data Fields

uint32_t refVoltage
 
uint32_t adcPin
 
ADCBufMSP432E4_Sequencer adcSequence
 
ADCBufMSP432E4_DifferentialMode adcInputMode
 
ADCBufMSP432E4_InternalSourceMode adcInternalSource
 
uint32_t adcDifferentialPin
 

Detailed Description

ADCBufMSP432E4 Channel Settings.

The application is responsible for defining a ADCBufMSP432E4_Channels array. Each index corresponds to a ADC channel configuration. A unique ADCBufMSP432E4_Channels array can be defined for each ADCBuf instance. That is, each ADCBufMSP432E4_HWAttrsV1.channelSetting can point to a unique ADCBufMSP432E4_Channels array.

In the code example below, three channels are configured. The first channel will sample the differential between two external analog signals,.adcPin and .adcDifferentialPin. The second channel will sample the internal temperature analog signal. The third channel will sample an external analog signal on .adcPin.

ADCBufMSP432E4_Channels adcBufMSP432E4Channels[3] = {
{
.adcSequence = ADCBufMSP432E4_Seq_0,
.adcInputMode = ADCBufMSP432E4_DIFFERENTIAL,
.adcDifferentialPin = ADCBufMSP432E4_PE_1_A2,
.refVoltage = 3300000
},
{
.adcSequence = ADCBufMSP432E4_Seq_1,
.adcInputMode = ADCBufMSP432E4_SINGLE_ENDED,
.adcDifferentialPin = ADCBufMSP432E4_PIN_NONE,
.adcInternalSource = ADCBufMSP432E4_TEMPERATURE_MODE,
.refVoltage = 3300000
},
{
.adcSequence = ADCBufMSP432E4_Seq_3,
.adcInputMode = ADCBufMSP432E4_SINGLE_ENDED,
.adcDifferentialPin = ADCBufMSP432E4_PIN_NONE,
.refVoltage = 3300000
}
};

Field Documentation

§ refVoltage

uint32_t ADCBufMSP432E4_Channels::refVoltage

ADC reference voltage in microVolts

§ adcPin

uint32_t ADCBufMSP432E4_Channels::adcPin

§ adcSequence

ADCBufMSP432E4_Sequencer ADCBufMSP432E4_Channels::adcSequence

§ adcInputMode

ADCBufMSP432E4_DifferentialMode ADCBufMSP432E4_Channels::adcInputMode

Specify if this channel uses differential sampling mode. If using the differential sampling mode, ADCBufMSP432E4_Channels.adcInternalSource must be set to ADCBufMSP432E4_INTERNAL_SOURCE_MODE_OFF.

§ adcInternalSource

ADCBufMSP432E4_InternalSourceMode ADCBufMSP432E4_Channels::adcInternalSource

Specify if this channel uses internal source mode. If using the internal source mode, ADCBufMSP432E4_Channels.adcInputMode must be set to ADCBufMSP432E4_SINGLE_ENDED.

§ adcDifferentialPin

uint32_t ADCBufMSP432E4_Channels::adcDifferentialPin

Specify this channel's used for when adcInputMode is ADCBufMSP432E4_DIFFERENTIAL. Otherwise, use ADCBufMSP432E4_PIN_NONE.


The documentation for this struct was generated from the following file:
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale