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 |
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.
uint32_t ADCBufMSP432E4_Channels::refVoltage |
ADC reference voltage in microVolts
uint32_t ADCBufMSP432E4_Channels::adcPin |
An used for
ADCBufMSP432E4_Sequencer ADCBufMSP432E4_Channels::adcSequence |
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.
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.
uint32_t ADCBufMSP432E4_Channels::adcDifferentialPin |
Specify this channel's used for when adcInputMode is ADCBufMSP432E4_DIFFERENTIAL. Otherwise, use ADCBufMSP432E4_PIN_NONE.