IADC config structure.

Public Attributes#

IADC mode; Normal, High speed or High Accuracy.

Over sampling ratio for High Speed and Normal modes.

Over sampling ratio for High Accuracy mode.

uint32_t

ADC_CLK divider (prescale+1).

uint32_t

Vref magnitude expressed in millivolts.

Public Attribute Documentation#

adc_mode#

sl_hal_iadc_config_adc_mode_t sl_hal_iadc_config_t::adc_mode

IADC mode; Normal, High speed or High Accuracy.


osr_high_speed#

sl_hal_iadc_config_osr_high_speed_t sl_hal_iadc_config_t::osr_high_speed

Over sampling ratio for High Speed and Normal modes.


osr_high_accuracy#

sl_hal_iadc_config_osr_high_accuracy_t sl_hal_iadc_config_t::osr_high_accuracy

Over sampling ratio for High Accuracy mode.


analog_gain#

sl_hal_iadc_analog_gain_t sl_hal_iadc_config_t::analog_gain

Analog gain.


reference#

sl_hal_iadc_voltage_reference_t sl_hal_iadc_config_t::reference

Reference selection.


twos_complement#

sl_hal_iadc_config_twos_comp_t sl_hal_iadc_config_t::twos_complement

Two's complement reporting.


adc_clk_prescale#

uint32_t sl_hal_iadc_config_t::adc_clk_prescale

ADC_CLK divider (prescale+1).


vref#

uint32_t sl_hal_iadc_config_t::vref

Vref magnitude expressed in millivolts.


dig_avg#

sl_hal_iadc_digital_averaging_t sl_hal_iadc_config_t::dig_avg

Digital average mode.