Struct Peripherals

Source
pub struct Peripherals {
Show 56 fields pub AES: AES, pub APB_SARADC: APB_SARADC, pub ASSIST_DEBUG: ASSIST_DEBUG, pub DMA: DMA, pub DS: DS, pub ECC: ECC, pub EFUSE: EFUSE, pub GPIO: GPIO, pub GPIO_SD: GPIO_SD, pub HMAC: HMAC, pub HP_APM: HP_APM, pub HP_SYS: HP_SYS, pub I2C0: I2C0, pub I2C1: I2C1, pub I2S0: I2S0, pub INTERRUPT_CORE0: INTERRUPT_CORE0, pub INTPRI: INTPRI, pub IO_MUX: IO_MUX, pub LEDC: LEDC, pub LPWR: LPWR, pub LP_ANA: LP_ANA, pub LP_AON: LP_AON, pub LP_APM: LP_APM, pub LP_PERI: LP_PERI, pub LP_TIMER: LP_TIMER, pub LP_WDT: LP_WDT, pub MCPWM0: MCPWM0, pub MEM_MONITOR: MEM_MONITOR, pub MODEM_LPCON: MODEM_LPCON, pub MODEM_SYSCON: MODEM_SYSCON, pub OTP_DEBUG: OTP_DEBUG, pub PARL_IO: PARL_IO, pub PAU: PAU, pub PCNT: PCNT, pub PMU: PMU, pub RMT: RMT, pub RNG: RNG, pub RSA: RSA, pub SHA: SHA, pub SOC_ETM: SOC_ETM, pub SPI0: SPI0, pub SPI1: SPI1, pub SPI2: SPI2, pub SYSTEM: SYSTEM, pub SYSTIMER: SYSTIMER, pub TEE: TEE, pub TIMG0: TIMG0, pub TIMG1: TIMG1, pub TRACE: TRACE, pub TWAI0: TWAI0, pub UART0: UART0, pub UART1: UART1, pub UHCI0: UHCI0, pub USB_DEVICE: USB_DEVICE, pub BT: BT, pub IEEE802154: IEEE802154,
}

Fields§

§AES: AES§APB_SARADC: APB_SARADC§ASSIST_DEBUG: ASSIST_DEBUG§DMA: DMA§DS: DS§ECC: ECC§EFUSE: EFUSE§GPIO: GPIO§GPIO_SD: GPIO_SD§HMAC: HMAC§HP_APM: HP_APM§HP_SYS: HP_SYS§I2C0: I2C0§I2C1: I2C1§I2S0: I2S0§INTERRUPT_CORE0: INTERRUPT_CORE0§INTPRI: INTPRI§IO_MUX: IO_MUX§LEDC: LEDC§LPWR: LPWR§LP_ANA: LP_ANA§LP_AON: LP_AON§LP_APM: LP_APM§LP_PERI: LP_PERI§LP_TIMER: LP_TIMER§LP_WDT: LP_WDT§MCPWM0: MCPWM0§MEM_MONITOR: MEM_MONITOR§MODEM_LPCON: MODEM_LPCON§MODEM_SYSCON: MODEM_SYSCON§OTP_DEBUG: OTP_DEBUG§PARL_IO: PARL_IO§PAU: PAU§PCNT: PCNT§PMU: PMU§RMT: RMT§RNG: RNG§RSA: RSA§SHA: SHA§SOC_ETM: SOC_ETM§SPI0: SPI0§SPI1: SPI1§SPI2: SPI2§SYSTEM: SYSTEM§SYSTIMER: SYSTIMER§TEE: TEE§TIMG0: TIMG0§TIMG1: TIMG1§TRACE: TRACE§TWAI0: TWAI0§UART0: UART0§UART1: UART1§UHCI0: UHCI0§USB_DEVICE: USB_DEVICE§BT: BT§IEEE802154: IEEE802154

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