pub struct Peripherals {
Show 18 fields pub SYS: SYS, pub TMR0: TMR0, pub TMR1: TMR1, pub TMR2: TMR2, pub UART0: UART0, pub UART1: UART1, pub UART2: UART2, pub UART3: UART3, pub SPI0: SPI0, pub SPI1: SPI1, pub PWMX: PWMX, pub HSPI: HSPI, pub ECDC: ECDC, pub USBHS: USBHS, pub DVP: DVP, pub PFIC: PFIC, pub SYSTICK: SYSTICK, pub EMMC: EMMC,
}
Expand description

All the peripherals.

Fields

SYS: SYS

SYS

TMR0: TMR0

TMR0

TMR1: TMR1

TMR1

TMR2: TMR2

TMR2

UART0: UART0

UART0

UART1: UART1

UART1

UART2: UART2

UART2

UART3: UART3

UART3

SPI0: SPI0

SPI0

SPI1: SPI1

SPI1

PWMX: PWMX

PWMX

HSPI: HSPI

HSPI

ECDC: ECDC

ECDC

USBHS: USBHS

USBHS

DVP: DVP

DVP

PFIC: PFIC

PFIC

SYSTICK: SYSTICK

SYSTICK

EMMC: EMMC

EMMC

Implementations

Unchecked version of Peripherals::take.

Safety

Each of the returned peripherals must be used at most once.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.