pub struct Peripherals {
Show 33 fields pub PWR: PWR, pub RCC: RCC, pub EXTEND: EXTEND, pub GPIOA: GPIOA, pub GPIOB: GPIOB, pub GPIOC: GPIOC, pub GPIOD: GPIOD, pub AFIO: AFIO, pub EXTI: EXTI, pub DMA: DMA, pub RTC: RTC, pub BKP: BKP, pub IWDG: IWDG, pub WWDG: WWDG, pub TIM1: TIM1, pub TIM2: TIM2, pub TIM3: TIM3, pub TIM4: TIM4, pub I2C1: I2C1, pub I2C2: I2C2, pub SPI1: SPI1, pub SPI2: SPI2, pub USART1: USART1, pub USART2: USART2, pub USART3: USART3, pub ADC: ADC, pub DAC1: DAC1, pub DBG: DBG, pub USBHD: USBHD, pub CRC: CRC, pub FLASH: FLASH, pub PFIC: PFIC, pub USBD: USBD,
}
Expand description

All the peripherals.

Fields§

§PWR: PWR

PWR

§RCC: RCC

RCC

§EXTEND: EXTEND

EXTEND

§GPIOA: GPIOA

GPIOA

§GPIOB: GPIOB

GPIOB

§GPIOC: GPIOC

GPIOC

§GPIOD: GPIOD

GPIOD

§AFIO: AFIO

AFIO

§EXTI: EXTI

EXTI

§DMA: DMA

DMA

§RTC: RTC

RTC

§BKP: BKP

BKP

§IWDG: IWDG

IWDG

§WWDG: WWDG

WWDG

§TIM1: TIM1

TIM1

§TIM2: TIM2

TIM2

§TIM3: TIM3

TIM3

§TIM4: TIM4

TIM4

§I2C1: I2C1

I2C1

§I2C2: I2C2

I2C2

§SPI1: SPI1

SPI1

§SPI2: SPI2

SPI2

§USART1: USART1

USART1

§USART2: USART2

USART2

§USART3: USART3

USART3

§ADC: ADC

ADC

§DAC1: DAC1

DAC1

§DBG: DBG

DBG

§USBHD: USBHD

USBHD

§CRC: CRC

CRC

§FLASH: FLASH

FLASH

§PFIC: PFIC

PFIC

§USBD: USBD

USBD

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.