Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 46 fields pub PERI: PERI, pub PERI_MS: PERI_MS, pub PERI_PCLK: PERI_PCLK, pub CRYPTO: CRYPTO, pub CPUSS: CPUSS, pub FAULT: FAULT, pub IPC: IPC, pub PROT: PROT, pub FLASHC: FLASHC, pub FLASHC1: FLASHC1, pub SRSS: SRSS, pub BACKUP: BACKUP, pub DW0: DW0, pub DW1: DW1, pub DMAC: DMAC, pub EFUSE: EFUSE, pub EFUSE_DATA: EFUSE_DATA, pub HSIOM: HSIOM, pub GPIO: GPIO, pub SMARTIO: SMARTIO, pub TCPWM0: TCPWM0, pub TCPWM1: TCPWM1, pub EVTGEN0: EVTGEN0, pub SMIF0: SMIF0, pub SDHC0: SDHC0, pub ETH0: ETH0, pub ETH1: ETH1, pub LIN0: LIN0, pub CANFD0: CANFD0, pub CANFD1: CANFD1, pub FLEXRAY0: FLEXRAY0, pub SCB0: SCB0, pub SCB1: SCB1, pub SCB2: SCB2, pub SCB3: SCB3, pub SCB4: SCB4, pub SCB5: SCB5, pub SCB6: SCB6, pub SCB7: SCB7, pub SCB8: SCB8, pub SCB9: SCB9, pub SCB10: SCB10, pub I2S0: I2S0, pub I2S1: I2S1, pub I2S2: I2S2, pub PASS0: PASS0,
}
Expand description

All the peripherals.

Fields§

§PERI: PERI

PERI

§PERI_MS: PERI_MS

PERI_MS

§PERI_PCLK: PERI_PCLK

PERI_PCLK

§CRYPTO: CRYPTO

CRYPTO

§CPUSS: CPUSS

CPUSS

§FAULT: FAULT

FAULT

§IPC: IPC

IPC

§PROT: PROT

PROT

§FLASHC: FLASHC

FLASHC

§FLASHC1: FLASHC1

FLASHC1

§SRSS: SRSS

SRSS

§BACKUP: BACKUP

BACKUP

§DW0: DW0

DW0

§DW1: DW1

DW1

§DMAC: DMAC

DMAC

§EFUSE: EFUSE

EFUSE

§EFUSE_DATA: EFUSE_DATA

EFUSE_DATA

§HSIOM: HSIOM

HSIOM

§GPIO: GPIO

GPIO

§SMARTIO: SMARTIO

SMARTIO

§TCPWM0: TCPWM0

TCPWM0

§TCPWM1: TCPWM1

TCPWM1

§EVTGEN0: EVTGEN0

EVTGEN0

§SMIF0: SMIF0

SMIF0

§SDHC0: SDHC0

SDHC0

§ETH0: ETH0

ETH0

§ETH1: ETH1

ETH1

§LIN0: LIN0

LIN0

§CANFD0: CANFD0

CANFD0

§CANFD1: CANFD1

CANFD1

§FLEXRAY0: FLEXRAY0

FLEXRAY0

§SCB0: SCB0

SCB0

§SCB1: SCB1

SCB1

§SCB2: SCB2

SCB2

§SCB3: SCB3

SCB3

§SCB4: SCB4

SCB4

§SCB5: SCB5

SCB5

§SCB6: SCB6

SCB6

§SCB7: SCB7

SCB7

§SCB8: SCB8

SCB8

§SCB9: SCB9

SCB9

§SCB10: SCB10

SCB10

§I2S0: I2S0

I2S0

§I2S1: I2S1

I2S1

§I2S2: I2S2

I2S2

§PASS0: PASS0

PASS0

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.