MSPM0G1X0X_G3X0X TI-Driver Library
2.00.00.03
|
ADCMSPM0 Hardware attributes These fields are used by driverlib APIs and therefore must be populated by driverlib macro definitions. Currently the Single channel single conversion and the Repeat single channel conversion are supported. For the other conversion modes, user has to modify or add the needed parameters to below structure. More...
#include <ADCMSPM0.h>
ADCMSPM0 Hardware attributes These fields are used by driverlib APIs and therefore must be populated by driverlib macro definitions. Currently the Single channel single conversion and the Repeat single channel conversion are supported. For the other conversion modes, user has to modify or add the needed parameters to below structure.
ADC12_Regs* ADCMSPM0_HWAttrs::adc |
Base Address of ADC instance
uint8_t ADCMSPM0_HWAttrs::adcInputDIO |
DIO that the ADC input is routed to
uint8_t ADCMSPM0_HWAttrs::adcInputPincm |
Pincm value for the selected adc input pin
uint32_t ADCMSPM0_HWAttrs::adcInputPinMux |
ADC input pin function
uint8_t ADCMSPM0_HWAttrs::adcPosRefDIO |
DIO that the ADC positive reference is routed to
uint8_t ADCMSPM0_HWAttrs::adcPosRefPincm |
Pincm value for the selected adc pos ref pin
uint32_t ADCMSPM0_HWAttrs::adcPosRefPinMux |
ADC positive reference pin function
uint8_t ADCMSPM0_HWAttrs::adcNegRefDIO |
DIO that the ADC negative reference is routed to
uint8_t ADCMSPM0_HWAttrs::adcNegRefPincm |
Pincm value for the selected adc neg ref pin
uint32_t ADCMSPM0_HWAttrs::adcNegRefPinMux |
ADC negative reference pin function
uint8_t ADCMSPM0_HWAttrs::adcChannel |
Internal ADC channel
uint_fast32_t ADCMSPM0_HWAttrs::refVoltage |
Reference voltage in microvolts
ADCMSPM0_Reference_Source ADCMSPM0_HWAttrs::refSource |
Reference source for the ADC to use
uint16_t ADCMSPM0_HWAttrs::samplingDuration |
Time the ADC spends sampling, in CLK-cycles.
ADCMSPM0_Resolution_Bits ADCMSPM0_HWAttrs::resolutionBits |
Resolution of ADC-conversion.
ADCMSPM0_Clock_Divider ADCMSPM0_HWAttrs::adcClkkDivider |
ADC clock divider value
ADCMSPM0_Clock_Select ADCMSPM0_HWAttrs::adcClkSelect |
ADC clock source select
ADCMSPM0_Freq_Range ADCMSPM0_HWAttrs::adcClkFreqRange |
ADC clock freq range
ADCMSPM0_Conversion_Mode ADCMSPM0_HWAttrs::conversionMode |
Mode for ADC
ADCMSPM0_CONV_START_ADDRESS ADCMSPM0_HWAttrs::conversionStartAddr |
Conversion Start Address used as an index for MEMCTLx
ADCMSPM0_CONV_END_ADDRESS ADCMSPM0_HWAttrs::conversionEndAddr |
Conversion End Address used as an index for MEMCTLx
ADCMSPM0_Repeat_Conversion_Mode ADCMSPM0_HWAttrs::repeatConversionMode |
Enable repeat mode for the given conversion mode
ADCMSPM0_Sampling_Mode ADCMSPM0_HWAttrs::samplingMode |
Set the sampling mode to auto or manual
ADCMSPM0_Sampling_Trg ADCMSPM0_HWAttrs::sampleTrigger |
Set the sample trigger source to sw or event
ADCMSPM0_Conv_Data_Format ADCMSPM0_HWAttrs::conversionDataFormat |
Set the conversion data format signed or unsigned
ADCMSPM0_Sample_Timer_Source ADCMSPM0_HWAttrs::sampleTimerSrc |
Set the sample timer source to SCOMP0 or SCOMP1
ADCMSPM0_Conv_Trig_Src ADCMSPM0_HWAttrs::conversionTrigger |
Select the adc conversion trigger to auto or with trigger
ADCMSPM0_HW_Avg ADCMSPM0_HWAttrs::adcHWAveraging |
Set the hardware averaging enabled/disabled
ADCMSPM0_AVGD ADCMSPM0_HWAttrs::adcHwAvgDenominator |
Set the hardware averaging denominator
ADCMSPM0_AVGN ADCMSPM0_HWAttrs::adcHwAvgNumerator |
Set the hardware averaging numerator
uint8_t ADCMSPM0_HWAttrs::idxMEMCTLx |
MEMCTLx index