Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 50 fields pub adc: Adc, pub aes: Aes, pub aeskeys: Aeskeys, pub cameraif: Cameraif, pub crc: Crc, pub dma: Dma, pub dvs: Dvs, pub fcr: Fcr, pub flc: Flc, pub gcr: Gcr, pub gcfr: Gcfr, pub gpio0: Gpio0, pub gpio1: Gpio1, pub gpio2: Gpio2, pub i2c0: I2c0, pub i2c1: I2c1, pub i2c2: I2c2, pub i2s: I2s, pub icc0: Icc0, pub lpcmp: Lpcmp, pub lpgcr: Lpgcr, pub mcr: Mcr, pub owm: Owm, pub pt0: Pt0, pub pt1: Pt1, pub pt2: Pt2, pub pt3: Pt3, pub ptg: Ptg, pub pwrseq: Pwrseq, pub rtc: Rtc, pub sema: Sema, pub simo: Simo, pub sir: Sir, pub spi0: Spi0, pub spi1: Spi1, pub tmr0: Tmr0, pub tmr1: Tmr1, pub tmr2: Tmr2, pub tmr3: Tmr3, pub tmr4: Tmr4, pub tmr5: Tmr5, pub trimsir: Trimsir, pub trng: Trng, pub uart0: Uart0, pub uart1: Uart1, pub uart2: Uart2, pub uart3: Uart3, pub wdt0: Wdt0, pub wdt1: Wdt1, pub wut: Wut,
}
Expand description

All the peripherals.

Fields§

§adc: Adc

ADC

§aes: Aes

AES

§aeskeys: Aeskeys

AESKEYS

§cameraif: Cameraif

CAMERAIF

§crc: Crc

CRC

§dma: Dma

DMA

§dvs: Dvs

DVS

§fcr: Fcr

FCR

§flc: Flc

FLC

§gcr: Gcr

GCR

§gcfr: Gcfr

GCFR

§gpio0: Gpio0

GPIO0

§gpio1: Gpio1

GPIO1

§gpio2: Gpio2

GPIO2

§i2c0: I2c0

I2C0

§i2c1: I2c1

I2C1

§i2c2: I2c2

I2C2

§i2s: I2s

I2S

§icc0: Icc0

ICC0

§lpcmp: Lpcmp

LPCMP

§lpgcr: Lpgcr

LPGCR

§mcr: Mcr

MCR

§owm: Owm

OWM

§pt0: Pt0

PT0

§pt1: Pt1

PT1

§pt2: Pt2

PT2

§pt3: Pt3

PT3

§ptg: Ptg

PTG

§pwrseq: Pwrseq

PWRSEQ

§rtc: Rtc

RTC

§sema: Sema

SEMA

§simo: Simo

SIMO

§sir: Sir

SIR

§spi0: Spi0

SPI0

§spi1: Spi1

SPI1

§tmr0: Tmr0

TMR0

§tmr1: Tmr1

TMR1

§tmr2: Tmr2

TMR2

§tmr3: Tmr3

TMR3

§tmr4: Tmr4

TMR4

§tmr5: Tmr5

TMR5

§trimsir: Trimsir

TRIMSIR

§trng: Trng

TRNG

§uart0: Uart0

UART0

§uart1: Uart1

UART1

§uart2: Uart2

UART2

§uart3: Uart3

UART3

§wdt0: Wdt0

WDT0

§wdt1: Wdt1

WDT1

§wut: Wut

WUT

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 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.