Struct esp32c2::Peripherals

source ·
pub struct Peripherals {
Show 27 fields pub APB_CTRL: APB_CTRL, pub APB_SARADC: APB_SARADC, pub ASSIST_DEBUG: ASSIST_DEBUG, pub BB: BB, pub DMA: DMA, pub ECC: ECC, pub EFUSE: EFUSE, pub EXTMEM: EXTMEM, pub GPIO: GPIO, pub I2C0: I2C0, pub INTERRUPT_CORE0: INTERRUPT_CORE0, pub IO_MUX: IO_MUX, pub LEDC: LEDC, pub MODEM_CLKRST: MODEM_CLKRST, pub RNG: RNG, pub RTC_CNTL: RTC_CNTL, pub SENSITIVE: SENSITIVE, pub SHA: SHA, pub SPI0: SPI0, pub SPI1: SPI1, pub SPI2: SPI2, pub SYSTEM: SYSTEM, pub SYSTIMER: SYSTIMER, pub TIMG0: TIMG0, pub UART0: UART0, pub UART1: UART1, pub XTS_AES: XTS_AES,
}
Expand description

All the peripherals.

Fields§

§APB_CTRL: APB_CTRL

APB_CTRL

§APB_SARADC: APB_SARADC

APB_SARADC

§ASSIST_DEBUG: ASSIST_DEBUG

ASSIST_DEBUG

§BB: BB

BB

§DMA: DMA

DMA

§ECC: ECC

ECC

§EFUSE: EFUSE

EFUSE

§EXTMEM: EXTMEM

EXTMEM

§GPIO: GPIO

GPIO

§I2C0: I2C0

I2C0

§INTERRUPT_CORE0: INTERRUPT_CORE0

INTERRUPT_CORE0

§IO_MUX: IO_MUX

IO_MUX

§LEDC: LEDC

LEDC

§MODEM_CLKRST: MODEM_CLKRST

MODEM_CLKRST

§RNG: RNG

RNG

§RTC_CNTL: RTC_CNTL

RTC_CNTL

§SENSITIVE: SENSITIVE

SENSITIVE

§SHA: SHA

SHA

§SPI0: SPI0

SPI0

§SPI1: SPI1

SPI1

§SPI2: SPI2

SPI2

§SYSTEM: SYSTEM

SYSTEM

§SYSTIMER: SYSTIMER

SYSTIMER

§TIMG0: TIMG0

TIMG0

§UART0: UART0

UART0

§UART1: UART1

UART1

§XTS_AES: XTS_AES

XTS_AES

Implementations§

source§

impl Peripherals

source

pub unsafe fn steal() -> Self

Unchecked version of Peripherals::take.

Safety

Each of the returned peripherals must be used at most once.

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>,

§

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>,

§

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.