ADC_InitSingle_TypeDef Struct Reference

Single conversion initialization structure.

#include <em_adc.h>

Data Fields

ADC_PRSSEL_TypeDef prsSel
Peripheral reflex system trigger selection.
ADC_AcqTime_TypeDef acqTime
Acquisition time (in ADC clock cycles).
ADC_Ref_TypeDef reference
Sample reference selection.
ADC_Res_TypeDef resolution
Sample resolution.
ADC_PosSel_TypeDef posSel
Select positive input for single channel conversion mode.
ADC_NegSel_TypeDef negSel
Select negative input for single channel conversion mode.
bool diff
Select if single-ended or differential input.
bool prsEnable
Peripheral reflex system trigger enable.
bool leftAdjust
Select if left adjustment should be done.
bool rep
Select if continuous conversion until explicit stop.
bool singleDmaEm2Wu
When true, DMA is available in EM2 for single conversion.
bool fifoOverwrite
When true, FIFO overwrites old data when full.

Single conversion initialization structure.

Field Documentation

prsSel

ADC_PRSSEL_TypeDef ADC_InitSingle_TypeDef::prsSel

Peripheral reflex system trigger selection.

Only applicable if prsEnable is enabled.

acqTime

ADC_AcqTime_TypeDef ADC_InitSingle_TypeDef::acqTime

Acquisition time (in ADC clock cycles).

reference

ADC_Ref_TypeDef ADC_InitSingle_TypeDef::reference

Sample reference selection.

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

resolution

ADC_Res_TypeDef ADC_InitSingle_TypeDef::resolution

Sample resolution.

posSel

ADC_PosSel_TypeDef ADC_InitSingle_TypeDef::posSel

Select positive input for single channel conversion mode.

negSel

ADC_NegSel_TypeDef ADC_InitSingle_TypeDef::negSel

Select negative input for single channel conversion mode.

Negative input is grounded for single-ended (non-differential) converison.

diff

bool ADC_InitSingle_TypeDef::diff

Select if single-ended or differential input.

prsEnable

bool ADC_InitSingle_TypeDef::prsEnable

Peripheral reflex system trigger enable.

leftAdjust

bool ADC_InitSingle_TypeDef::leftAdjust

Select if left adjustment should be done.

rep

bool ADC_InitSingle_TypeDef::rep

Select if continuous conversion until explicit stop.

singleDmaEm2Wu

bool ADC_InitSingle_TypeDef::singleDmaEm2Wu

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

fifoOverwrite

bool ADC_InitSingle_TypeDef::fifoOverwrite

When true, FIFO overwrites old data when full.

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