embassy-mcxa

Crates

git

Versions

mcx-a256

Flavors

LpadcConfig

Struct LpadcConfig 

Source
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: bool

Control 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: CalAvgs

Auto-Calibration Averages.

§enable_analog_preliminary: bool

ADC analog circuits are pre-enabled and ready to execute conversions without startup delays(at the cost of higher DC current consumption).

§power_up_delay: u8

Power-up delay value (in ADC clock cycles)

§reference_voltage_source: Refsel

Reference voltage source selection

§power_level_mode: Pwrsel

Power configuration selection.

§trigger_priority_policy: TriggerPriorityPolicy

Trigger priority policy for handling multiple triggers

§enable_conv_pause: bool

Enables 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: u16

Controls 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: PoweredClock

Power configuration (normal/deep sleep behavior)

§source: AdcClockSel

ADC clock source selection

§div: Div4

Clock divider for ADC clock

Trait Implementations§

Source§

impl Clone for LpadcConfig

Source§

fn clone(&self) -> LpadcConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LpadcConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for LpadcConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for LpadcConfig

Source§

fn eq(&self, other: &LpadcConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for LpadcConfig

Source§

impl Eq for LpadcConfig

Source§

impl StructuralPartialEq for LpadcConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.