Struct Peripherals

Source
pub struct Peripherals {
Show 34 fields pub CLINT: CLINT, pub PLIC: PLIC, pub UARTHS: UARTHS, pub GPIOHS: GPIOHS, pub KPU: KPU, pub FFT: FFT, pub DMAC: DMAC, pub GPIO: GPIO, pub UART1: UART1, pub UART2: UART2, pub UART3: UART3, pub SPI0: SPI0, pub SPI1: SPI1, pub SPI2: SPI2, pub SPI3: SPI3, pub I2S0: I2S0, pub APU: APU, pub I2S1: I2S1, pub I2S2: I2S2, pub I2C0: I2C0, pub I2C1: I2C1, pub I2C2: I2C2, pub SHA256: SHA256, pub TIMER0: TIMER0, pub TIMER1: TIMER1, pub TIMER2: TIMER2, pub WDT0: WDT0, pub WDT1: WDT1, pub OTP: OTP, pub DVP: DVP, pub SYSCTL: SYSCTL, pub AES: AES, pub RTC: RTC, pub pins: ExternalPins,
}
Expand description

All the peripherals

Fields§

§CLINT: CLINT

CLINT

§PLIC: PLIC

PLIC

§UARTHS: UARTHS

UARTHS

§GPIOHS: GPIOHS

GPIOHS

§KPU: KPU

KPU

§FFT: FFT

FFT

§DMAC: DMAC

DMAC

§GPIO: GPIO

GPIO

§UART1: UART1

UART1

§UART2: UART2

UART2

§UART3: UART3

UART3

§SPI0: SPI0

SPI0

§SPI1: SPI1

SPI1

§SPI2: SPI2

SPI2

§SPI3: SPI3

SPI3

§I2S0: I2S0

I2S0

§APU: APU

APU

§I2S1: I2S1

I2S1

§I2S2: I2S2

I2S2

§I2C0: I2C0

I2C0

§I2C1: I2C1

I2C1

§I2C2: I2C2

I2C2

§SHA256: SHA256

SHA256

§TIMER0: TIMER0

TIMER0

§TIMER1: TIMER1

TIMER1

§TIMER2: TIMER2

TIMER2

§WDT0: WDT0

WDT0

§WDT1: WDT1

WDT1

§OTP: OTP

OTP

§DVP: DVP

DVP

§SYSCTL: SYSCTL

SYSCTL

§AES: AES

AES

§RTC: RTC

RTC

§pins: ExternalPins

External pins

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

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.