Struct Peripherals

Source
pub struct Peripherals {
Show 65 fields pub CRC: Periph<RegisterBlock, 1073885184>, pub IWDG: Periph<RegisterBlock, 1073754112>, pub WWDG: Periph<RegisterBlock, 1073753088>, pub I2C1: Periph<RegisterBlock, 1073763328>, pub I2C2: Periph<RegisterBlock, 1073764352>, pub I2C3: Periph<RegisterBlock, 1073772544>, pub FLASH: Periph<RegisterBlock, 1073881088>, pub DBGMCU: Periph<RegisterBlock, 3758366720>, pub RCC: Periph<RegisterBlock, 1073876992>, pub PWR: Periph<RegisterBlock, 1073770496>, pub RNG: Periph<RegisterBlock, 1342572544>, pub AES: Periph<RegisterBlock, 1342570496>, pub GPIOA: Periph<RegisterBlock, 1207959552>, pub GPIOB: Periph<RegisterBlock, 1207960576>, pub GPIOC: Periph<RegisterBlock, 1207961600>, pub GPIOD: Periph<RegisterBlock, 1207962624>, pub GPIOE: Periph<RegisterBlock, 1207963648>, pub GPIOF: Periph<RegisterBlock, 1207964672>, pub GPIOG: Periph<RegisterBlock, 1207965696>, pub TIM15: Periph<RegisterBlock, 1073823744>, pub TIM16: Periph<RegisterBlock, 1073824768>, pub TIM17: Periph<RegisterBlock, 1073825792>, pub TIM1: Periph<RegisterBlock, 1073818624>, pub TIM8: Periph<RegisterBlock, 1073820672>, pub TIM20: Periph<RegisterBlock, 1073827840>, pub TIM2: Periph<RegisterBlock, 1073741824>, pub TIM3: Periph<RegisterBlock, 1073742848>, pub TIM4: Periph<RegisterBlock, 1073743872>, pub TIM6: Periph<RegisterBlock, 1073745920>, pub TIM7: Periph<RegisterBlock, 1073746944>, pub LPTIMER1: Periph<RegisterBlock, 1073773568>, pub USART1: Periph<RegisterBlock, 1073821696>, pub USART2: Periph<RegisterBlock, 1073759232>, pub USART3: Periph<RegisterBlock, 1073760256>, pub UART4: Periph<RegisterBlock, 1073761280>, pub LPUART1: Periph<RegisterBlock, 1073774592>, pub SPI1: Periph<RegisterBlock, 1073819648>, pub SPI3: Periph<RegisterBlock, 1073757184>, pub SPI2: Periph<RegisterBlock, 1073756160>, pub EXTI: Periph<RegisterBlock, 1073808384>, pub RTC: Periph<RegisterBlock, 1073752064>, pub DMA1: Periph<RegisterBlock, 1073872896>, pub DMA2: Periph<RegisterBlock, 1073873920>, pub DMAMUX: Periph<RegisterBlock, 1073874944>, pub SYSCFG: Periph<RegisterBlock, 1073807360>, pub VREFBUF: Periph<RegisterBlock, 1073807408>, pub COMP: Periph<RegisterBlock, 1073807872>, pub OPAMP: Periph<RegisterBlock, 1073808128>, pub DAC1: Periph<RegisterBlock, 1342179328>, pub DAC2: Periph<RegisterBlock, 1342180352>, pub DAC3: Periph<RegisterBlock, 1342181376>, pub DAC4: Periph<RegisterBlock, 1342182400>, pub ADC1: Periph<RegisterBlock, 1342177280>, pub ADC2: Periph<RegisterBlock, 1342177536>, pub ADC12_COMMON: Periph<RegisterBlock, 1342178048>, pub ADC345_COMMON: Periph<RegisterBlock, 1342179072>, pub FMAC: Periph<RegisterBlock, 1073878016>, pub CORDIC: Periph<RegisterBlock, 1073875968>, pub SAI: Periph<RegisterBlock, 1073828864>, pub TAMP: Periph<RegisterBlock, 1073751040>, pub FDCAN: Periph<RegisterBlock, 1073783808>, pub FDCAN1: Periph<RegisterBlock, 1073767424>, pub UCPD1: Periph<RegisterBlock, 1073782784>, pub USB: Periph<RegisterBlock, 1073765376>, pub CRS: Periph<RegisterBlock, 1073750016>,
}
Expand description

All the peripherals.

Fields§

§CRC: Periph<RegisterBlock, 1073885184>

CRC

§IWDG: Periph<RegisterBlock, 1073754112>

IWDG

§WWDG: Periph<RegisterBlock, 1073753088>

WWDG

§I2C1: Periph<RegisterBlock, 1073763328>

I2C1

§I2C2: Periph<RegisterBlock, 1073764352>

I2C2

§I2C3: Periph<RegisterBlock, 1073772544>

I2C3

§FLASH: Periph<RegisterBlock, 1073881088>

FLASH

§DBGMCU: Periph<RegisterBlock, 3758366720>

DBGMCU

§RCC: Periph<RegisterBlock, 1073876992>

RCC

§PWR: Periph<RegisterBlock, 1073770496>

PWR

§RNG: Periph<RegisterBlock, 1342572544>

RNG

§AES: Periph<RegisterBlock, 1342570496>

AES

§GPIOA: Periph<RegisterBlock, 1207959552>

GPIOA

§GPIOB: Periph<RegisterBlock, 1207960576>

GPIOB

§GPIOC: Periph<RegisterBlock, 1207961600>

GPIOC

§GPIOD: Periph<RegisterBlock, 1207962624>

GPIOD

§GPIOE: Periph<RegisterBlock, 1207963648>

GPIOE

§GPIOF: Periph<RegisterBlock, 1207964672>

GPIOF

§GPIOG: Periph<RegisterBlock, 1207965696>

GPIOG

§TIM15: Periph<RegisterBlock, 1073823744>

TIM15

§TIM16: Periph<RegisterBlock, 1073824768>

TIM16

§TIM17: Periph<RegisterBlock, 1073825792>

TIM17

§TIM1: Periph<RegisterBlock, 1073818624>

TIM1

§TIM8: Periph<RegisterBlock, 1073820672>

TIM8

§TIM20: Periph<RegisterBlock, 1073827840>

TIM20

§TIM2: Periph<RegisterBlock, 1073741824>

TIM2

§TIM3: Periph<RegisterBlock, 1073742848>

TIM3

§TIM4: Periph<RegisterBlock, 1073743872>

TIM4

§TIM6: Periph<RegisterBlock, 1073745920>

TIM6

§TIM7: Periph<RegisterBlock, 1073746944>

TIM7

§LPTIMER1: Periph<RegisterBlock, 1073773568>

LPTIMER1

§USART1: Periph<RegisterBlock, 1073821696>

USART1

§USART2: Periph<RegisterBlock, 1073759232>

USART2

§USART3: Periph<RegisterBlock, 1073760256>

USART3

§UART4: Periph<RegisterBlock, 1073761280>

UART4

§LPUART1: Periph<RegisterBlock, 1073774592>

LPUART1

§SPI1: Periph<RegisterBlock, 1073819648>

SPI1

§SPI3: Periph<RegisterBlock, 1073757184>

SPI3

§SPI2: Periph<RegisterBlock, 1073756160>

SPI2

§EXTI: Periph<RegisterBlock, 1073808384>

EXTI

§RTC: Periph<RegisterBlock, 1073752064>

RTC

§DMA1: Periph<RegisterBlock, 1073872896>

DMA1

§DMA2: Periph<RegisterBlock, 1073873920>

DMA2

§DMAMUX: Periph<RegisterBlock, 1073874944>

DMAMUX

§SYSCFG: Periph<RegisterBlock, 1073807360>

SYSCFG

§VREFBUF: Periph<RegisterBlock, 1073807408>

VREFBUF

§COMP: Periph<RegisterBlock, 1073807872>

COMP

§OPAMP: Periph<RegisterBlock, 1073808128>

OPAMP

§DAC1: Periph<RegisterBlock, 1342179328>

DAC1

§DAC2: Periph<RegisterBlock, 1342180352>

DAC2

§DAC3: Periph<RegisterBlock, 1342181376>

DAC3

§DAC4: Periph<RegisterBlock, 1342182400>

DAC4

§ADC1: Periph<RegisterBlock, 1342177280>

ADC1

§ADC2: Periph<RegisterBlock, 1342177536>

ADC2

§ADC12_COMMON: Periph<RegisterBlock, 1342178048>

ADC12_Common

§ADC345_COMMON: Periph<RegisterBlock, 1342179072>

ADC345_Common

§FMAC: Periph<RegisterBlock, 1073878016>

FMAC

§CORDIC: Periph<RegisterBlock, 1073875968>

CORDIC

§SAI: Periph<RegisterBlock, 1073828864>

SAI

§TAMP: Periph<RegisterBlock, 1073751040>

TAMP

§FDCAN: Periph<RegisterBlock, 1073783808>

FDCAN

§FDCAN1: Periph<RegisterBlock, 1073767424>

FDCAN1

§UCPD1: Periph<RegisterBlock, 1073782784>

UCPD1

§USB: Periph<RegisterBlock, 1073765376>

USB

§CRS: Periph<RegisterBlock, 1073750016>

CRS

Implementations§

Source§

impl Peripherals

Source

pub fn take() -> Option<Peripherals>

Returns all the peripherals once.

Source

pub unsafe fn steal() -> Peripherals

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.