atsamd11c

Struct Peripherals

Source
pub struct Peripherals {
Show 26 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 mtb: Mtb, pub nvmctrl: Nvmctrl, pub pac0: Pac0, pub pac1: Pac1, pub pac2: Pac2, pub pm: Pm, pub port: Port, pub port_iobus: PortIobus, pub rtc: Rtc, pub sercom0: Sercom0, pub sercom1: Sercom1, pub sysctrl: Sysctrl, pub tc1: Tc1, pub tc2: Tc2, pub tcc0: Tcc0, 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

§mtb: Mtb

MTB

§nvmctrl: Nvmctrl

NVMCTRL

§pac0: Pac0

PAC0

§pac1: Pac1

PAC1

§pac2: Pac2

PAC2

§pm: Pm

PM

§port: Port

PORT

§port_iobus: PortIobus

PORT_IOBUS

§rtc: Rtc

RTC

§sercom0: Sercom0

SERCOM0

§sercom1: Sercom1

SERCOM1

§sysctrl: Sysctrl

SYSCTRL

§tc1: Tc1

TC1

§tc2: Tc2

TC2

§tcc0: Tcc0

TCC0

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

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.