Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 37 fields pub RMPU: Rmpu, pub SRAM: Sram, pub BUS: Bus, pub DTC: Dtc, pub ICU: Icu, pub DBG: Dbg, pub SYSC: Sysc, pub PORT0: Port0, pub PORT1: Port1, pub PORT2: Port1, pub PORT3: Port0, pub PORT4: Port0, pub PORT9: Port0, pub PFS: Pfs, pub ELC: Elc, pub POEG: Poeg, pub WDT: Wdt, pub IWDT: Iwdt, pub CAC: Cac, pub MSTP: Mstp, pub DOC: Doc, pub ADC120: Adc120, pub SCI9: Sci9, pub SPI0: Spi0, pub CRC: Crc, pub GPT164: Gpt164, pub GPT165: Gpt164, pub GPT166: Gpt164, pub GPT167: Gpt164, pub GPT168: Gpt164, pub GPT169: Gpt164, pub GPT_OPS: GptOps, pub KINT: Kint, pub I3C: I3C, pub AGTW0: Agtw0, pub AGTW1: Agtw0, pub FLCN: Flcn,
}
Expand description

Required for compatibility with RTIC and other frameworks

Fields§

§RMPU: Rmpu§SRAM: Sram§BUS: Bus§DTC: Dtc§ICU: Icu§DBG: Dbg§SYSC: Sysc§PORT0: Port0§PORT1: Port1§PORT2: Port1§PORT3: Port0§PORT4: Port0§PORT9: Port0§PFS: Pfs§ELC: Elc§POEG: Poeg§WDT: Wdt§IWDT: Iwdt§CAC: Cac§MSTP: Mstp§DOC: Doc§ADC120: Adc120§SCI9: Sci9§SPI0: Spi0§CRC: Crc§GPT164: Gpt164§GPT165: Gpt164§GPT166: Gpt164§GPT167: Gpt164§GPT168: Gpt164§GPT169: Gpt164§GPT_OPS: GptOps§KINT: Kint§I3C: I3C§AGTW0: Agtw0§AGTW1: Agtw0§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.