ariel_os_esp::peripherals

Struct OptionalPeripherals

pub struct OptionalPeripherals {
Show 107 fields pub ADC1: Option<ADC1>, pub AES: Option<AES>, pub ASSIST_DEBUG: Option<ASSIST_DEBUG>, pub ATOMIC: Option<ATOMIC>, pub BT: Option<BT>, pub DS: Option<DS>, pub ECC: Option<ECC>, pub EFUSE: Option<EFUSE>, pub EXTMEM: Option<EXTMEM>, pub GPIO_SD: Option<GPIO_SD>, pub HINF: Option<HINF>, pub HMAC: Option<HMAC>, pub HP_APM: Option<HP_APM>, pub HP_SYS: Option<HP_SYS>, pub I2C0: Option<I2C0>, pub I2S0: Option<I2S0>, pub IEEE802154: Option<IEEE802154>, pub INTERRUPT_CORE0: Option<INTERRUPT_CORE0>, pub INTPRI: Option<INTPRI>, pub IO_MUX: Option<IO_MUX>, pub LEDC: Option<LEDC>, pub LPWR: Option<LPWR>, pub LP_CORE: Option<LP_CORE>, pub LP_PERI: Option<LP_PERI>, pub LP_ANA: Option<LP_ANA>, pub LP_AON: Option<LP_AON>, pub LP_APM: Option<LP_APM>, pub LP_APM0: Option<LP_APM0>, pub LP_I2C0: Option<LP_I2C0>, pub LP_I2C_ANA_MST: Option<LP_I2C_ANA_MST>, pub LP_IO: Option<LP_IO>, pub LP_TEE: Option<LP_TEE>, pub LP_TIMER: Option<LP_TIMER>, pub LP_UART: Option<LP_UART>, pub LP_WDT: Option<LP_WDT>, pub MCPWM0: Option<MCPWM0>, pub MEM_MONITOR: Option<MEM_MONITOR>, pub OTP_DEBUG: Option<OTP_DEBUG>, pub PARL_IO: Option<PARL_IO>, pub PAU: Option<PAU>, pub PCNT: Option<PCNT>, pub PMU: Option<PMU>, pub RADIO_CLK: Option<RADIO_CLK>, pub RMT: Option<RMT>, pub RNG: Option<RNG>, pub RSA: Option<RSA>, pub SHA: Option<SHA>, pub SLCHOST: Option<SLCHOST>, pub SOC_ETM: Option<SOC_ETM>, pub SPI0: Option<SPI0>, pub SPI1: Option<SPI1>, pub SPI2: Option<SPI2>, pub SYSTEM: Option<SYSTEM>, pub SYSTIMER: Option<SYSTIMER>, pub SW_INTERRUPT: Option<SW_INTERRUPT>, pub TEE: Option<TEE>, pub TIMG0: Option<TIMG0>, pub TIMG1: Option<TIMG1>, pub TRACE0: Option<TRACE0>, pub TSENS: Option<TSENS>, pub TWAI0: Option<TWAI0>, pub TWAI1: Option<TWAI1>, pub UART0: Option<UART0>, pub UART1: Option<UART1>, pub UHCI0: Option<UHCI0>, pub USB_DEVICE: Option<USB_DEVICE>, pub WIFI: Option<WIFI>, pub MEM2MEM1: Option<MEM2MEM1>, pub MEM2MEM4: Option<MEM2MEM4>, pub MEM2MEM5: Option<MEM2MEM5>, pub MEM2MEM10: Option<MEM2MEM10>, pub MEM2MEM11: Option<MEM2MEM11>, pub MEM2MEM12: Option<MEM2MEM12>, pub MEM2MEM13: Option<MEM2MEM13>, pub MEM2MEM14: Option<MEM2MEM14>, pub MEM2MEM15: Option<MEM2MEM15>, pub GPIO0: Option<GpioPin<0>>, pub GPIO1: Option<GpioPin<1>>, pub GPIO2: Option<GpioPin<2>>, pub GPIO3: Option<GpioPin<3>>, pub GPIO4: Option<GpioPin<4>>, pub GPIO5: Option<GpioPin<5>>, pub GPIO6: Option<GpioPin<6>>, pub GPIO7: Option<GpioPin<7>>, pub GPIO8: Option<GpioPin<8>>, pub GPIO9: Option<GpioPin<9>>, pub GPIO10: Option<GpioPin<10>>, pub GPIO11: Option<GpioPin<11>>, pub GPIO12: Option<GpioPin<12>>, pub GPIO13: Option<GpioPin<13>>, pub GPIO14: Option<GpioPin<14>>, pub GPIO15: Option<GpioPin<15>>, pub GPIO16: Option<GpioPin<16>>, pub GPIO17: Option<GpioPin<17>>, pub GPIO18: Option<GpioPin<18>>, pub GPIO19: Option<GpioPin<19>>, pub GPIO20: Option<GpioPin<20>>, pub GPIO21: Option<GpioPin<21>>, pub GPIO22: Option<GpioPin<22>>, pub GPIO23: Option<GpioPin<23>>, pub GPIO24: Option<GpioPin<24>>, pub GPIO25: Option<GpioPin<25>>, pub GPIO26: Option<GpioPin<26>>, pub GPIO27: Option<GpioPin<27>>, pub GPIO28: Option<GpioPin<28>>, pub GPIO29: Option<GpioPin<29>>, pub GPIO30: Option<GpioPin<30>>,
}
Expand description

The OptionalPeripherals struct provides access to all of the hardware peripherals on the chip.

Fields§

§ADC1: Option<ADC1>

The ADC1 peripheral.

§AES: Option<AES>

The AES peripheral.

§ASSIST_DEBUG: Option<ASSIST_DEBUG>

The ASSIST_DEBUG peripheral.

§ATOMIC: Option<ATOMIC>

The ATOMIC peripheral.

§BT: Option<BT>

The BT peripheral.

§DS: Option<DS>

The DS peripheral.

§ECC: Option<ECC>

The ECC peripheral.

§EFUSE: Option<EFUSE>

The EFUSE peripheral.

§EXTMEM: Option<EXTMEM>

The EXTMEM peripheral.

§GPIO_SD: Option<GPIO_SD>

The GPIO_SD peripheral.

§HINF: Option<HINF>

The HINF peripheral.

§HMAC: Option<HMAC>

The HMAC peripheral.

§HP_APM: Option<HP_APM>

The HP_APM peripheral.

§HP_SYS: Option<HP_SYS>

The HP_SYS peripheral.

§I2C0: Option<I2C0>

The I2C0 peripheral.

§I2S0: Option<I2S0>

The I2S0 peripheral.

§IEEE802154: Option<IEEE802154>

The IEEE802154 peripheral.

§INTERRUPT_CORE0: Option<INTERRUPT_CORE0>

The INTERRUPT_CORE0 peripheral.

§INTPRI: Option<INTPRI>

The INTPRI peripheral.

§IO_MUX: Option<IO_MUX>

The IO_MUX peripheral.

§LEDC: Option<LEDC>

The LEDC peripheral.

§LPWR: Option<LPWR>

The LPWR peripheral.

§LP_CORE: Option<LP_CORE>

The LP_CORE peripheral.

§LP_PERI: Option<LP_PERI>

The LP_PERI peripheral.

§LP_ANA: Option<LP_ANA>

The LP_ANA peripheral.

§LP_AON: Option<LP_AON>

The LP_AON peripheral.

§LP_APM: Option<LP_APM>

The LP_APM peripheral.

§LP_APM0: Option<LP_APM0>

The LP_APM0 peripheral.

§LP_I2C0: Option<LP_I2C0>

The LP_I2C0 peripheral.

§LP_I2C_ANA_MST: Option<LP_I2C_ANA_MST>

The LP_I2C_ANA_MST peripheral.

§LP_IO: Option<LP_IO>

The LP_IO peripheral.

§LP_TEE: Option<LP_TEE>

The LP_TEE peripheral.

§LP_TIMER: Option<LP_TIMER>

The LP_TIMER peripheral.

§LP_UART: Option<LP_UART>

The LP_UART peripheral.

§LP_WDT: Option<LP_WDT>

The LP_WDT peripheral.

§MCPWM0: Option<MCPWM0>

The MCPWM0 peripheral.

§MEM_MONITOR: Option<MEM_MONITOR>

The MEM_MONITOR peripheral.

§OTP_DEBUG: Option<OTP_DEBUG>

The OTP_DEBUG peripheral.

§PARL_IO: Option<PARL_IO>

The PARL_IO peripheral.

§PAU: Option<PAU>

The PAU peripheral.

§PCNT: Option<PCNT>

The PCNT peripheral.

§PMU: Option<PMU>

The PMU peripheral.

§RADIO_CLK: Option<RADIO_CLK>

The RADIO_CLK peripheral.

§RMT: Option<RMT>

The RMT peripheral.

§RNG: Option<RNG>

The RNG peripheral.

§RSA: Option<RSA>

The RSA peripheral.

§SHA: Option<SHA>

The SHA peripheral.

§SLCHOST: Option<SLCHOST>

The SLCHOST peripheral.

§SOC_ETM: Option<SOC_ETM>

The SOC_ETM peripheral.

§SPI0: Option<SPI0>

The SPI0 peripheral.

§SPI1: Option<SPI1>

The SPI1 peripheral.

§SPI2: Option<SPI2>

The SPI2 peripheral.

§SYSTEM: Option<SYSTEM>

The SYSTEM peripheral.

§SYSTIMER: Option<SYSTIMER>

The SYSTIMER peripheral.

§SW_INTERRUPT: Option<SW_INTERRUPT>

The SW_INTERRUPT peripheral.

§TEE: Option<TEE>

The TEE peripheral.

§TIMG0: Option<TIMG0>

The TIMG0 peripheral.

§TIMG1: Option<TIMG1>

The TIMG1 peripheral.

§TRACE0: Option<TRACE0>

The TRACE0 peripheral.

§TSENS: Option<TSENS>

The TSENS peripheral.

§TWAI0: Option<TWAI0>

The TWAI0 peripheral.

§TWAI1: Option<TWAI1>

The TWAI1 peripheral.

§UART0: Option<UART0>

The UART0 peripheral.

§UART1: Option<UART1>

The UART1 peripheral.

§UHCI0: Option<UHCI0>

The UHCI0 peripheral.

§USB_DEVICE: Option<USB_DEVICE>

The USB_DEVICE peripheral.

§WIFI: Option<WIFI>

The WIFI peripheral.

§MEM2MEM1: Option<MEM2MEM1>

The MEM2MEM1 peripheral.

§MEM2MEM4: Option<MEM2MEM4>

The MEM2MEM4 peripheral.

§MEM2MEM5: Option<MEM2MEM5>

The MEM2MEM5 peripheral.

§MEM2MEM10: Option<MEM2MEM10>

The MEM2MEM10 peripheral.

§MEM2MEM11: Option<MEM2MEM11>

The MEM2MEM11 peripheral.

§MEM2MEM12: Option<MEM2MEM12>

The MEM2MEM12 peripheral.

§MEM2MEM13: Option<MEM2MEM13>

The MEM2MEM13 peripheral.

§MEM2MEM14: Option<MEM2MEM14>

The MEM2MEM14 peripheral.

§MEM2MEM15: Option<MEM2MEM15>

The MEM2MEM15 peripheral.

§GPIO0: Option<GpioPin<0>>

GPIO0

§GPIO1: Option<GpioPin<1>>

GPIO1

§GPIO2: Option<GpioPin<2>>

GPIO2

§GPIO3: Option<GpioPin<3>>

GPIO3

§GPIO4: Option<GpioPin<4>>

GPIO4

§GPIO5: Option<GpioPin<5>>

GPIO5

§GPIO6: Option<GpioPin<6>>

GPIO6

§GPIO7: Option<GpioPin<7>>

GPIO7

§GPIO8: Option<GpioPin<8>>

GPIO8

§GPIO9: Option<GpioPin<9>>

GPIO9

§GPIO10: Option<GpioPin<10>>

GPIO10

§GPIO11: Option<GpioPin<11>>

GPIO11

§GPIO12: Option<GpioPin<12>>

GPIO12

§GPIO13: Option<GpioPin<13>>

GPIO13

§GPIO14: Option<GpioPin<14>>

GPIO14

§GPIO15: Option<GpioPin<15>>

GPIO15

§GPIO16: Option<GpioPin<16>>

GPIO16

§GPIO17: Option<GpioPin<17>>

GPIO17

§GPIO18: Option<GpioPin<18>>

GPIO18

§GPIO19: Option<GpioPin<19>>

GPIO19

§GPIO20: Option<GpioPin<20>>

GPIO20

§GPIO21: Option<GpioPin<21>>

GPIO21

§GPIO22: Option<GpioPin<22>>

GPIO22

§GPIO23: Option<GpioPin<23>>

GPIO23

§GPIO24: Option<GpioPin<24>>

GPIO24

§GPIO25: Option<GpioPin<25>>

GPIO25

§GPIO26: Option<GpioPin<26>>

GPIO26

§GPIO27: Option<GpioPin<27>>

GPIO27

§GPIO28: Option<GpioPin<28>>

GPIO28

§GPIO29: Option<GpioPin<29>>

GPIO29

§GPIO30: Option<GpioPin<30>>

GPIO30

Implementations§

§

impl OptionalPeripherals

pub fn from(p: Peripherals) -> OptionalPeripherals

Create an OptionalPeripherals, consuming a Peripherals

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.

§

impl<T, W> HasTypeWitness<W> for T
where W: MakeTypeWitness<Arg = T>, T: ?Sized,

§

const WITNESS: W = W::MAKE

A constant of the type witness
§

impl<T> Identity for T
where T: ?Sized,

§

const TYPE_EQ: TypeEq<T, <T as Identity>::Type> = TypeEq::NEW

Proof that Self is the same type as Self::Type, provides methods for casting between Self and Self::Type.
§

type Type = T

The same type as Self, used to emulate type equality bounds (T == U) with associated type equality constraints (T: Identity<Type = U>).
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.