Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 53 fields pub ACCESSCTRL: ACCESSCTRL, pub ADC: ADC, pub BOOTRAM: BOOTRAM, pub BUSCTRL: BUSCTRL, pub CLOCKS: CLOCKS, pub CORESIGHT_TRACE: CORESIGHT_TRACE, pub DMA: DMA, pub EPPB: EPPB, pub GLITCH_DETECTOR: GLITCH_DETECTOR, pub HSTX_CTRL: HSTX_CTRL, pub HSTX_FIFO: HSTX_FIFO, pub I2C0: I2C0, pub I2C1: I2C1, pub IO_BANK0: IO_BANK0, pub IO_QSPI: IO_QSPI, pub OTP: OTP, pub OTP_DATA: OTP_DATA, pub OTP_DATA_RAW: OTP_DATA_RAW, pub PADS_BANK0: PADS_BANK0, pub PADS_QSPI: PADS_QSPI, pub PIO0: PIO0, pub PIO1: PIO1, pub PIO2: PIO2, pub PLL_SYS: PLL_SYS, pub PLL_USB: PLL_USB, pub POWMAN: POWMAN, pub PPB: PPB, pub PPB_NS: PPB_NS, pub PSM: PSM, pub PWM: PWM, pub QMI: QMI, pub RESETS: RESETS, pub ROSC: ROSC, pub SHA256: SHA256, pub SIO: SIO, pub SIO_NS: SIO_NS, pub SPI0: SPI0, pub SPI1: SPI1, pub SYSCFG: SYSCFG, pub SYSINFO: SYSINFO, pub TBMAN: TBMAN, pub TICKS: TICKS, pub TIMER0: TIMER0, pub TIMER1: TIMER1, pub TRNG: TRNG, pub UART0: UART0, pub UART1: UART1, pub USB: USB, pub USB_DPRAM: USB_DPRAM, pub WATCHDOG: WATCHDOG, pub XIP_AUX: XIP_AUX, pub XIP_CTRL: XIP_CTRL, pub XOSC: XOSC,
}
Expand description

All the peripherals.

Fields§

§ACCESSCTRL: ACCESSCTRL

ACCESSCTRL

§ADC: ADC

ADC

§BOOTRAM: BOOTRAM

BOOTRAM

§BUSCTRL: BUSCTRL

BUSCTRL

§CLOCKS: CLOCKS

CLOCKS

§CORESIGHT_TRACE: CORESIGHT_TRACE

CORESIGHT_TRACE

§DMA: DMA

DMA

§EPPB: EPPB

EPPB

§GLITCH_DETECTOR: GLITCH_DETECTOR

GLITCH_DETECTOR

§HSTX_CTRL: HSTX_CTRL

HSTX_CTRL

§HSTX_FIFO: HSTX_FIFO

HSTX_FIFO

§I2C0: I2C0

I2C0

§I2C1: I2C1

I2C1

§IO_BANK0: IO_BANK0

IO_BANK0

§IO_QSPI: IO_QSPI

IO_QSPI

§OTP: OTP

OTP

§OTP_DATA: OTP_DATA

OTP_DATA

§OTP_DATA_RAW: OTP_DATA_RAW

OTP_DATA_RAW

§PADS_BANK0: PADS_BANK0

PADS_BANK0

§PADS_QSPI: PADS_QSPI

PADS_QSPI

§PIO0: PIO0

PIO0

§PIO1: PIO1

PIO1

§PIO2: PIO2

PIO2

§PLL_SYS: PLL_SYS

PLL_SYS

§PLL_USB: PLL_USB

PLL_USB

§POWMAN: POWMAN

POWMAN

§PPB: PPB

PPB

§PPB_NS: PPB_NS

PPB_NS

§PSM: PSM

PSM

§PWM: PWM

PWM

§QMI: QMI

QMI

§RESETS: RESETS

RESETS

§ROSC: ROSC

ROSC

§SHA256: SHA256

SHA256

§SIO: SIO

SIO

§SIO_NS: SIO_NS

SIO_NS

§SPI0: SPI0

SPI0

§SPI1: SPI1

SPI1

§SYSCFG: SYSCFG

SYSCFG

§SYSINFO: SYSINFO

SYSINFO

§TBMAN: TBMAN

TBMAN

§TICKS: TICKS

TICKS

§TIMER0: TIMER0

TIMER0

§TIMER1: TIMER1

TIMER1

§TRNG: TRNG

TRNG

§UART0: UART0

UART0

§UART1: UART1

UART1

§USB: USB

USB

§USB_DPRAM: USB_DPRAM

USB_DPRAM

§WATCHDOG: WATCHDOG

WATCHDOG

§XIP_AUX: XIP_AUX

XIP_AUX

§XIP_CTRL: XIP_CTRL

XIP_CTRL

§XOSC: XOSC

XOSC

Implementations§

Source§

impl Peripherals

Source

pub fn take() -> Option<Peripherals>

Returns all the peripherals once.

Source

pub unsafe fn steal() -> Peripherals

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<Choices> CoproductSubsetter<CNil, HNil> for Choices

Source§

type Remainder = Choices

Source§

fn subset( self, ) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U, I> LiftInto<U, I> for T
where U: LiftFrom<T, I>,

Source§

fn lift_into(self) -> U

Performs the indexed conversion.
Source§

impl<Source> Sculptor<HNil, HNil> for Source

Source§

type Remainder = Source

Source§

fn sculpt(self) -> (HNil, <Source as Sculptor<HNil, HNil>>::Remainder)

Consumes the current HList and returns an HList with the requested shape. Read more
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.