embassy-stm32

Crates

git

Versions

stm32l021d4

Flavors

embassy_stm32

Struct Peripherals

Source
pub struct Peripherals {
Show 52 fields pub PA0: PA0, pub PA1: PA1, pub PA4: PA4, pub PA7: PA7, pub PA9: PA9, pub PA10: PA10, pub PA13: PA13, pub PA14: PA14, pub PB9: PB9, pub PC14: PC14, pub PC15: PC15, pub ADC1: ADC1, pub AES: AES, pub CRC: CRC, pub DBGMCU: DBGMCU, pub DMA1: DMA1, pub FLASH: FLASH, pub I2C1: I2C1, pub IWDG: IWDG, pub LPTIM1: LPTIM1, pub LPUART1: LPUART1, pub PWR: PWR, pub MCO: MCO, pub RCC: RCC, pub RTC: RTC, pub SPI1: SPI1, pub SYSCFG: SYSCFG, pub TIM2: TIM2, pub UID: UID, 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 DMA1_CH1: DMA1_CH1, pub DMA1_CH2: DMA1_CH2, pub DMA1_CH3: DMA1_CH3, pub DMA1_CH4: DMA1_CH4, pub DMA1_CH5: DMA1_CH5,
}
Expand description

Struct containing all the peripheral singletons.

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

Fields§

§PA0: PA0

PA0 peripheral

§PA1: PA1

PA1 peripheral

§PA4: PA4

PA4 peripheral

§PA7: PA7

PA7 peripheral

§PA9: PA9

PA9 peripheral

§PA10: PA10

PA10 peripheral

§PA13: PA13

PA13 peripheral

§PA14: PA14

PA14 peripheral

§PB9: PB9

PB9 peripheral

§PC14: PC14

PC14 peripheral

§PC15: PC15

PC15 peripheral

§ADC1: ADC1

ADC1 peripheral

§AES: AES

AES peripheral

§CRC: CRC

CRC peripheral

§DBGMCU: DBGMCU

DBGMCU peripheral

§DMA1: DMA1

DMA1 peripheral

§FLASH: FLASH

FLASH peripheral

§I2C1: I2C1

I2C1 peripheral

§IWDG: IWDG

IWDG peripheral

§LPTIM1: LPTIM1

LPTIM1 peripheral

§LPUART1: LPUART1

LPUART1 peripheral

§PWR: PWR

PWR peripheral

§MCO: MCO

MCO peripheral

§RCC: RCC

RCC peripheral

§RTC: RTC

RTC peripheral

§SPI1: SPI1

SPI1 peripheral

§SYSCFG: SYSCFG

SYSCFG peripheral

§TIM2: TIM2

TIM2 peripheral

§UID: UID

UID 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

§DMA1_CH1: DMA1_CH1

DMA1_CH1 peripheral

§DMA1_CH2: DMA1_CH2

DMA1_CH2 peripheral

§DMA1_CH3: DMA1_CH3

DMA1_CH3 peripheral

§DMA1_CH4: DMA1_CH4

DMA1_CH4 peripheral

§DMA1_CH5: DMA1_CH5

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