Skip to main content

Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 29 fields pub SRAM: Sram, pub BUS: Bus, pub DTC: Dtc, pub ICU: Icu, pub DBG: Dbg, pub SYSC: Sysc, pub ELC: Elc, pub IWDT: Iwdt, pub MSTP: Mstp, pub CRC: Crc, pub PORT0: Port0, pub PORT1: Port1, pub PORT2: Port2, pub PORT3: Port3, pub PORT4: Port4, pub PORT9: Port9, pub PFS_A: PfsA, pub PORGA: Porga, pub ADC_D: AdcD, pub SAU0: Sau0, pub SAU1: Sau1, pub TAU: Tau, pub RTC_C: RtcC, pub IICA: Iica, pub UARTA: Uarta, pub TML32: Tml32, pub PCLBUZ: Pclbuz, pub TRNG: Trng, pub FLCN: Flcn,
}
Expand description

Required for compatibility with RTIC and other frameworks

Fields§

§SRAM: Sram§BUS: Bus§DTC: Dtc§ICU: Icu§DBG: Dbg§SYSC: Sysc§ELC: Elc§IWDT: Iwdt§MSTP: Mstp§CRC: Crc§PORT0: Port0§PORT1: Port1§PORT2: Port2§PORT3: Port3§PORT4: Port4§PORT9: Port9§PFS_A: PfsA§PORGA: Porga§ADC_D: AdcD§SAU0: Sau0§SAU1: Sau1§TAU: Tau§RTC_C: RtcC§IICA: Iica§UARTA: Uarta§TML32: Tml32§PCLBUZ: Pclbuz§TRNG: Trng§FLCN: Flcn

Implementations§

Source§

impl Peripherals

Source

pub fn take() -> Option<Self>

Returns Peripheral struct multiple times Required for compatibility with RTIC and other frameworks

Source

pub fn steal() -> Self

Returns Peripheral struct multiple times Required for compatibility with RTIC and other frameworks

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.