pub struct LpadcConfig {
pub enable_in_doze_mode: bool,
pub conversion_average_mode: CalAvgs,
pub enable_analog_preliminary: bool,
pub power_up_delay: u8,
pub reference_voltage_source: Refsel,
pub power_level_mode: Pwrsel,
pub trigger_priority_policy: TriggerPriorityPolicy,
pub enable_conv_pause: bool,
pub conv_pause_delay: u16,
pub power: PoweredClock,
pub source: AdcClockSel,
pub div: Div4,
}Expand description
Configuration for the LPADC peripheral.
Fields§
§enable_in_doze_mode: boolControl system transition to Stop and Wait power modes while ADC is converting. When enabled in Doze mode, immediate entries to Wait or Stop are allowed. When disabled, the ADC will wait for the current averaging iteration/FIFO storage to complete before acknowledging stop or wait mode entry.
conversion_average_mode: CalAvgsAuto-Calibration Averages.
enable_analog_preliminary: boolADC analog circuits are pre-enabled and ready to execute conversions without startup delays(at the cost of higher DC current consumption).
power_up_delay: u8Power-up delay value (in ADC clock cycles)
reference_voltage_source: RefselReference voltage source selection
power_level_mode: PwrselPower configuration selection.
trigger_priority_policy: TriggerPriorityPolicyTrigger priority policy for handling multiple triggers
enable_conv_pause: boolEnables the ADC pausing function. When enabled, a programmable delay is inserted during command execution sequencing between LOOP iterations, between commands in a sequence, and between conversions when command is executing in “Compare Until True” configuration.
conv_pause_delay: u16Controls the duration of pausing during command execution sequencing. The pause delay is a count of (convPauseDelay*4) ADCK cycles. Only available when ADC pausing function is enabled. The available value range is in 9-bit.
power: PoweredClockPower configuration (normal/deep sleep behavior)
source: AdcClockSelADC clock source selection
div: Div4Clock divider for ADC clock
Trait Implementations§
Source§impl Clone for LpadcConfig
impl Clone for LpadcConfig
Source§fn clone(&self) -> LpadcConfig
fn clone(&self) -> LpadcConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more