pub struct Peripherals {
Show 28 fields pub HSMCI: HSMCI, pub SSC: SSC, pub SPI: SPI, pub TC0: TC0, pub TWI0: TWI0, pub TWI1: TWI1, pub PWM: PWM, pub USART0: USART0, pub USART1: USART1, pub UDP: UDP, pub ADC: ADC, pub DACC: DACC, pub ACC: ACC, pub CRCCU: CRCCU, pub MATRIX: MATRIX, pub PMC: PMC, pub UART0: UART0, pub CHIPID: CHIPID, pub UART1: UART1, pub EFC0: EFC0, pub PIOA: PIOA, pub PIOB: PIOB, pub RSTC: RSTC, pub SUPC: SUPC, pub RTT: RTT, pub WDT: WDT, pub RTC: RTC, pub GPBR: GPBR,
}
Expand description

All the peripherals.

Fields§

§HSMCI: HSMCI

HSMCI

§SSC: SSC

SSC

§SPI: SPI

SPI

§TC0: TC0

TC0

§TWI0: TWI0

TWI0

§TWI1: TWI1

TWI1

§PWM: PWM

PWM

§USART0: USART0

USART0

§USART1: USART1

USART1

§UDP: UDP

UDP

§ADC: ADC

ADC

§DACC: DACC

DACC

§ACC: ACC

ACC

§CRCCU: CRCCU

CRCCU

§MATRIX: MATRIX

MATRIX

§PMC: PMC

PMC

§UART0: UART0

UART0

§CHIPID: CHIPID

CHIPID

§UART1: UART1

UART1

§EFC0: EFC0

EFC0

§PIOA: PIOA

PIOA

§PIOB: PIOB

PIOB

§RSTC: RSTC

RSTC

§SUPC: SUPC

SUPC

§RTT: RTT

RTT

§WDT: WDT

WDT

§RTC: RTC

RTC

§GPBR: GPBR

GPBR

Implementations§

source§

impl Peripherals

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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.