Embassy
embassy-rp

Crates

git

Versions

rp2040

Flavors

Struct embassy_rp::Peripherals

source ·
pub struct Peripherals {
Show 72 fields pub PIN_0: PIN_0, pub PIN_1: PIN_1, pub PIN_2: PIN_2, pub PIN_3: PIN_3, pub PIN_4: PIN_4, pub PIN_5: PIN_5, pub PIN_6: PIN_6, pub PIN_7: PIN_7, pub PIN_8: PIN_8, pub PIN_9: PIN_9, pub PIN_10: PIN_10, pub PIN_11: PIN_11, pub PIN_12: PIN_12, pub PIN_13: PIN_13, pub PIN_14: PIN_14, pub PIN_15: PIN_15, pub PIN_16: PIN_16, pub PIN_17: PIN_17, pub PIN_18: PIN_18, pub PIN_19: PIN_19, pub PIN_20: PIN_20, pub PIN_21: PIN_21, pub PIN_22: PIN_22, pub PIN_23: PIN_23, pub PIN_24: PIN_24, pub PIN_25: PIN_25, pub PIN_26: PIN_26, pub PIN_27: PIN_27, pub PIN_28: PIN_28, pub PIN_29: PIN_29, pub PIN_QSPI_SCLK: PIN_QSPI_SCLK, pub PIN_QSPI_SS: PIN_QSPI_SS, pub PIN_QSPI_SD0: PIN_QSPI_SD0, pub PIN_QSPI_SD1: PIN_QSPI_SD1, pub PIN_QSPI_SD2: PIN_QSPI_SD2, pub PIN_QSPI_SD3: PIN_QSPI_SD3, pub UART0: UART0, pub UART1: UART1, pub SPI0: SPI0, pub SPI1: SPI1, pub I2C0: I2C0, pub I2C1: I2C1, pub DMA_CH0: DMA_CH0, pub DMA_CH1: DMA_CH1, pub DMA_CH2: DMA_CH2, pub DMA_CH3: DMA_CH3, pub DMA_CH4: DMA_CH4, pub DMA_CH5: DMA_CH5, pub DMA_CH6: DMA_CH6, pub DMA_CH7: DMA_CH7, pub DMA_CH8: DMA_CH8, pub DMA_CH9: DMA_CH9, pub DMA_CH10: DMA_CH10, pub DMA_CH11: DMA_CH11, pub PWM_CH0: PWM_CH0, pub PWM_CH1: PWM_CH1, pub PWM_CH2: PWM_CH2, pub PWM_CH3: PWM_CH3, pub PWM_CH4: PWM_CH4, pub PWM_CH5: PWM_CH5, pub PWM_CH6: PWM_CH6, pub PWM_CH7: PWM_CH7, pub USB: USB, pub RTC: RTC, pub FLASH: FLASH, pub ADC: ADC, pub ADC_TEMP_SENSOR: ADC_TEMP_SENSOR, pub CORE1: CORE1, pub PIO0: PIO0, pub PIO1: PIO1, pub WATCHDOG: WATCHDOG, pub BOOTSEL: BOOTSEL,
}
Expand description

Struct containing all the peripheral singletons.

To obtain the peripherals, you must initialize the HAL, by calling crate::init.

Fields§

§PIN_0: PIN_0

PIN_0 peripheral

§PIN_1: PIN_1

PIN_1 peripheral

§PIN_2: PIN_2

PIN_2 peripheral

§PIN_3: PIN_3

PIN_3 peripheral

§PIN_4: PIN_4

PIN_4 peripheral

§PIN_5: PIN_5

PIN_5 peripheral

§PIN_6: PIN_6

PIN_6 peripheral

§PIN_7: PIN_7

PIN_7 peripheral

§PIN_8: PIN_8

PIN_8 peripheral

§PIN_9: PIN_9

PIN_9 peripheral

§PIN_10: PIN_10

PIN_10 peripheral

§PIN_11: PIN_11

PIN_11 peripheral

§PIN_12: PIN_12

PIN_12 peripheral

§PIN_13: PIN_13

PIN_13 peripheral

§PIN_14: PIN_14

PIN_14 peripheral

§PIN_15: PIN_15

PIN_15 peripheral

§PIN_16: PIN_16

PIN_16 peripheral

§PIN_17: PIN_17

PIN_17 peripheral

§PIN_18: PIN_18

PIN_18 peripheral

§PIN_19: PIN_19

PIN_19 peripheral

§PIN_20: PIN_20

PIN_20 peripheral

§PIN_21: PIN_21

PIN_21 peripheral

§PIN_22: PIN_22

PIN_22 peripheral

§PIN_23: PIN_23

PIN_23 peripheral

§PIN_24: PIN_24

PIN_24 peripheral

§PIN_25: PIN_25

PIN_25 peripheral

§PIN_26: PIN_26

PIN_26 peripheral

§PIN_27: PIN_27

PIN_27 peripheral

§PIN_28: PIN_28

PIN_28 peripheral

§PIN_29: PIN_29

PIN_29 peripheral

§PIN_QSPI_SCLK: PIN_QSPI_SCLK

PIN_QSPI_SCLK peripheral

§PIN_QSPI_SS: PIN_QSPI_SS

PIN_QSPI_SS peripheral

§PIN_QSPI_SD0: PIN_QSPI_SD0

PIN_QSPI_SD0 peripheral

§PIN_QSPI_SD1: PIN_QSPI_SD1

PIN_QSPI_SD1 peripheral

§PIN_QSPI_SD2: PIN_QSPI_SD2

PIN_QSPI_SD2 peripheral

§PIN_QSPI_SD3: PIN_QSPI_SD3

PIN_QSPI_SD3 peripheral

§UART0: UART0

UART0 peripheral

§UART1: UART1

UART1 peripheral

§SPI0: SPI0

SPI0 peripheral

§SPI1: SPI1

SPI1 peripheral

§I2C0: I2C0

I2C0 peripheral

§I2C1: I2C1

I2C1 peripheral

§DMA_CH0: DMA_CH0

DMA_CH0 peripheral

§DMA_CH1: DMA_CH1

DMA_CH1 peripheral

§DMA_CH2: DMA_CH2

DMA_CH2 peripheral

§DMA_CH3: DMA_CH3

DMA_CH3 peripheral

§DMA_CH4: DMA_CH4

DMA_CH4 peripheral

§DMA_CH5: DMA_CH5

DMA_CH5 peripheral

§DMA_CH6: DMA_CH6

DMA_CH6 peripheral

§DMA_CH7: DMA_CH7

DMA_CH7 peripheral

§DMA_CH8: DMA_CH8

DMA_CH8 peripheral

§DMA_CH9: DMA_CH9

DMA_CH9 peripheral

§DMA_CH10: DMA_CH10

DMA_CH10 peripheral

§DMA_CH11: DMA_CH11

DMA_CH11 peripheral

§PWM_CH0: PWM_CH0

PWM_CH0 peripheral

§PWM_CH1: PWM_CH1

PWM_CH1 peripheral

§PWM_CH2: PWM_CH2

PWM_CH2 peripheral

§PWM_CH3: PWM_CH3

PWM_CH3 peripheral

§PWM_CH4: PWM_CH4

PWM_CH4 peripheral

§PWM_CH5: PWM_CH5

PWM_CH5 peripheral

§PWM_CH6: PWM_CH6

PWM_CH6 peripheral

§PWM_CH7: PWM_CH7

PWM_CH7 peripheral

§USB: USB

USB peripheral

§RTC: RTC

RTC peripheral

§FLASH: FLASH

FLASH peripheral

§ADC: ADC

ADC peripheral

§ADC_TEMP_SENSOR: ADC_TEMP_SENSOR

ADC_TEMP_SENSOR peripheral

§CORE1: CORE1

CORE1 peripheral

§PIO0: PIO0

PIO0 peripheral

§PIO1: PIO1

PIO1 peripheral

§WATCHDOG: WATCHDOG

WATCHDOG peripheral

§BOOTSEL: BOOTSEL

BOOTSEL peripheral

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§

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

source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
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<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

source§

fn cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> CheckedAs for T

source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
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<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

source§

fn lossy_into(self) -> Dst

Performs the conversion.
source§

impl<T> OverflowingAs for T

source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> SaturatingAs for T

source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
source§

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

§

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

§

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

impl<T> UnwrappedAs for T

source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> WrappingAs for T

source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.