Struct Peripherals

Source
pub struct Peripherals {
Show 22 fields pub BBFC: BBFC, pub BBSIR: BBSIR, pub DMA: DMA, pub FLC: FLC, pub GCR: GCR, pub GPIO0: GPIO0, pub I2C0: I2C0, pub I2C1: I2C1, pub ICC0: ICC0, pub ICC1: ICC1, pub PWRSEQ: PWRSEQ, pub RTC: RTC, pub SIR: SIR, pub SMON: SMON, pub SPI17Y: SPI17Y, pub SPIMSS: SPIMSS, pub TMR0: TMR0, pub TMR1: TMR1, pub TMR2: TMR2, pub UART0: UART0, pub UART1: UART1, pub WDT0: WDT0,
}
Expand description

All the peripherals

Fields§

§BBFC: BBFC

BBFC

§BBSIR: BBSIR

BBSIR

§DMA: DMA

DMA

§FLC: FLC

FLC

§GCR: GCR

GCR

§GPIO0: GPIO0

GPIO0

§I2C0: I2C0

I2C0

§I2C1: I2C1

I2C1

§ICC0: ICC0

ICC0

§ICC1: ICC1

ICC1

§PWRSEQ: PWRSEQ

PWRSEQ

§RTC: RTC

RTC

§SIR: SIR

SIR

§SMON: SMON

SMON

§SPI17Y: SPI17Y

SPI17Y

§SPIMSS: SPIMSS

SPIMSS

§TMR0: TMR0

TMR0

§TMR1: TMR1

TMR1

§TMR2: TMR2

TMR2

§UART0: UART0

UART0

§UART1: UART1

UART1

§WDT0: WDT0

WDT0

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.