Struct Peripherals

Source
pub struct Peripherals {
Show 13 fields pub LP_I2C0: LP_I2C0, pub LP_PERI: LP_PERI, pub LP_ANA: LP_ANA, pub LP_AON: LP_AON, pub LP_APM: LP_APM, pub LP_CLKRST: LP_CLKRST, pub LP_I2C_ANA_MST: LP_I2C_ANA_MST, pub LP_IO: LP_IO, pub LP_TEE: LP_TEE, pub LP_TIMER: LP_TIMER, pub LP_UART: LP_UART, pub LP_WDT: LP_WDT, pub PMU: PMU,
}
Expand description

All the peripherals.

Fields§

§LP_I2C0: LP_I2C0

LP_I2C0

§LP_PERI: LP_PERI

LP_PERI

§LP_ANA: LP_ANA

LP_ANA

§LP_AON: LP_AON

LP_AON

§LP_APM: LP_APM

LP_APM

§LP_CLKRST: LP_CLKRST

LP_CLKRST

§LP_I2C_ANA_MST: LP_I2C_ANA_MST

LP_I2C_ANA_MST

§LP_IO: LP_IO

LP_IO

§LP_TEE: LP_TEE

LP_TEE

§LP_TIMER: LP_TIMER

LP_TIMER

§LP_UART: LP_UART

LP_UART

§LP_WDT: LP_WDT

LP_WDT

§PMU: PMU

PMU

Implementations§

Source§

impl Peripherals

Source

pub unsafe fn steal() -> Self

Unchecked version of Peripherals::take.

§Safety

Each of the returned peripherals must be used at most once.

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.