embassy-stm32

Crates

git

Versions

stm32wba54kg

Flavors

embassy_stm32

Struct Peripherals

Source
pub struct Peripherals {
Show 121 fields pub ADC4_COMMON: ADC4_COMMON, pub AES: AES, pub CRC: CRC, pub DBGMCU: DBGMCU, pub FLASH: FLASH, pub GPDMA1: GPDMA1, pub PA0: PA0, pub PA1: PA1, pub PA2: PA2, pub PA3: PA3, pub PA4: PA4, pub PA5: PA5, pub PA6: PA6, pub PA7: PA7, pub PA8: PA8, pub PA9: PA9, pub PA10: PA10, pub PA11: PA11, pub PA12: PA12, pub PA13: PA13, pub PA14: PA14, pub PA15: PA15, pub PB0: PB0, pub PB1: PB1, pub PB2: PB2, pub PB3: PB3, pub PB4: PB4, pub PB5: PB5, pub PB6: PB6, pub PB7: PB7, pub PB8: PB8, pub PB9: PB9, pub PB10: PB10, pub PB11: PB11, pub PB12: PB12, pub PB13: PB13, pub PB14: PB14, pub PB15: PB15, pub PC0: PC0, pub PC1: PC1, pub PC2: PC2, pub PC3: PC3, pub PC4: PC4, pub PC5: PC5, pub PC6: PC6, pub PC7: PC7, pub PC8: PC8, pub PC9: PC9, pub PC10: PC10, pub PC11: PC11, pub PC12: PC12, pub PC13: PC13, pub PC14: PC14, pub PC15: PC15, pub PH0: PH0, pub PH1: PH1, pub PH2: PH2, pub PH3: PH3, pub PH4: PH4, pub PH5: PH5, pub PH6: PH6, pub PH7: PH7, pub PH8: PH8, pub PH9: PH9, pub PH10: PH10, pub PH11: PH11, pub PH12: PH12, pub PH13: PH13, pub PH14: PH14, pub PH15: PH15, pub HASH: HASH, pub I2C1: I2C1, pub I2C3: I2C3, pub ICACHE: ICACHE, pub IWDG: IWDG, pub LPTIM1: LPTIM1, pub LPTIM2: LPTIM2, pub LPUART1: LPUART1, pub PKA: PKA, pub PWR: PWR, pub MCO: MCO, pub RCC: RCC, pub RNG: RNG, pub RTC: RTC, pub SAES: SAES, pub SPI1: SPI1, pub SPI3: SPI3, pub SYSCFG: SYSCFG, pub TIM1: TIM1, pub TIM16: TIM16, pub TIM17: TIM17, pub TIM2: TIM2, pub TSC: TSC, pub UID: UID, pub USART1: USART1, pub USART2: USART2, pub WWDG: WWDG, pub EXTI0: EXTI0, pub EXTI1: EXTI1, pub EXTI2: EXTI2, pub EXTI3: EXTI3, pub EXTI4: EXTI4, pub EXTI5: EXTI5, pub EXTI6: EXTI6, pub EXTI7: EXTI7, pub EXTI8: EXTI8, pub EXTI9: EXTI9, pub EXTI10: EXTI10, pub EXTI11: EXTI11, pub EXTI12: EXTI12, pub EXTI13: EXTI13, pub EXTI14: EXTI14, pub EXTI15: EXTI15, pub GPDMA1_CH0: GPDMA1_CH0, pub GPDMA1_CH1: GPDMA1_CH1, pub GPDMA1_CH2: GPDMA1_CH2, pub GPDMA1_CH3: GPDMA1_CH3, pub GPDMA1_CH4: GPDMA1_CH4, pub GPDMA1_CH5: GPDMA1_CH5, pub GPDMA1_CH6: GPDMA1_CH6, pub GPDMA1_CH7: GPDMA1_CH7,
}
Expand description

Struct containing all the peripheral singletons.

To obtain the peripherals, you must initialize the HAL, by calling crate::init.

Fields§

§ADC4_COMMON: ADC4_COMMON

ADC4_COMMON peripheral

§AES: AES

AES peripheral

§CRC: CRC

CRC peripheral

§DBGMCU: DBGMCU

DBGMCU peripheral

§FLASH: FLASH

FLASH peripheral

§GPDMA1: GPDMA1

GPDMA1 peripheral

§PA0: PA0

PA0 peripheral

§PA1: PA1

PA1 peripheral

§PA2: PA2

PA2 peripheral

§PA3: PA3

PA3 peripheral

§PA4: PA4

PA4 peripheral

§PA5: PA5

PA5 peripheral

§PA6: PA6

PA6 peripheral

§PA7: PA7

PA7 peripheral

§PA8: PA8

PA8 peripheral

§PA9: PA9

PA9 peripheral

§PA10: PA10

PA10 peripheral

§PA11: PA11

PA11 peripheral

§PA12: PA12

PA12 peripheral

§PA13: PA13

PA13 peripheral

§PA14: PA14

PA14 peripheral

§PA15: PA15

PA15 peripheral

§PB0: PB0

PB0 peripheral

§PB1: PB1

PB1 peripheral

§PB2: PB2

PB2 peripheral

§PB3: PB3

PB3 peripheral

§PB4: PB4

PB4 peripheral

§PB5: PB5

PB5 peripheral

§PB6: PB6

PB6 peripheral

§PB7: PB7

PB7 peripheral

§PB8: PB8

PB8 peripheral

§PB9: PB9

PB9 peripheral

§PB10: PB10

PB10 peripheral

§PB11: PB11

PB11 peripheral

§PB12: PB12

PB12 peripheral

§PB13: PB13

PB13 peripheral

§PB14: PB14

PB14 peripheral

§PB15: PB15

PB15 peripheral

§PC0: PC0

PC0 peripheral

§PC1: PC1

PC1 peripheral

§PC2: PC2

PC2 peripheral

§PC3: PC3

PC3 peripheral

§PC4: PC4

PC4 peripheral

§PC5: PC5

PC5 peripheral

§PC6: PC6

PC6 peripheral

§PC7: PC7

PC7 peripheral

§PC8: PC8

PC8 peripheral

§PC9: PC9

PC9 peripheral

§PC10: PC10

PC10 peripheral

§PC11: PC11

PC11 peripheral

§PC12: PC12

PC12 peripheral

§PC13: PC13

PC13 peripheral

§PC14: PC14

PC14 peripheral

§PC15: PC15

PC15 peripheral

§PH0: PH0

PH0 peripheral

§PH1: PH1

PH1 peripheral

§PH2: PH2

PH2 peripheral

§PH3: PH3

PH3 peripheral

§PH4: PH4

PH4 peripheral

§PH5: PH5

PH5 peripheral

§PH6: PH6

PH6 peripheral

§PH7: PH7

PH7 peripheral

§PH8: PH8

PH8 peripheral

§PH9: PH9

PH9 peripheral

§PH10: PH10

PH10 peripheral

§PH11: PH11

PH11 peripheral

§PH12: PH12

PH12 peripheral

§PH13: PH13

PH13 peripheral

§PH14: PH14

PH14 peripheral

§PH15: PH15

PH15 peripheral

§HASH: HASH

HASH peripheral

§I2C1: I2C1

I2C1 peripheral

§I2C3: I2C3

I2C3 peripheral

§ICACHE: ICACHE

ICACHE peripheral

§IWDG: IWDG

IWDG peripheral

§LPTIM1: LPTIM1

LPTIM1 peripheral

§LPTIM2: LPTIM2

LPTIM2 peripheral

§LPUART1: LPUART1

LPUART1 peripheral

§PKA: PKA

PKA peripheral

§PWR: PWR

PWR peripheral

§MCO: MCO

MCO peripheral

§RCC: RCC

RCC peripheral

§RNG: RNG

RNG peripheral

§RTC: RTC

RTC peripheral

§SAES: SAES

SAES peripheral

§SPI1: SPI1

SPI1 peripheral

§SPI3: SPI3

SPI3 peripheral

§SYSCFG: SYSCFG

SYSCFG peripheral

§TIM1: TIM1

TIM1 peripheral

§TIM16: TIM16

TIM16 peripheral

§TIM17: TIM17

TIM17 peripheral

§TIM2: TIM2

TIM2 peripheral

§TSC: TSC

TSC peripheral

§UID: UID

UID peripheral

§USART1: USART1

USART1 peripheral

§USART2: USART2

USART2 peripheral

§WWDG: WWDG

WWDG peripheral

§EXTI0: EXTI0

EXTI0 peripheral

§EXTI1: EXTI1

EXTI1 peripheral

§EXTI2: EXTI2

EXTI2 peripheral

§EXTI3: EXTI3

EXTI3 peripheral

§EXTI4: EXTI4

EXTI4 peripheral

§EXTI5: EXTI5

EXTI5 peripheral

§EXTI6: EXTI6

EXTI6 peripheral

§EXTI7: EXTI7

EXTI7 peripheral

§EXTI8: EXTI8

EXTI8 peripheral

§EXTI9: EXTI9

EXTI9 peripheral

§EXTI10: EXTI10

EXTI10 peripheral

§EXTI11: EXTI11

EXTI11 peripheral

§EXTI12: EXTI12

EXTI12 peripheral

§EXTI13: EXTI13

EXTI13 peripheral

§EXTI14: EXTI14

EXTI14 peripheral

§EXTI15: EXTI15

EXTI15 peripheral

§GPDMA1_CH0: GPDMA1_CH0

GPDMA1_CH0 peripheral

§GPDMA1_CH1: GPDMA1_CH1

GPDMA1_CH1 peripheral

§GPDMA1_CH2: GPDMA1_CH2

GPDMA1_CH2 peripheral

§GPDMA1_CH3: GPDMA1_CH3

GPDMA1_CH3 peripheral

§GPDMA1_CH4: GPDMA1_CH4

GPDMA1_CH4 peripheral

§GPDMA1_CH5: GPDMA1_CH5

GPDMA1_CH5 peripheral

§GPDMA1_CH6: GPDMA1_CH6

GPDMA1_CH6 peripheral

§GPDMA1_CH7: GPDMA1_CH7

GPDMA1_CH7 peripheral

Implementations§

Source§

impl Peripherals

Source

pub unsafe fn steal() -> Self

Unsafely create an instance of this peripheral out of thin air.

§Safety

You must ensure that you’re only using one instance of this type at a time.

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.