IADC init structure, common for single conversion and scan sequence.

Public Attributes#

bool

Suspend IADC_CLK when in scan mode until PRS trigger.

bool

Suspend IADC_CLK when in single mode until PRS trigger.

bool

Halt IADC during debug mode.

IADC warmup mode.

uint8_t

IADC clock cycles (timebase+1) corresponding to 1us.

uint8_t

User requested source clock divider (prescale+1) which will be used if the calculated prescaler value is less.

uint16_t

Number of ADC_CLK cycles per TIMER event.

uint16_t

Digital window comparator greater-than or equal threshold.

uint16_t

Digital window comparator less-than or equal threshold.

Public Attribute Documentation#

iadcClkSuspend0#

bool IADC_Init_t::iadcClkSuspend0

Suspend IADC_CLK when in scan mode until PRS trigger.


iadcClkSuspend1#

bool IADC_Init_t::iadcClkSuspend1

Suspend IADC_CLK when in single mode until PRS trigger.


debugHalt#

bool IADC_Init_t::debugHalt

Halt IADC during debug mode.


warmup#

IADC_Warmup_t IADC_Init_t::warmup

IADC warmup mode.


timebase#

uint8_t IADC_Init_t::timebase

IADC clock cycles (timebase+1) corresponding to 1us.

Used as time reference for IADC delays, e.g. warmup. If the user sets timebase to 0, then IADC_Init() will calculate the timebase using the currently defined CMU clock setting for the IADC.


srcClkPrescale#

uint8_t IADC_Init_t::srcClkPrescale

User requested source clock divider (prescale+1) which will be used if the calculated prescaler value is less.


timerCycles#

uint16_t IADC_Init_t::timerCycles

Number of ADC_CLK cycles per TIMER event.


greaterThanEqualThres#

uint16_t IADC_Init_t::greaterThanEqualThres

Digital window comparator greater-than or equal threshold.


lessThanEqualThres#

uint16_t IADC_Init_t::lessThanEqualThres

Digital window comparator less-than or equal threshold.