Skip to main content

Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 58 fields pub ACMPHS0: Acmphs0, pub ACMPLP: Acmplp, pub ADC160: Adc160, pub CTSU: Ctsu, pub OPAMP: Opamp, pub SDADC24: Sdadc24, pub TSN: Tsn, pub DAC12: Dac12, pub DAC8: Dac8, pub ELC: Elc, pub IWDT: Iwdt, pub KINT: Kint, pub USBFS: Usbfs, pub WDT: Wdt, pub CAC: Cac, pub CRC: Crc, pub DOC: Doc, pub SCI0: Sci0, pub SCI1: Sci1, pub SCI9: Sci1, pub SPI0: Spi0, pub SPI1: Spi0, pub CAN0: Can0, pub IIC0: Iic0, pub IIC1: Iic1, pub MMF: Mmf, pub MMPU: Mmpu, pub SMPU: Smpu, pub SPMON: Spmon, pub SRAM: Sram, pub BUS: Bus, pub DBG: Dbg, pub DTC: Dtc, pub ICU: Icu, pub SYSTEM: System, pub MSTP: Mstp, pub AGT0: Agt0, pub AGT1: Agt0, pub GPT320: Gpt320, pub GPT_OPS: GptOps, pub GPT161: Gpt161, pub GPT162: Gpt161, pub GPT163: Gpt161, pub GPT164: Gpt161, pub GPT165: Gpt161, pub GPT166: Gpt161, pub POEG: Poeg, pub RTC: Rtc, pub FCACHE: Fcache, pub PORT0: Port0, pub PORT1: Port1, pub PORT2: Port1, pub PORT3: Port0, pub PORT4: Port0, pub PORT5: Port0, pub PORT9: Port0, pub PFS: Pfs, pub PMISC: Pmisc,
}
Expand description

Required for compatibility with RTIC and other frameworks

Fields§

§ACMPHS0: Acmphs0§ACMPLP: Acmplp§ADC160: Adc160§CTSU: Ctsu§OPAMP: Opamp§SDADC24: Sdadc24§TSN: Tsn§DAC12: Dac12§DAC8: Dac8§ELC: Elc§IWDT: Iwdt§KINT: Kint§USBFS: Usbfs§WDT: Wdt§CAC: Cac§CRC: Crc§DOC: Doc§SCI0: Sci0§SCI1: Sci1§SCI9: Sci1§SPI0: Spi0§SPI1: Spi0§CAN0: Can0§IIC0: Iic0§IIC1: Iic1§MMF: Mmf§MMPU: Mmpu§SMPU: Smpu§SPMON: Spmon§SRAM: Sram§BUS: Bus§DBG: Dbg§DTC: Dtc§ICU: Icu§SYSTEM: System§MSTP: Mstp§AGT0: Agt0§AGT1: Agt0§GPT320: Gpt320§GPT_OPS: GptOps§GPT161: Gpt161§GPT162: Gpt161§GPT163: Gpt161§GPT164: Gpt161§GPT165: Gpt161§GPT166: Gpt161§POEG: Poeg§RTC: Rtc§FCACHE: Fcache§PORT0: Port0§PORT1: Port1§PORT2: Port1§PORT3: Port0§PORT4: Port0§PORT5: Port0§PORT9: Port0§PFS: Pfs§PMISC: Pmisc

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.