Struct atsamd21e::Peripherals

source ·
pub struct Peripherals {
Show 32 fields pub AC: AC, pub ADC: ADC, pub DAC: DAC, pub DMAC: DMAC, pub DSU: DSU, pub EIC: EIC, pub EVSYS: EVSYS, pub GCLK: GCLK, pub HMATRIX: HMATRIX, pub I2S: I2S, pub MTB: MTB, pub NVMCTRL: NVMCTRL, pub PAC0: PAC0, pub PAC1: PAC1, pub PAC2: PAC2, pub PM: PM, pub PORT: PORT, pub PORT_IOBUS: PORT_IOBUS, pub RTC: RTC, pub SERCOM0: SERCOM0, pub SERCOM1: SERCOM1, pub SERCOM2: SERCOM2, pub SERCOM3: SERCOM3, pub SYSCTRL: SYSCTRL, pub TC3: TC3, pub TC4: TC4, pub TC5: TC5, pub TCC0: TCC0, pub TCC1: TCC1, pub TCC2: TCC2, pub USB: USB, pub WDT: WDT,
}
Expand description

All the peripherals.

Fields§

§AC: AC

AC

§ADC: ADC

ADC

§DAC: DAC

DAC

§DMAC: DMAC

DMAC

§DSU: DSU

DSU

§EIC: EIC

EIC

§EVSYS: EVSYS

EVSYS

§GCLK: GCLK

GCLK

§HMATRIX: HMATRIX

HMATRIX

§I2S: I2S

I2S

§MTB: MTB

MTB

§NVMCTRL: NVMCTRL

NVMCTRL

§PAC0: PAC0

PAC0

§PAC1: PAC1

PAC1

§PAC2: PAC2

PAC2

§PM: PM

PM

§PORT: PORT

PORT

§PORT_IOBUS: PORT_IOBUS

PORT_IOBUS

§RTC: RTC

RTC

§SERCOM0: SERCOM0

SERCOM0

§SERCOM1: SERCOM1

SERCOM1

§SERCOM2: SERCOM2

SERCOM2

§SERCOM3: SERCOM3

SERCOM3

§SYSCTRL: SYSCTRL

SYSCTRL

§TC3: TC3

TC3

§TC4: TC4

TC4

§TC5: TC5

TC5

§TCC0: TCC0

TCC0

§TCC1: TCC1

TCC1

§TCC2: TCC2

TCC2

§USB: USB

USB

§WDT: WDT

WDT

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

§

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

§

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.