Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 24 fields pub A1_REGS: A1_REGS, pub IOMUX: IOMUX, pub ADC: ADC, pub AIP: AIP, pub AUD: AUD, pub CFG_CTL: CFG_CTL, pub CRU: CRU, pub DMA: DMA, pub EXTREGSFFE: EXTREGSFFE, pub I2S_SLAVE: I2S_SLAVE, pub INTR_CTRL: INTR_CTRL, pub MISC: MISC, pub PKFB: PKFB, pub PMU: PMU, pub SDMA_BRIDGE: SDMA_BRIDGE, pub SDMA_SRAM: SDMA_SRAM, pub SDMA: SDMA, pub SPI: SPI, pub SPT: SPT, pub SPI_TLC: SPI_TLC, pub TIMER: TIMER, pub UART: UART, pub WDT: WDT, pub EXTM4REGS: EXTM4REGS,
}
Expand description

All the peripherals

Fields§

§A1_REGS: A1_REGS

A1_REGS

§IOMUX: IOMUX

IOMUX

§ADC: ADC

ADC

§AIP: AIP

AIP

§AUD: AUD

AUD

§CFG_CTL: CFG_CTL

CFG_CTL

§CRU: CRU

CRU

§DMA: DMA

DMA

§EXTREGSFFE: EXTREGSFFE

EXTREGSFFE

§I2S_SLAVE: I2S_SLAVE

I2S_SLAVE

§INTR_CTRL: INTR_CTRL

INTR_CTRL

§MISC: MISC

MISC

§PKFB: PKFB

PKFB

§PMU: PMU

PMU

§SDMA_BRIDGE: SDMA_BRIDGE

SDMA_BRIDGE

§SDMA_SRAM: SDMA_SRAM

SDMA_SRAM

§SDMA: SDMA

SDMA

§SPI: SPI

SPI

§SPT: SPT

SPT

§SPI_TLC: SPI_TLC

SPI_TLC

§TIMER: TIMER

TIMER

§UART: UART

UART

§WDT: WDT

WDT

§EXTM4REGS: EXTM4REGS

EXTM4REGS

Implementations§

Source§

impl Peripherals

Source

pub fn take() -> Option<Self>

Returns all the peripherals once

Source

pub unsafe fn steal() -> Self

Unchecked version of Peripherals::take

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.