Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 47 fields pub SAU: Sau, pub AES_HASH: AesHash, pub ANAMISC: Anamisc, pub APU: Apu, pub CACHE: Cache, pub CHARGER: Charger, pub CHIP_VERSION: ChipVersion, pub CMAC: Cmac, pub CMAC_TIMER_SLP: CmacTimerSlp, pub CRG_COM: CrgCom, pub CRG_PER: CrgPer, pub CRG_SYS: CrgSys, pub CRG_TOP: CrgTop, pub CRG_XTAL: CrgXtal, pub DCDC: Dcdc, pub DMA: Dma, pub DW: Dw, pub GPADC: Gpadc, pub GPIO: Gpio, pub GPREG: Gpreg, pub I2C: I2C, pub I2C2: I2C2, pub LCDC: Lcdc, pub LRA: Lra, pub MEMCTRL: Memctrl, pub OTPC: Otpc, pub PDC: Pdc, pub PWMLED: Pwmled, pub QSPIC: Qspic, pub QSPIC2: Qspic2, pub RFMON: Rfmon, pub RTC: Rtc, pub SDADC: Sdadc, pub SMOTOR: Smotor, pub SNC: Snc, pub SPI: Spi, pub SPI2: Spi2, pub SYS_WDOG: SysWdog, pub TIMER: Timer, pub TIMER2: Timer2, pub TIMER3: Timer3, pub TIMER4: Timer4, pub UART: Uart, pub UART2: Uart2, pub UART3: Uart3, pub USB: Usb, pub WAKEUP: Wakeup,
}
Expand description

Required for compatibility with RTIC and other frameworks

Fields§

§SAU: Sau§AES_HASH: AesHash§ANAMISC: Anamisc§APU: Apu§CACHE: Cache§CHARGER: Charger§CHIP_VERSION: ChipVersion§CMAC: Cmac§CMAC_TIMER_SLP: CmacTimerSlp§CRG_COM: CrgCom§CRG_PER: CrgPer§CRG_SYS: CrgSys§CRG_TOP: CrgTop§CRG_XTAL: CrgXtal§DCDC: Dcdc§DMA: Dma§DW: Dw§GPADC: Gpadc§GPIO: Gpio§GPREG: Gpreg§I2C: I2C§I2C2: I2C2§LCDC: Lcdc§LRA: Lra§MEMCTRL: Memctrl§OTPC: Otpc§PDC: Pdc§PWMLED: Pwmled§QSPIC: Qspic§QSPIC2: Qspic2§RFMON: Rfmon§RTC: Rtc§SDADC: Sdadc§SMOTOR: Smotor§SNC: Snc§SPI: Spi§SPI2: Spi2§SYS_WDOG: SysWdog§TIMER: Timer§TIMER2: Timer2§TIMER3: Timer3§TIMER4: Timer4§UART: Uart§UART2: Uart2§UART3: Uart3§USB: Usb§WAKEUP: Wakeup

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.