embassy-mcxa

Crates

git

Versions

mcx-a256

Flavors

Lpi2cConfig

Struct Lpi2cConfig 

Source
pub struct Lpi2cConfig {
    pub power: PoweredClock,
    pub source: Lpi2cClockSel,
    pub div: Div4,
    /* private fields */
}
Expand description

Top level configuration for Lpi2c instances.

Fields§

§power: PoweredClock

Power state required for this peripheral

§source: Lpi2cClockSel

Clock source

§div: Div4

Clock divisor

Trait Implementations§

Source§

impl SPConfHelper for Lpi2cConfig

Source§

fn post_enable_config(&self, clocks: &Clocks) -> Result<u32, ClockError>

This method is called AFTER a given MRCC peripheral has been enabled (e.g. un-gated), but BEFORE the peripheral reset line is reset. Read more

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