Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 37 fields pub NVIC: Nvic, pub SCB: Scb, pub SYSTICK: SysTick, pub AES_HASH: AesHash, pub ANAMISC: Anamisc, pub APU: Apu, pub BLE: Ble, pub CACHE: Cache, pub CHIP_VERSION: ChipVersion, pub COEX: Coex, pub CRG_PER: CrgPer, pub CRG_TOP: CrgTop, pub DCDC: Dcdc, pub DEM: Dem, pub DMA: Dma, pub ECC: Ecc, pub FTDF: Ftdf, pub GP_TIMERS: GpTimers, pub GPADC: Gpadc, pub GPIO: Gpio, pub GPREG: Gpreg, pub I2C: I2C, pub I2C2: I2C2, pub IR: Ir, pub KBSCAN: Kbscan, pub OTPC: Otpc, pub QSPIC: Qspic, pub QUAD: Quad, pub SPI: Spi, pub SPI2: Spi2, pub TIMER1: Timer1, pub TRNG: Trng, pub UART: Uart, pub UART2: Uart2, pub USB: Usb, pub WAKEUP: Wakeup, pub WDOG: Wdog,
}
Expand description

Required for compatibility with RTIC and other frameworks

Fields§

§NVIC: Nvic§SCB: Scb§SYSTICK: SysTick§AES_HASH: AesHash§ANAMISC: Anamisc§APU: Apu§BLE: Ble§CACHE: Cache§CHIP_VERSION: ChipVersion§COEX: Coex§CRG_PER: CrgPer§CRG_TOP: CrgTop§DCDC: Dcdc§DEM: Dem§DMA: Dma§ECC: Ecc§FTDF: Ftdf§GP_TIMERS: GpTimers§GPADC: Gpadc§GPIO: Gpio§GPREG: Gpreg§I2C: I2C§I2C2: I2C2§IR: Ir§KBSCAN: Kbscan§OTPC: Otpc§QSPIC: Qspic§QUAD: Quad§SPI: Spi§SPI2: Spi2§TIMER1: Timer1§TRNG: Trng§UART: Uart§UART2: Uart2§USB: Usb§WAKEUP: Wakeup§WDOG: Wdog

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.