ADC initialization structure, common for single conversion and scan sequence.

Public Attributes#

Oversampling rate select.

Lowpass or decoupling capacitor filter.

uint8_t

Timebase for ADC warm up.

uint8_t

Clock division factor N, ADC clock = (HFPERCLK or HFPERCCLK) / (N + 1).

bool

Enable/disable conversion tailgating.

Public Attribute Documentation#

ovsRateSel#

ADC_OvsRateSel_TypeDef ADC_Init_TypeDef::ovsRateSel

Oversampling rate select.

To have any effect, oversampling must be enabled for single/scan mode.


Definition at line 786 of file platform/emlib/inc/em_adc.h

lpfMode#

ADC_LPFilter_TypeDef ADC_Init_TypeDef::lpfMode

Lowpass or decoupling capacitor filter.


Definition at line 790 of file platform/emlib/inc/em_adc.h

warmUpMode#

ADC_Warmup_TypeDef ADC_Init_TypeDef::warmUpMode

ADC Warm-up mode.


Definition at line 794 of file platform/emlib/inc/em_adc.h

timebase#

uint8_t ADC_Init_TypeDef::timebase

Timebase for ADC warm up.

Select N to give (N+1) HFPERCLK / HFPERCCLK cycles. (Additional delay is added for bandgap references. See the reference manual for more information.) Normally, N should be selected so that the timebase is at least 1 us. See ADC_TimebaseCalc() to obtain a suggested timebase of, at least, 1 us.


Definition at line 803 of file platform/emlib/inc/em_adc.h

prescale#

uint8_t ADC_Init_TypeDef::prescale

Clock division factor N, ADC clock = (HFPERCLK or HFPERCCLK) / (N + 1).


Definition at line 806 of file platform/emlib/inc/em_adc.h

tailgate#

bool ADC_Init_TypeDef::tailgate

Enable/disable conversion tailgating.


Definition at line 809 of file platform/emlib/inc/em_adc.h