Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 31 fields pub NVIC: Nvic, pub SCB: Scb, pub SYSTICK: SysTick, pub ADPLLDIG: Adplldig, pub ANAMISC: Anamisc, pub BLE: Ble, pub CHIP_VERSION: ChipVersion, pub CRG_AON: CrgAon, pub CRG_TIM: CrgTim, pub CRG_TOP: CrgTop, pub GPADC: Gpadc, pub GPIO: Gpio, pub GPREG: Gpreg, pub I2C: I2C, pub KBRD: Kbrd, pub MBIST_SRAM12: MbistSram12, pub MBIST_SRAM3: MbistSram3, pub OTPC: Otpc, pub PATCH: Patch, pub QUADEC: Quadec, pub RFCU: Rfcu, pub RFCU_POWER: RfcuPower, pub RFMON: Rfmon, pub RTC: Rtc, pub SPI: Spi, pub SYS_WDOG: SysWdog, pub TIMER0: Timer0, pub TIMER1: Timer1, pub UART: Uart, pub UART2: Uart2, pub WKUP: Wkup,
}
Expand description

Required for compatibility with RTIC and other frameworks

Fields§

§NVIC: Nvic§SCB: Scb§SYSTICK: SysTick§ADPLLDIG: Adplldig§ANAMISC: Anamisc§BLE: Ble§CHIP_VERSION: ChipVersion§CRG_AON: CrgAon§CRG_TIM: CrgTim§CRG_TOP: CrgTop§GPADC: Gpadc§GPIO: Gpio§GPREG: Gpreg§I2C: I2C§KBRD: Kbrd§MBIST_SRAM12: MbistSram12§MBIST_SRAM3: MbistSram3§OTPC: Otpc§PATCH: Patch§QUADEC: Quadec§RFCU: Rfcu§RFCU_POWER: RfcuPower§RFMON: Rfmon§RTC: Rtc§SPI: Spi§SYS_WDOG: SysWdog§TIMER0: Timer0§TIMER1: Timer1§UART: Uart§UART2: Uart2§WKUP: Wkup

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.