Struct Peripherals

Source
pub struct Peripherals {
Show 62 fields pub GPIO0: GPIO0<'static>, pub GPIO1: GPIO1<'static>, pub GPIO2: GPIO2<'static>, pub GPIO3: GPIO3<'static>, pub GPIO4: GPIO4<'static>, pub GPIO5: GPIO5<'static>, pub GPIO6: GPIO6<'static>, pub GPIO7: GPIO7<'static>, pub GPIO8: GPIO8<'static>, pub GPIO9: GPIO9<'static>, pub GPIO10: GPIO10<'static>, pub GPIO11: GPIO11<'static>, pub GPIO12: GPIO12<'static>, pub GPIO13: GPIO13<'static>, pub GPIO14: GPIO14<'static>, pub GPIO15: GPIO15<'static>, pub GPIO16: GPIO16<'static>, pub GPIO17: GPIO17<'static>, pub GPIO18: GPIO18<'static>, pub GPIO19: GPIO19<'static>, pub GPIO20: GPIO20<'static>, pub APB_CTRL: APB_CTRL<'static>, pub APB_SARADC: APB_SARADC<'static>, pub BB: BB<'static>, pub ASSIST_DEBUG: ASSIST_DEBUG<'static>, pub DMA: DMA<'static>, pub ECC: ECC<'static>, pub EFUSE: EFUSE<'static>, pub EXTMEM: EXTMEM<'static>, pub GPIO: GPIO<'static>, pub I2C_ANA_MST: I2C_ANA_MST<'static>, pub I2C0: I2C0<'static>, pub INTERRUPT_CORE0: INTERRUPT_CORE0<'static>, pub IO_MUX: IO_MUX<'static>, pub LEDC: LEDC<'static>, pub RNG: RNG<'static>, pub LPWR: LPWR<'static>, pub MODEM_CLKRST: MODEM_CLKRST<'static>, pub SENSITIVE: SENSITIVE<'static>, pub SHA: SHA<'static>, pub SPI0: SPI0<'static>, pub SPI1: SPI1<'static>, pub SPI2: SPI2<'static>, pub SYSTEM: SYSTEM<'static>, pub SYSTIMER: SYSTIMER<'static>, pub TIMG0: TIMG0<'static>, pub UART0: UART0<'static>, pub UART1: UART1<'static>, pub XTS_AES: XTS_AES<'static>, pub DMA_CH0: DMA_CH0<'static>, pub ADC1: ADC1<'static>, pub BT: BT<'static>, pub SW_INTERRUPT: SW_INTERRUPT<'static>, pub WIFI: WIFI<'static>, pub MEM2MEM1: MEM2MEM1<'static>, pub MEM2MEM2: MEM2MEM2<'static>, pub MEM2MEM3: MEM2MEM3<'static>, pub MEM2MEM4: MEM2MEM4<'static>, pub MEM2MEM5: MEM2MEM5<'static>, pub MEM2MEM6: MEM2MEM6<'static>, pub MEM2MEM7: MEM2MEM7<'static>, pub MEM2MEM8: MEM2MEM8<'static>,
}
Expand description

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

Fields§

§GPIO0: GPIO0<'static>

The GPIO0 peripheral.

§GPIO1: GPIO1<'static>

The GPIO1 peripheral.

§GPIO2: GPIO2<'static>

The GPIO2 peripheral.

§GPIO3: GPIO3<'static>

The GPIO3 peripheral.

§GPIO4: GPIO4<'static>

The GPIO4 peripheral.

§GPIO5: GPIO5<'static>

The GPIO5 peripheral.

§GPIO6: GPIO6<'static>

The GPIO6 peripheral.

§GPIO7: GPIO7<'static>

The GPIO7 peripheral.

§GPIO8: GPIO8<'static>

The GPIO8 peripheral.

§GPIO9: GPIO9<'static>

The GPIO9 peripheral.

§GPIO10: GPIO10<'static>

The GPIO10 peripheral.

§GPIO11: GPIO11<'static>

The GPIO11 peripheral.

§GPIO12: GPIO12<'static>

The GPIO12 peripheral.

§GPIO13: GPIO13<'static>

The GPIO13 peripheral.

§GPIO14: GPIO14<'static>

The GPIO14 peripheral.

§GPIO15: GPIO15<'static>

The GPIO15 peripheral.

§GPIO16: GPIO16<'static>

The GPIO16 peripheral.

§GPIO17: GPIO17<'static>

The GPIO17 peripheral.

§GPIO18: GPIO18<'static>

The GPIO18 peripheral.

§GPIO19: GPIO19<'static>

The GPIO19 peripheral.

§GPIO20: GPIO20<'static>

The GPIO20 peripheral.

§APB_CTRL: APB_CTRL<'static>
Available on crate feature unstable only.

The APB_CTRL peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§APB_SARADC: APB_SARADC<'static>
Available on crate feature unstable only.

The APB_SARADC peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§BB: BB<'static>
Available on crate feature unstable only.

The BB peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§ASSIST_DEBUG: ASSIST_DEBUG<'static>
Available on crate feature unstable only.

The ASSIST_DEBUG peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§DMA: DMA<'static>
Available on crate feature unstable only.

The DMA peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§ECC: ECC<'static>
Available on crate feature unstable only.

The ECC peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§EFUSE: EFUSE<'static>
Available on crate feature unstable only.

The EFUSE peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§EXTMEM: EXTMEM<'static>
Available on crate feature unstable only.

The EXTMEM peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§GPIO: GPIO<'static>
Available on crate feature unstable only.

The GPIO peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§I2C_ANA_MST: I2C_ANA_MST<'static>
Available on crate feature unstable only.

The I2C_ANA_MST peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§I2C0: I2C0<'static>

The I2C0 peripheral.

§INTERRUPT_CORE0: INTERRUPT_CORE0<'static>
Available on crate feature unstable only.

The INTERRUPT_CORE0 peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§IO_MUX: IO_MUX<'static>
Available on crate feature unstable only.

The IO_MUX peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§LEDC: LEDC<'static>
Available on crate feature unstable only.

The LEDC peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§RNG: RNG<'static>
Available on crate feature unstable only.

The RNG peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§LPWR: LPWR<'static>
Available on crate feature unstable only.

The LPWR peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§MODEM_CLKRST: MODEM_CLKRST<'static>
Available on crate feature unstable only.

The MODEM_CLKRST peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§SENSITIVE: SENSITIVE<'static>
Available on crate feature unstable only.

The SENSITIVE peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§SHA: SHA<'static>
Available on crate feature unstable only.

The SHA peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§SPI0: SPI0<'static>
Available on crate feature unstable only.

The SPI0 peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§SPI1: SPI1<'static>
Available on crate feature unstable only.

The SPI1 peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§SPI2: SPI2<'static>

The SPI2 peripheral.

§SYSTEM: SYSTEM<'static>
Available on crate feature unstable only.

The SYSTEM peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§SYSTIMER: SYSTIMER<'static>
Available on crate feature unstable only.

The SYSTIMER peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§TIMG0: TIMG0<'static>
Available on crate feature unstable only.

The TIMG0 peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§UART0: UART0<'static>

The UART0 peripheral.

§UART1: UART1<'static>

The UART1 peripheral.

§XTS_AES: XTS_AES<'static>
Available on crate feature unstable only.

The XTS_AES peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§DMA_CH0: DMA_CH0<'static>
Available on crate feature unstable only.

The DMA_CH0 peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§ADC1: ADC1<'static>
Available on crate feature unstable only.

The ADC1 peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§BT: BT<'static>
Available on crate feature unstable only.

The BT peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§SW_INTERRUPT: SW_INTERRUPT<'static>
Available on crate feature unstable only.

The SW_INTERRUPT peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§WIFI: WIFI<'static>
Available on crate feature unstable only.

The WIFI peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§MEM2MEM1: MEM2MEM1<'static>
Available on crate feature unstable only.

The MEM2MEM1 peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§MEM2MEM2: MEM2MEM2<'static>
Available on crate feature unstable only.

The MEM2MEM2 peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§MEM2MEM3: MEM2MEM3<'static>
Available on crate feature unstable only.

The MEM2MEM3 peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§MEM2MEM4: MEM2MEM4<'static>
Available on crate feature unstable only.

The MEM2MEM4 peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§MEM2MEM5: MEM2MEM5<'static>
Available on crate feature unstable only.

The MEM2MEM5 peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§MEM2MEM6: MEM2MEM6<'static>
Available on crate feature unstable only.

The MEM2MEM6 peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§MEM2MEM7: MEM2MEM7<'static>
Available on crate feature unstable only.

The MEM2MEM7 peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

§MEM2MEM8: MEM2MEM8<'static>
Available on crate feature unstable only.

The MEM2MEM8 peripheral. This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Implementations§

Source§

impl Peripherals

Source

pub unsafe fn steal() -> Self

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

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

Performs the conversion.
§

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

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

Performs the conversion.