Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 84 fields pub RNG: Periph<RegisterBlock, 1342572544>, pub HASH: Periph<RegisterBlock, 1342571520>, pub CRYP: Periph<RegisterBlock, 1342570496>, pub DCMI: Periph<RegisterBlock, 1342504960>, pub FMC: Periph<RegisterBlock, 2684354560>, pub DBGMCU: Periph<RegisterBlock, 3758366720>, pub DMA2: Periph<RegisterBlock, 1073898496>, pub DMA1: Periph<RegisterBlock, 1073897472>, pub RCC: Periph<RegisterBlock, 1073887232>, pub GPIOK: Periph<RegisterBlock, 1073883136>, pub GPIOJ: Periph<RegisterBlock, 1073882112>, pub GPIOI: Periph<RegisterBlock, 1073881088>, pub GPIOH: Periph<RegisterBlock, 1073880064>, pub GPIOG: Periph<RegisterBlock, 1073879040>, pub GPIOF: Periph<RegisterBlock, 1073878016>, pub GPIOE: Periph<RegisterBlock, 1073876992>, pub GPIOD: Periph<RegisterBlock, 1073875968>, pub GPIOC: Periph<RegisterBlock, 1073874944>, pub GPIOB: Periph<RegisterBlock, 1073873920>, pub GPIOA: Periph<RegisterBlock, 1073872896>, pub SYSCFG: Periph<RegisterBlock, 1073821696>, pub SPI1: Periph<RegisterBlock, 1073819648>, pub SPI2: Periph<RegisterBlock, 1073756160>, pub SPI3: Periph<RegisterBlock, 1073757184>, pub I2S2EXT: Periph<RegisterBlock, 1073755136>, pub I2S3EXT: Periph<RegisterBlock, 1073758208>, pub SPI4: Periph<RegisterBlock, 1073820672>, pub SPI5: Periph<RegisterBlock, 1073827840>, pub SPI6: Periph<RegisterBlock, 1073828864>, pub SDIO: Periph<RegisterBlock, 1073818624>, pub ADC1: Periph<RegisterBlock, 1073815552>, pub ADC2: Periph<RegisterBlock, 1073815808>, pub ADC3: Periph<RegisterBlock, 1073816064>, pub USART1: Periph<RegisterBlock, 1073811456>, pub USART6: Periph<RegisterBlock, 1073812480>, pub USART2: Periph<RegisterBlock, 1073759232>, pub USART3: Periph<RegisterBlock, 1073760256>, pub UART4: Periph<RegisterBlock, 1073761280>, pub UART7: Periph<RegisterBlock, 1073772544>, pub UART8: Periph<RegisterBlock, 1073773568>, pub DAC: Periph<RegisterBlock, 1073771520>, pub PWR: Periph<RegisterBlock, 1073770496>, pub IWDG: Periph<RegisterBlock, 1073754112>, pub WWDG: Periph<RegisterBlock, 1073753088>, pub RTC: Periph<RegisterBlock, 1073752064>, pub UART5: Periph<RegisterBlock, 1073762304>, pub ADC_COMMON: Periph<RegisterBlock, 1073816320>, pub TIM1: Periph<RegisterBlock, 1073807360>, pub TIM8: Periph<RegisterBlock, 1073808384>, pub TIM2: Periph<RegisterBlock, 1073741824>, pub TIM3: Periph<RegisterBlock, 1073742848>, pub TIM4: Periph<RegisterBlock, 1073743872>, pub TIM5: Periph<RegisterBlock, 1073744896>, pub TIM9: Periph<RegisterBlock, 1073823744>, pub TIM12: Periph<RegisterBlock, 1073747968>, pub TIM10: Periph<RegisterBlock, 1073824768>, pub TIM13: Periph<RegisterBlock, 1073748992>, pub TIM14: Periph<RegisterBlock, 1073750016>, pub TIM11: Periph<RegisterBlock, 1073825792>, pub TIM6: Periph<RegisterBlock, 1073745920>, pub TIM7: Periph<RegisterBlock, 1073746944>, pub ETHERNET_MAC: Periph<RegisterBlock, 1073905664>, pub ETHERNET_MMC: Periph<RegisterBlock, 1073905920>, pub ETHERNET_PTP: Periph<RegisterBlock, 1073907456>, pub ETHERNET_DMA: Periph<RegisterBlock, 1073909760>, pub CRC: Periph<RegisterBlock, 1073885184>, pub OTG_FS_GLOBAL: Periph<RegisterBlock, 1342177280>, pub OTG_FS_HOST: Periph<RegisterBlock, 1342178304>, pub OTG_FS_DEVICE: Periph<RegisterBlock, 1342179328>, pub OTG_FS_PWRCLK: Periph<RegisterBlock, 1342180864>, pub CAN1: Periph<RegisterBlock, 1073767424>, pub CAN2: Periph<RegisterBlock, 1073768448>, pub FLASH: Periph<RegisterBlock, 1073888256>, pub EXTI: Periph<RegisterBlock, 1073822720>, pub OTG_HS_GLOBAL: Periph<RegisterBlock, 1074003968>, pub OTG_HS_HOST: Periph<RegisterBlock, 1074004992>, pub OTG_HS_DEVICE: Periph<RegisterBlock, 1074006016>, pub OTG_HS_PWRCLK: Periph<RegisterBlock, 1074007552>, pub LTDC: Periph<RegisterBlock, 1073833984>, pub SAI: Periph<RegisterBlock, 1073829888>, pub DMA2D: Periph<RegisterBlock, 1073917952>, pub I2C1: Periph<RegisterBlock, 1073763328>, pub I2C3: Periph<RegisterBlock, 1073765376>, pub I2C2: Periph<RegisterBlock, 1073764352>,
}
Expand description

All the peripherals.

Fields§

§RNG: Periph<RegisterBlock, 1342572544>

RNG

§HASH: Periph<RegisterBlock, 1342571520>

HASH

§CRYP: Periph<RegisterBlock, 1342570496>

CRYP

§DCMI: Periph<RegisterBlock, 1342504960>

DCMI

§FMC: Periph<RegisterBlock, 2684354560>

FMC

§DBGMCU: Periph<RegisterBlock, 3758366720>

DBGMCU

§DMA2: Periph<RegisterBlock, 1073898496>

DMA2

§DMA1: Periph<RegisterBlock, 1073897472>

DMA1

§RCC: Periph<RegisterBlock, 1073887232>

RCC

§GPIOK: Periph<RegisterBlock, 1073883136>

GPIOK

§GPIOJ: Periph<RegisterBlock, 1073882112>

GPIOJ

§GPIOI: Periph<RegisterBlock, 1073881088>

GPIOI

§GPIOH: Periph<RegisterBlock, 1073880064>

GPIOH

§GPIOG: Periph<RegisterBlock, 1073879040>

GPIOG

§GPIOF: Periph<RegisterBlock, 1073878016>

GPIOF

§GPIOE: Periph<RegisterBlock, 1073876992>

GPIOE

§GPIOD: Periph<RegisterBlock, 1073875968>

GPIOD

§GPIOC: Periph<RegisterBlock, 1073874944>

GPIOC

§GPIOB: Periph<RegisterBlock, 1073873920>

GPIOB

§GPIOA: Periph<RegisterBlock, 1073872896>

GPIOA

§SYSCFG: Periph<RegisterBlock, 1073821696>

SYSCFG

§SPI1: Periph<RegisterBlock, 1073819648>

SPI1

§SPI2: Periph<RegisterBlock, 1073756160>

SPI2

§SPI3: Periph<RegisterBlock, 1073757184>

SPI3

§I2S2EXT: Periph<RegisterBlock, 1073755136>

I2S2ext

§I2S3EXT: Periph<RegisterBlock, 1073758208>

I2S3ext

§SPI4: Periph<RegisterBlock, 1073820672>

SPI4

§SPI5: Periph<RegisterBlock, 1073827840>

SPI5

§SPI6: Periph<RegisterBlock, 1073828864>

SPI6

§SDIO: Periph<RegisterBlock, 1073818624>

SDIO

§ADC1: Periph<RegisterBlock, 1073815552>

ADC1

§ADC2: Periph<RegisterBlock, 1073815808>

ADC2

§ADC3: Periph<RegisterBlock, 1073816064>

ADC3

§USART1: Periph<RegisterBlock, 1073811456>

USART1

§USART6: Periph<RegisterBlock, 1073812480>

USART6

§USART2: Periph<RegisterBlock, 1073759232>

USART2

§USART3: Periph<RegisterBlock, 1073760256>

USART3

§UART4: Periph<RegisterBlock, 1073761280>

UART4

§UART7: Periph<RegisterBlock, 1073772544>

UART7

§UART8: Periph<RegisterBlock, 1073773568>

UART8

§DAC: Periph<RegisterBlock, 1073771520>

DAC

§PWR: Periph<RegisterBlock, 1073770496>

PWR

§IWDG: Periph<RegisterBlock, 1073754112>

IWDG

§WWDG: Periph<RegisterBlock, 1073753088>

WWDG

§RTC: Periph<RegisterBlock, 1073752064>

RTC

§UART5: Periph<RegisterBlock, 1073762304>

UART5

§ADC_COMMON: Periph<RegisterBlock, 1073816320>

ADC_Common

§TIM1: Periph<RegisterBlock, 1073807360>

TIM1

§TIM8: Periph<RegisterBlock, 1073808384>

TIM8

§TIM2: Periph<RegisterBlock, 1073741824>

TIM2

§TIM3: Periph<RegisterBlock, 1073742848>

TIM3

§TIM4: Periph<RegisterBlock, 1073743872>

TIM4

§TIM5: Periph<RegisterBlock, 1073744896>

TIM5

§TIM9: Periph<RegisterBlock, 1073823744>

TIM9

§TIM12: Periph<RegisterBlock, 1073747968>

TIM12

§TIM10: Periph<RegisterBlock, 1073824768>

TIM10

§TIM13: Periph<RegisterBlock, 1073748992>

TIM13

§TIM14: Periph<RegisterBlock, 1073750016>

TIM14

§TIM11: Periph<RegisterBlock, 1073825792>

TIM11

§TIM6: Periph<RegisterBlock, 1073745920>

TIM6

§TIM7: Periph<RegisterBlock, 1073746944>

TIM7

§ETHERNET_MAC: Periph<RegisterBlock, 1073905664>

Ethernet_MAC

§ETHERNET_MMC: Periph<RegisterBlock, 1073905920>

Ethernet_MMC

§ETHERNET_PTP: Periph<RegisterBlock, 1073907456>

Ethernet_PTP

§ETHERNET_DMA: Periph<RegisterBlock, 1073909760>

Ethernet_DMA

§CRC: Periph<RegisterBlock, 1073885184>

CRC

§OTG_FS_GLOBAL: Periph<RegisterBlock, 1342177280>

OTG_FS_GLOBAL

§OTG_FS_HOST: Periph<RegisterBlock, 1342178304>

OTG_FS_HOST

§OTG_FS_DEVICE: Periph<RegisterBlock, 1342179328>

OTG_FS_DEVICE

§OTG_FS_PWRCLK: Periph<RegisterBlock, 1342180864>

OTG_FS_PWRCLK

§CAN1: Periph<RegisterBlock, 1073767424>

CAN1

§CAN2: Periph<RegisterBlock, 1073768448>

CAN2

§FLASH: Periph<RegisterBlock, 1073888256>

FLASH

§EXTI: Periph<RegisterBlock, 1073822720>

EXTI

§OTG_HS_GLOBAL: Periph<RegisterBlock, 1074003968>

OTG_HS_GLOBAL

§OTG_HS_HOST: Periph<RegisterBlock, 1074004992>

OTG_HS_HOST

§OTG_HS_DEVICE: Periph<RegisterBlock, 1074006016>

OTG_HS_DEVICE

§OTG_HS_PWRCLK: Periph<RegisterBlock, 1074007552>

OTG_HS_PWRCLK

§LTDC: Periph<RegisterBlock, 1073833984>

LTDC

§SAI: Periph<RegisterBlock, 1073829888>

SAI

§DMA2D: Periph<RegisterBlock, 1073917952>

DMA2D

§I2C1: Periph<RegisterBlock, 1073763328>

I2C1

§I2C3: Periph<RegisterBlock, 1073765376>

I2C3

§I2C2: Periph<RegisterBlock, 1073764352>

I2C2

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.