Scan sequence initialization structure.

Public Attributes#

Peripheral reflex system trigger selection.

Acquisition time (in ADC clock cycles).

Sample reference selection.

Sample resolution.

bool

Select if single-ended or differential input.

bool

Peripheral reflex system trigger enable.

bool

Select if left adjustment should be done.

bool

Select if continuous conversion until explicit stop.

bool

When true, DMA is available in EM2 for scan conversion.

bool

When true, FIFO overwrites old data when full.

Public Attribute Documentation#

prsSel#

ADC_PRSSEL_TypeDef ADC_InitScan_TypeDef::prsSel

Peripheral reflex system trigger selection.

Only applicable if prsEnable is enabled.


acqTime#

ADC_AcqTime_TypeDef ADC_InitScan_TypeDef::acqTime

Acquisition time (in ADC clock cycles).


reference#

ADC_Ref_TypeDef ADC_InitScan_TypeDef::reference

Sample reference selection.

Note that, for external references, the ADC calibration register must be set explicitly.


resolution#

ADC_Res_TypeDef ADC_InitScan_TypeDef::resolution

Sample resolution.


scanInputConfig#

ADC_InitScanInput_TypeDef ADC_InitScan_TypeDef::scanInputConfig

Scan input configuration.

Use ADC_ScanInputClear(), ADC_ScanSingleEndedInputAdd() or ADC_ScanDifferentialInputAdd() to update this structure.


diff#

bool ADC_InitScan_TypeDef::diff

Select if single-ended or differential input.


prsEnable#

bool ADC_InitScan_TypeDef::prsEnable

Peripheral reflex system trigger enable.


leftAdjust#

bool ADC_InitScan_TypeDef::leftAdjust

Select if left adjustment should be done.


rep#

bool ADC_InitScan_TypeDef::rep

Select if continuous conversion until explicit stop.


scanDmaEm2Wu#

bool ADC_InitScan_TypeDef::scanDmaEm2Wu

When true, DMA is available in EM2 for scan conversion.


fifoOverwrite#

bool ADC_InitScan_TypeDef::fifoOverwrite

When true, FIFO overwrites old data when full.

If false, FIFO discards new data. The SINGLEOF IRQ is triggered in both cases.