Struct Peripherals

Source
pub struct Peripherals {
Show 73 fields pub I2C0: I2C0, pub SPI2: SPI2, pub UART0: UART0, pub UART1: UART1, pub ADC1: ADC1, pub ADC2: ADC2, pub AES: AES, pub APB_CTRL: APB_CTRL, pub APB_SARADC: APB_SARADC, pub ASSIST_DEBUG: ASSIST_DEBUG, pub BB: BB, pub BT: BT, pub DMA: DMA, pub DS: DS, pub EFUSE: EFUSE, pub EXTMEM: EXTMEM, pub FE: FE, pub FE2: FE2, pub GPIO: GPIO, pub GPIO_SD: GPIO_SD, pub HMAC: HMAC, pub I2C_ANA_MST: I2C_ANA_MST, pub I2S0: I2S0, pub INTERRUPT_CORE0: INTERRUPT_CORE0, pub IO_MUX: IO_MUX, pub LEDC: LEDC, pub LPWR: LPWR, pub NRX: NRX, pub RADIO_CLK: RADIO_CLK, pub RMT: RMT, pub RNG: RNG, pub RSA: RSA, pub SENSITIVE: SENSITIVE, pub SHA: SHA, pub SPI0: SPI0, pub SPI1: SPI1, pub SYSTEM: SYSTEM, pub SYSTIMER: SYSTIMER, pub SW_INTERRUPT: SW_INTERRUPT, pub TIMG0: TIMG0, pub TIMG1: TIMG1, pub TSENS: TSENS, pub TWAI0: TWAI0, pub UHCI0: UHCI0, pub UHCI1: UHCI1, pub USB_DEVICE: USB_DEVICE, pub WIFI: WIFI, pub XTS_AES: XTS_AES, pub GPIO0: GpioPin<0>, pub GPIO1: GpioPin<1>, pub GPIO2: GpioPin<2>, pub GPIO3: GpioPin<3>, pub GPIO4: GpioPin<4>, pub GPIO5: GpioPin<5>, pub GPIO6: GpioPin<6>, pub GPIO7: GpioPin<7>, pub GPIO8: GpioPin<8>, pub GPIO9: GpioPin<9>, pub GPIO10: GpioPin<10>, pub GPIO11: GpioPin<11>, pub GPIO12: GpioPin<12>, pub GPIO13: GpioPin<13>, pub GPIO14: GpioPin<14>, pub GPIO15: GpioPin<15>, pub GPIO16: GpioPin<16>, pub GPIO17: GpioPin<17>, pub GPIO18: GpioPin<18>, pub GPIO19: GpioPin<19>, pub GPIO20: GpioPin<20>, pub GPIO21: GpioPin<21>, pub DMA_CH0: DmaChannel0, pub DMA_CH1: DmaChannel1, pub DMA_CH2: DmaChannel2,
}
Expand description

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

Fields§

§I2C0: I2C0

The I2C0 peripheral.

§SPI2: SPI2

The SPI2 peripheral.

§UART0: UART0

The UART0 peripheral.

§UART1: UART1

The UART1 peripheral.

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

§ADC2: ADC2
Available on crate feature unstable only.

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

§AES: AES
Available on crate feature unstable only.

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

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

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

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

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

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

§DS: DS
Available on crate feature unstable only.

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

§FE: FE
Available on crate feature unstable only.

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

§FE2: FE2
Available on crate feature unstable only.

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

§GPIO_SD: GPIO_SD
Available on crate feature unstable only.

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

§HMAC: HMAC
Available on crate feature unstable only.

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

§I2S0: I2S0
Available on crate feature unstable only.

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

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

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

§NRX: NRX
Available on crate feature unstable only.

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

§RADIO_CLK: RADIO_CLK
Available on crate feature unstable only.

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

§RMT: RMT
Available on crate feature unstable only.

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

§RSA: RSA
Available on crate feature unstable only.

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

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

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

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

§TIMG1: TIMG1
Available on crate feature unstable only.

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

§TSENS: TSENS
Available on crate feature unstable only.

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

§TWAI0: TWAI0
Available on crate feature unstable only.

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

§UHCI0: UHCI0
Available on crate feature unstable only.

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

§UHCI1: UHCI1
Available on crate feature unstable only.

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

§USB_DEVICE: USB_DEVICE
Available on crate feature unstable only.

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

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

§GPIO0: GpioPin<0>

GPIO0

§GPIO1: GpioPin<1>

GPIO1

§GPIO2: GpioPin<2>

GPIO2

§GPIO3: GpioPin<3>

GPIO3

§GPIO4: GpioPin<4>

GPIO4

§GPIO5: GpioPin<5>

GPIO5

§GPIO6: GpioPin<6>

GPIO6

§GPIO7: GpioPin<7>

GPIO7

§GPIO8: GpioPin<8>

GPIO8

§GPIO9: GpioPin<9>

GPIO9

§GPIO10: GpioPin<10>

GPIO10

§GPIO11: GpioPin<11>

GPIO11

§GPIO12: GpioPin<12>

GPIO12

§GPIO13: GpioPin<13>

GPIO13

§GPIO14: GpioPin<14>

GPIO14

§GPIO15: GpioPin<15>

GPIO15

§GPIO16: GpioPin<16>

GPIO16

§GPIO17: GpioPin<17>

GPIO17

§GPIO18: GpioPin<18>

GPIO18

§GPIO19: GpioPin<19>

GPIO19

§GPIO20: GpioPin<20>

GPIO20

§GPIO21: GpioPin<21>

GPIO21

§DMA_CH0: DmaChannel0

DMA_CH0 DMA channel.

§DMA_CH1: DmaChannel1

DMA_CH1 DMA channel.

§DMA_CH2: DmaChannel2

DMA_CH2 DMA channel.

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.

§

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.