rp2040_pac

Struct Peripherals

source
pub struct Peripherals {
Show 36 fields pub ADC: ADC, pub BUSCTRL: BUSCTRL, pub CLOCKS: CLOCKS, pub DMA: DMA, pub I2C0: I2C0, pub I2C1: I2C1, pub IO_BANK0: IO_BANK0, pub IO_QSPI: IO_QSPI, pub PADS_BANK0: PADS_BANK0, pub PADS_QSPI: PADS_QSPI, pub PIO0: PIO0, pub PIO1: PIO1, pub PLL_SYS: PLL_SYS, pub PLL_USB: PLL_USB, pub PPB: PPB, pub PSM: PSM, pub PWM: PWM, pub RESETS: RESETS, pub ROSC: ROSC, pub RTC: RTC, pub SIO: SIO, pub SPI0: SPI0, pub SPI1: SPI1, pub SYSCFG: SYSCFG, pub SYSINFO: SYSINFO, pub TBMAN: TBMAN, pub TIMER: TIMER, pub UART0: UART0, pub UART1: UART1, pub USBCTRL_DPRAM: USBCTRL_DPRAM, pub USBCTRL_REGS: USBCTRL_REGS, pub VREG_AND_CHIP_RESET: VREG_AND_CHIP_RESET, pub WATCHDOG: WATCHDOG, pub XIP_CTRL: XIP_CTRL, pub XIP_SSI: XIP_SSI, pub XOSC: XOSC,
}
Expand description

All the peripherals.

Fields§

§ADC: ADC

ADC

§BUSCTRL: BUSCTRL

BUSCTRL

§CLOCKS: CLOCKS

CLOCKS

§DMA: DMA

DMA

§I2C0: I2C0

I2C0

§I2C1: I2C1

I2C1

§IO_BANK0: IO_BANK0

IO_BANK0

§IO_QSPI: IO_QSPI

IO_QSPI

§PADS_BANK0: PADS_BANK0

PADS_BANK0

§PADS_QSPI: PADS_QSPI

PADS_QSPI

§PIO0: PIO0

PIO0

§PIO1: PIO1

PIO1

§PLL_SYS: PLL_SYS

PLL_SYS

§PLL_USB: PLL_USB

PLL_USB

§PPB: PPB

PPB

§PSM: PSM

PSM

§PWM: PWM

PWM

§RESETS: RESETS

RESETS

§ROSC: ROSC

ROSC

§RTC: RTC

RTC

§SIO: SIO

SIO

§SPI0: SPI0

SPI0

§SPI1: SPI1

SPI1

§SYSCFG: SYSCFG

SYSCFG

§SYSINFO: SYSINFO

SYSINFO

§TBMAN: TBMAN

TBMAN

§TIMER: TIMER

TIMER

§UART0: UART0

UART0

§UART1: UART1

UART1

§USBCTRL_DPRAM: USBCTRL_DPRAM

USBCTRL_DPRAM

§USBCTRL_REGS: USBCTRL_REGS

USBCTRL_REGS

§VREG_AND_CHIP_RESET: VREG_AND_CHIP_RESET

VREG_AND_CHIP_RESET

§WATCHDOG: WATCHDOG

WATCHDOG

§XIP_CTRL: XIP_CTRL

XIP_CTRL

§XIP_SSI: XIP_SSI

XIP_SSI

§XOSC: XOSC

XOSC

Implementations§

source§

impl Peripherals

source

pub unsafe fn steal() -> Self

Unchecked version of Peripherals::take.

§Safety

Each of the returned peripherals must be used at most once.

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.

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.