Struct efm32pg1b_pac::Peripherals

source ·
pub struct Peripherals {
Show 25 fields pub msc: Msc, pub emu: Emu, pub rmu: Rmu, pub cmu: Cmu, pub crypto: Crypto, pub gpio: Gpio, pub prs: Prs, pub ldma: Ldma, pub fpueh: Fpueh, pub gpcrc: Gpcrc, pub timer0: Timer0, pub timer1: Timer1, pub usart0: Usart0, pub usart1: Usart1, pub leuart0: Leuart0, pub letimer0: Letimer0, pub cryotimer: Cryotimer, pub pcnt0: Pcnt0, pub i2c0: I2c0, pub adc0: Adc0, pub acmp0: Acmp0, pub acmp1: Acmp1, pub idac0: Idac0, pub rtcc: Rtcc, pub wdog0: Wdog0,
}
Expand description

All the peripherals.

Fields§

§msc: Msc

MSC

§emu: Emu

EMU

§rmu: Rmu

RMU

§cmu: Cmu

CMU

§crypto: Crypto

CRYPTO

§gpio: Gpio

GPIO

§prs: Prs

PRS

§ldma: Ldma

LDMA

§fpueh: Fpueh

FPUEH

§gpcrc: Gpcrc

GPCRC

§timer0: Timer0

TIMER0

§timer1: Timer1

TIMER1

§usart0: Usart0

USART0

§usart1: Usart1

USART1

§leuart0: Leuart0

LEUART0

§letimer0: Letimer0

LETIMER0

§cryotimer: Cryotimer

CRYOTIMER

§pcnt0: Pcnt0

PCNT0

§i2c0: I2c0

I2C0

§adc0: Adc0

ADC0

§acmp0: Acmp0

ACMP0

§acmp1: Acmp1

ACMP1

§idac0: Idac0

IDAC0

§rtcc: Rtcc

RTCC

§wdog0: Wdog0

WDOG0

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.