IADC_Init_t Struct Reference

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

#include <em_iadc.h>

Data Fields

bool iadcClkSuspend0
 Suspend IADC_CLK when in scan mode until PRS trigger.
 
bool iadcClkSuspend1
 Suspend IADC_CLK when in single mode until PRS trigger.
 
bool debugHalt
 Halt IADC during debug mode.
 
IADC_Warmup_t warmup
 IADC warmup mode.
 
uint8_t timebase
 IADC clock cycles (timebase+1) corresponding to 1us.
 
uint8_t srcClkPrescale
 User requested source clock divider (prescale+1) which will be used if the calculated prescaler value is less.
 
uint16_t timerCycles
 Number of ADC_CLK cycles per TIMER event.
 
uint16_t greaterThanEqualThres
 Digital window comparator greater-than or equal threshold.
 
uint16_t lessThanEqualThres
 Digital window comparator less-than or equal threshold.
 

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

Field 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.