pub struct Peripherals {
Show 37 fields pub adc: Adc, pub cec: Cec, pub cmp: Cmp, pub crc: Crc, pub dbg: Dbg, pub dma: Dma, pub exti: Exti, pub fmc: Fmc, pub fwdgt: Fwdgt, pub gpioa: Gpioa, pub gpiob: Gpiob, pub gpioc: Gpioc, pub gpiod: Gpiod, pub gpiof: Gpiof, pub i2c0: I2c0, pub i2c1: I2c1, pub i2c2: I2c2, pub opa_ivref: OpaIvref, pub pmu: Pmu, pub rcu: Rcu, pub rtc: Rtc, pub spi0: Spi0, pub spi1: Spi1, pub spi2: Spi2, pub syscfg: Syscfg, pub timer0: Timer0, pub timer1: Timer1, pub timer2: Timer2, pub timer5: Timer5, pub timer13: Timer13, pub timer14: Timer14, pub timer15: Timer15, pub timer16: Timer16, pub tsi: Tsi, pub usart0: Usart0, pub usart1: Usart1, pub wwdgt: Wwdgt,
}
Expand description

All the peripherals.

Fields§

§adc: Adc

ADC

§cec: Cec

CEC

§cmp: Cmp

CMP

§crc: Crc

CRC

§dbg: Dbg

DBG

§dma: Dma

DMA

§exti: Exti

EXTI

§fmc: Fmc

FMC

§fwdgt: Fwdgt

FWDGT

§gpioa: Gpioa

GPIOA

§gpiob: Gpiob

GPIOB

§gpioc: Gpioc

GPIOC

§gpiod: Gpiod

GPIOD

§gpiof: Gpiof

GPIOF

§i2c0: I2c0

I2C0

§i2c1: I2c1

I2C1

§i2c2: I2c2

I2C2

§opa_ivref: OpaIvref

OPA_IVREF

§pmu: Pmu

PMU

§rcu: Rcu

RCU

§rtc: Rtc

RTC

§spi0: Spi0

SPI0

§spi1: Spi1

SPI1

§spi2: Spi2

SPI2

§syscfg: Syscfg

SYSCFG

§timer0: Timer0

TIMER0

§timer1: Timer1

TIMER1

§timer2: Timer2

TIMER2

§timer5: Timer5

TIMER5

§timer13: Timer13

TIMER13

§timer14: Timer14

TIMER14

§timer15: Timer15

TIMER15

§timer16: Timer16

TIMER16

§tsi: Tsi

TSI

§usart0: Usart0

USART0

§usart1: Usart1

USART1

§wwdgt: Wwdgt

WWDGT

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