Struct e310x::Peripherals

source ·
pub struct Peripherals {
Show 19 fields pub CLINT: CLINT, pub PLIC: PLIC, pub WDOG: WDOG, pub RTC: RTC, pub AONCLK: AONCLK, pub BACKUP: BACKUP, pub PMU: PMU, pub PRCI: PRCI, pub OTP: OTP, pub GPIO0: GPIO0, pub UART0: UART0, pub QSPI0: QSPI0, pub PWM0: PWM0, pub I2C0: I2C0, pub UART1: UART1, pub QSPI1: QSPI1, pub PWM1: PWM1, pub QSPI2: QSPI2, pub PWM2: PWM2,
}
Expand description

All the peripherals.

Fields§

§CLINT: CLINT

CLINT

§PLIC: PLIC

PLIC

§WDOG: WDOG

WDOG

§RTC: RTC

RTC

§AONCLK: AONCLK

AONCLK

§BACKUP: BACKUP

BACKUP

§PMU: PMU

PMU

§PRCI: PRCI

PRCI

§OTP: OTP

OTP

§GPIO0: GPIO0

GPIO0

§UART0: UART0

UART0

§QSPI0: QSPI0

QSPI0

§PWM0: PWM0

PWM0

§I2C0: I2C0

I2C0

§UART1: UART1

UART1

§QSPI1: QSPI1

QSPI1

§PWM1: PWM1

PWM1

§QSPI2: QSPI2

QSPI2

§PWM2: PWM2

PWM2

Implementations§

source§

impl Peripherals

source

pub fn take() -> Option<Self>

Returns all the peripherals once.

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.