pub struct Peripherals {
Show 44 fields pub AES: AES, pub APB_CTRL: APB_CTRL, pub BB: BB, pub DPORT: DPORT, pub EFUSE: EFUSE, pub FLASH_ENCRYPTION: FLASH_ENCRYPTION, pub FRC_TIMER: FRC_TIMER, pub GPIO: GPIO, pub GPIO_SD: GPIO_SD, pub HINF: HINF, pub I2C0: I2C0, pub I2C1: I2C1, pub I2S0: I2S0, pub I2S1: I2S1, pub IO_MUX: IO_MUX, pub LEDC: LEDC, pub PWM0: PWM0, pub PWM1: PWM1, pub NRX: NRX, pub PCNT: PCNT, pub RMT: RMT, pub RNG: RNG, pub RSA: RSA, pub RTC_CNTL: RTC_CNTL, pub RTCIO: RTCIO, pub RTC_I2C: RTC_I2C, pub SDMMC: SDMMC, pub SENS: SENS, pub SHA: SHA, pub SLC: SLC, pub SLCHOST: SLCHOST, pub SPI0: SPI0, pub SPI1: SPI1, pub SPI2: SPI2, pub SPI3: SPI3, pub TIMG0: TIMG0, pub TIMG1: TIMG1, pub TWAI: TWAI, pub UART0: UART0, pub UART1: UART1, pub UART2: UART2, pub UHCI0: UHCI0, pub UHCI1: UHCI1, pub RADIO: RADIO,
}

Fields§

§AES: AES§APB_CTRL: APB_CTRL§BB: BB§DPORT: DPORT§EFUSE: EFUSE§FLASH_ENCRYPTION: FLASH_ENCRYPTION§FRC_TIMER: FRC_TIMER§GPIO: GPIO§GPIO_SD: GPIO_SD§HINF: HINF§I2C0: I2C0§I2C1: I2C1§I2S0: I2S0§I2S1: I2S1§IO_MUX: IO_MUX§LEDC: LEDC§PWM0: PWM0§PWM1: PWM1§NRX: NRX§PCNT: PCNT§RMT: RMT§RNG: RNG§RSA: RSA§RTC_CNTL: RTC_CNTL§RTCIO: RTCIO§RTC_I2C: RTC_I2C§SDMMC: SDMMC§SENS: SENS§SHA: SHA§SLC: SLC§SLCHOST: SLCHOST§SPI0: SPI0§SPI1: SPI1§SPI2: SPI2§SPI3: SPI3§TIMG0: TIMG0§TIMG1: TIMG1§TWAI: TWAI§UART0: UART0§UART1: UART1§UART2: UART2§UHCI0: UHCI0§UHCI1: UHCI1§RADIO: RADIO

Implementations§

source§

impl Peripherals

source

pub fn take() -> Peripherals

Returns all the peripherals once

source§

impl Peripherals

source

pub unsafe fn steal() -> Peripherals

Unsafely create an instance of this peripheral out of thin air.

Safety

You must ensure that you’re only using one instance of this type at a time.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.