Struct esp_ward::Peripherals
pub struct Peripherals {Show 66 fields
pub ADC1: ADC1,
pub AES: AES,
pub ASSIST_DEBUG: ASSIST_DEBUG,
pub ATOMIC: ATOMIC,
pub BT: BT,
pub DMA: DMA,
pub DS: DS,
pub ECC: ECC,
pub EFUSE: EFUSE,
pub EXTMEM: EXTMEM,
pub GPIO: GPIO,
pub GPIO_SD: GPIO_SD,
pub HINF: HINF,
pub HMAC: HMAC,
pub HP_APM: HP_APM,
pub HP_SYS: HP_SYS,
pub I2C0: I2C0,
pub I2S0: I2S0,
pub IEEE802154: IEEE802154,
pub INTERRUPT_CORE0: INTERRUPT_CORE0,
pub INTPRI: INTPRI,
pub IO_MUX: IO_MUX,
pub LEDC: LEDC,
pub LPWR: LPWR,
pub LP_CORE: LP_CORE,
pub LP_PERI: LP_PERI,
pub LP_ANA: LP_ANA,
pub LP_AON: LP_AON,
pub LP_APM: LP_APM,
pub LP_APM0: LP_APM0,
pub LP_I2C0: LP_I2C0,
pub LP_I2C_ANA_MST: LP_I2C_ANA_MST,
pub LP_IO: LP_IO,
pub LP_TEE: LP_TEE,
pub LP_TIMER: LP_TIMER,
pub LP_UART: LP_UART,
pub LP_WDT: LP_WDT,
pub MCPWM0: MCPWM0,
pub MEM_MONITOR: MEM_MONITOR,
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 SLCHOST: SLCHOST,
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 TRACE0: TRACE0,
pub TWAI0: TWAI0,
pub TWAI1: TWAI1,
pub UART0: UART0,
pub UART1: UART1,
pub UHCI0: UHCI0,
pub USB_DEVICE: USB_DEVICE,
pub WIFI: WIFI,
}
Fields§
§ADC1: ADC1
§AES: AES
§ASSIST_DEBUG: ASSIST_DEBUG
§ATOMIC: ATOMIC
§BT: BT
§DMA: DMA
§DS: DS
§ECC: ECC
§EFUSE: EFUSE
§EXTMEM: EXTMEM
§GPIO: GPIO
§GPIO_SD: GPIO_SD
§HINF: HINF
§HMAC: HMAC
§HP_APM: HP_APM
§HP_SYS: HP_SYS
§I2C0: I2C0
§I2S0: I2S0
§IEEE802154: IEEE802154
§INTERRUPT_CORE0: INTERRUPT_CORE0
§INTPRI: INTPRI
§IO_MUX: IO_MUX
§LEDC: LEDC
§LPWR: LPWR
§LP_CORE: LP_CORE
§LP_PERI: LP_PERI
§LP_ANA: LP_ANA
§LP_AON: LP_AON
§LP_APM: LP_APM
§LP_APM0: LP_APM0
§LP_I2C0: LP_I2C0
§LP_I2C_ANA_MST: LP_I2C_ANA_MST
§LP_IO: LP_IO
§LP_TEE: LP_TEE
§LP_TIMER: LP_TIMER
§LP_UART: LP_UART
§LP_WDT: LP_WDT
§MCPWM0: MCPWM0
§MEM_MONITOR: MEM_MONITOR
§OTP_DEBUG: OTP_DEBUG
§PARL_IO: PARL_IO
§PAU: PAU
§PCNT: PCNT
§PMU: PMU
§RMT: RMT
§RNG: RNG
§RSA: RSA
§SHA: SHA
§SLCHOST: SLCHOST
§SOC_ETM: SOC_ETM
§SPI0: SPI0
§SPI1: SPI1
§SPI2: SPI2
§SYSTEM: SYSTEM
§SYSTIMER: SYSTIMER
§TEE: TEE
§TIMG0: TIMG0
§TIMG1: TIMG1
§TRACE0: TRACE0
§TWAI0: TWAI0
§TWAI1: TWAI1
§UART0: UART0
§UART1: UART1
§UHCI0: UHCI0
§USB_DEVICE: USB_DEVICE
§WIFI: WIFI
Implementations§
§impl Peripherals
impl Peripherals
pub fn take() -> Peripherals
pub fn take() -> Peripherals
Returns all the peripherals once
§impl Peripherals
impl Peripherals
pub unsafe fn steal() -> Peripherals
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§
impl Freeze for Peripherals
impl RefUnwindSafe for Peripherals
impl Send for Peripherals
impl Sync for Peripherals
impl Unpin for Peripherals
impl UnwindSafe for Peripherals
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
§impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.