AdcConfig

Type Alias AdcConfig 

Source
pub type AdcConfig = SaadcConfig;
Expand description

AdcConfig alias to unify v1 and v2 names

Aliased Type§

pub struct AdcConfig {
    pub resolution: VAL_A,
    pub oversample: OVERSAMPLE_A,
    pub reference: REFSEL_A,
    pub gain: GAIN_A,
    pub resistor: RESP_A,
    pub time: TACQ_A,
}

Fields§

§resolution: VAL_A

Output resolution in bits.

§oversample: OVERSAMPLE_A

Average 2^oversample input samples before transferring the result into memory.

§reference: REFSEL_A

Reference voltage of the SAADC input.

§gain: GAIN_A

Gain used to control the effective input range of the SAADC.

§resistor: RESP_A

Positive channel resistor control.

§time: TACQ_A

Acquisition time in microseconds.

Trait Implementations§

Source§

impl Default for AdcConfig

Source§

fn default_10bit() -> Self

v1 is limited to 10 bit