Struct Peripherals

Source
pub struct Peripherals {
Show 33 fields pub WDT: WDT, pub GPIOA0: GPIOA0, pub GPIOA1: GPIOA1, pub GPIOA2: GPIOA2, pub GPIOA3: GPIOA3, pub UARTA0: UARTA0, pub UARTA1: UARTA1, pub I2CA0: I2CA0, pub GPIOA4: GPIOA4, pub TIMERA0: TIMERA0, pub TIMERA1: TIMERA1, pub TIMERA2: TIMERA2, pub TIMERA3: TIMERA3, pub STACKDIE_CTRL: STACKDIE_CTRL, pub COMMON_REG: COMMON_REG, pub FLASH_CONTROL: FLASH_CONTROL, pub SYSTEM_CONTROL: SYSTEM_CONTROL, pub UDMA: UDMA, pub CAMERA: CAMERA, pub I2S: I2S, pub SSPI: SSPI, pub GSPI: GSPI, pub ARCM: ARCM, pub APPS_CONFIG: APPS_CONFIG, pub GPRCM: GPRCM, pub OCP_SHARED: OCP_SHARED, pub ADC: ADC, pub HIB1P2: HIB1P2, pub HIB3P3: HIB3P3, pub DTHE: DTHE, pub SHAMD5: SHAMD5, pub AES: AES, pub DES: DES,
}
Expand description

All the peripherals

Fields§

§WDT: WDT

WDT

§GPIOA0: GPIOA0

GPIOA0

§GPIOA1: GPIOA1

GPIOA1

§GPIOA2: GPIOA2

GPIOA2

§GPIOA3: GPIOA3

GPIOA3

§UARTA0: UARTA0

UARTA0

§UARTA1: UARTA1

UARTA1

§I2CA0: I2CA0

I2CA0

§GPIOA4: GPIOA4

GPIOA4

§TIMERA0: TIMERA0

TIMERA0

§TIMERA1: TIMERA1

TIMERA1

§TIMERA2: TIMERA2

TIMERA2

§TIMERA3: TIMERA3

TIMERA3

§STACKDIE_CTRL: STACKDIE_CTRL

STACKDIE_CTRL

§COMMON_REG: COMMON_REG

COMMON_REG

§FLASH_CONTROL: FLASH_CONTROL

FLASH_CONTROL

§SYSTEM_CONTROL: SYSTEM_CONTROL

SYSTEM_CONTROL

§UDMA: UDMA

UDMA

§CAMERA: CAMERA

CAMERA

§I2S: I2S

I2S

§SSPI: SSPI

SSPI

§GSPI: GSPI

GSPI

§ARCM: ARCM

ARCM

§APPS_CONFIG: APPS_CONFIG

APPS_CONFIG

§GPRCM: GPRCM

GPRCM

§OCP_SHARED: OCP_SHARED

OCP_SHARED

§ADC: ADC

ADC

§HIB1P2: HIB1P2

HIB1P2

§HIB3P3: HIB3P3

HIB3P3

§DTHE: DTHE

DTHE

§SHAMD5: SHAMD5

SHAMD5

§AES: AES

AES

§DES: DES

DES

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> Same for T

Source§

type Output = T

Should always be Self
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.