embassy-stm32

Crates

git

Versions

stm32c593me

Flavors

Skip to main content

Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 149 fields pub PA0: Peri<'static, PA0>, pub PA1: Peri<'static, PA1>, pub PA2: Peri<'static, PA2>, pub PA3: Peri<'static, PA3>, pub PA4: Peri<'static, PA4>, pub PA5: Peri<'static, PA5>, pub PA6: Peri<'static, PA6>, pub PA7: Peri<'static, PA7>, pub PA8: Peri<'static, PA8>, pub PA9: Peri<'static, PA9>, pub PA10: Peri<'static, PA10>, pub PA11: Peri<'static, PA11>, pub PA12: Peri<'static, PA12>, pub PA13: Peri<'static, PA13>, pub PA14: Peri<'static, PA14>, pub PA15: Peri<'static, PA15>, pub PB0: Peri<'static, PB0>, pub PB1: Peri<'static, PB1>, pub PB2: Peri<'static, PB2>, pub PB3: Peri<'static, PB3>, pub PB4: Peri<'static, PB4>, pub PB5: Peri<'static, PB5>, pub PB6: Peri<'static, PB6>, pub PB7: Peri<'static, PB7>, pub PB8: Peri<'static, PB8>, pub PB9: Peri<'static, PB9>, pub PB10: Peri<'static, PB10>, pub PB12: Peri<'static, PB12>, pub PB13: Peri<'static, PB13>, pub PB14: Peri<'static, PB14>, pub PB15: Peri<'static, PB15>, pub PC0: Peri<'static, PC0>, pub PC1: Peri<'static, PC1>, pub PC2: Peri<'static, PC2>, pub PC3: Peri<'static, PC3>, pub PC4: Peri<'static, PC4>, pub PC5: Peri<'static, PC5>, pub PC6: Peri<'static, PC6>, pub PC7: Peri<'static, PC7>, pub PC8: Peri<'static, PC8>, pub PC9: Peri<'static, PC9>, pub PC10: Peri<'static, PC10>, pub PC11: Peri<'static, PC11>, pub PC12: Peri<'static, PC12>, pub PC13: Peri<'static, PC13>, pub PC14: Peri<'static, PC14>, pub PC15: Peri<'static, PC15>, pub PD0: Peri<'static, PD0>, pub PD1: Peri<'static, PD1>, pub PD2: Peri<'static, PD2>, pub PD12: Peri<'static, PD12>, pub PD13: Peri<'static, PD13>, pub PD14: Peri<'static, PD14>, pub PD15: Peri<'static, PD15>, pub PE0: Peri<'static, PE0>, pub PE1: Peri<'static, PE1>, pub PE2: Peri<'static, PE2>, pub PE3: Peri<'static, PE3>, pub PE7: Peri<'static, PE7>, pub PE8: Peri<'static, PE8>, pub PE9: Peri<'static, PE9>, pub PE10: Peri<'static, PE10>, pub PH0: Peri<'static, PH0>, pub PH1: Peri<'static, PH1>, pub PH2: Peri<'static, PH2>, pub PH5: Peri<'static, PH5>, pub ADC1: Peri<'static, ADC1>, pub ADC12_COMMON: Peri<'static, ADC12_COMMON>, pub ADC2: Peri<'static, ADC2>, pub ADC3: Peri<'static, ADC3>, pub ADC3_COMMON: Peri<'static, ADC3_COMMON>, pub CORDIC: Peri<'static, CORDIC>, pub DBGMCU: Peri<'static, DBGMCU>, pub ETH1: Peri<'static, ETH1>, pub ETH_SMA: Peri<'static, ETH_SMA>, pub FDCAN1: Peri<'static, FDCAN1>, pub FDCAN2: Peri<'static, FDCAN2>, pub FDCANRAM: Peri<'static, FDCANRAM>, pub FDCANRAM1: Peri<'static, FDCANRAM1>, pub FDCANRAM2: Peri<'static, FDCANRAM2>, pub FLASH: Peri<'static, FLASH>, pub I2C1: Peri<'static, I2C1>, pub I2C2: Peri<'static, I2C2>, pub I3C1: Peri<'static, I3C1>, pub LPDMA1: Peri<'static, LPDMA1>, pub LPDMA2: Peri<'static, LPDMA2>, pub LPUART1: Peri<'static, LPUART1>, pub PWR: Peri<'static, PWR>, pub MCO1: Peri<'static, MCO1>, pub MCO2: Peri<'static, MCO2>, pub RCC: Peri<'static, RCC>, pub RNG: Peri<'static, RNG>, pub SPI1: Peri<'static, SPI1>, pub SPI2: Peri<'static, SPI2>, pub SPI3: Peri<'static, SPI3>, pub SYSCFG: Peri<'static, SYSCFG>, pub TIM1: Peri<'static, TIM1>, pub TIM15: Peri<'static, TIM15>, pub TIM16: Peri<'static, TIM16>, pub TIM17: Peri<'static, TIM17>, pub TIM2: Peri<'static, TIM2>, pub TIM3: Peri<'static, TIM3>, pub TIM4: Peri<'static, TIM4>, pub TIM5: Peri<'static, TIM5>, pub TIM6: Peri<'static, TIM6>, pub TIM7: Peri<'static, TIM7>, pub TIM8: Peri<'static, TIM8>, pub UART4: Peri<'static, UART4>, pub UART5: Peri<'static, UART5>, pub UART7: Peri<'static, UART7>, pub UID: Peri<'static, UID>, pub USART1: Peri<'static, USART1>, pub USART2: Peri<'static, USART2>, pub USART3: Peri<'static, USART3>, pub USART6: Peri<'static, USART6>, pub USB: Peri<'static, USB>, pub USBRAM: Peri<'static, USBRAM>, pub EXTI0: Peri<'static, EXTI0>, pub EXTI1: Peri<'static, EXTI1>, pub EXTI2: Peri<'static, EXTI2>, pub EXTI3: Peri<'static, EXTI3>, pub EXTI4: Peri<'static, EXTI4>, pub EXTI5: Peri<'static, EXTI5>, pub EXTI6: Peri<'static, EXTI6>, pub EXTI7: Peri<'static, EXTI7>, pub EXTI8: Peri<'static, EXTI8>, pub EXTI9: Peri<'static, EXTI9>, pub EXTI10: Peri<'static, EXTI10>, pub EXTI11: Peri<'static, EXTI11>, pub EXTI12: Peri<'static, EXTI12>, pub EXTI13: Peri<'static, EXTI13>, pub EXTI14: Peri<'static, EXTI14>, pub EXTI15: Peri<'static, EXTI15>, pub LPDMA1_CH0: Peri<'static, LPDMA1_CH0>, pub LPDMA1_CH1: Peri<'static, LPDMA1_CH1>, pub LPDMA1_CH2: Peri<'static, LPDMA1_CH2>, pub LPDMA1_CH3: Peri<'static, LPDMA1_CH3>, pub LPDMA1_CH4: Peri<'static, LPDMA1_CH4>, pub LPDMA1_CH5: Peri<'static, LPDMA1_CH5>, pub LPDMA1_CH6: Peri<'static, LPDMA1_CH6>, pub LPDMA1_CH7: Peri<'static, LPDMA1_CH7>, pub LPDMA2_CH0: Peri<'static, LPDMA2_CH0>, pub LPDMA2_CH1: Peri<'static, LPDMA2_CH1>, pub LPDMA2_CH2: Peri<'static, LPDMA2_CH2>, pub LPDMA2_CH3: Peri<'static, LPDMA2_CH3>, pub LPDMA2_CH4: Peri<'static, LPDMA2_CH4>, pub LPDMA2_CH5: Peri<'static, LPDMA2_CH5>, pub LPDMA2_CH6: Peri<'static, LPDMA2_CH6>, pub LPDMA2_CH7: Peri<'static, LPDMA2_CH7>,
}
Expand description

Struct containing all the peripheral singletons.

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

Fieldsยง

ยงPA0: Peri<'static, PA0>

PA0 peripheral

ยงPA1: Peri<'static, PA1>

PA1 peripheral

ยงPA2: Peri<'static, PA2>

PA2 peripheral

ยงPA3: Peri<'static, PA3>

PA3 peripheral

ยงPA4: Peri<'static, PA4>

PA4 peripheral

ยงPA5: Peri<'static, PA5>

PA5 peripheral

ยงPA6: Peri<'static, PA6>

PA6 peripheral

ยงPA7: Peri<'static, PA7>

PA7 peripheral

ยงPA8: Peri<'static, PA8>

PA8 peripheral

ยงPA9: Peri<'static, PA9>

PA9 peripheral

ยงPA10: Peri<'static, PA10>

PA10 peripheral

ยงPA11: Peri<'static, PA11>

PA11 peripheral

ยงPA12: Peri<'static, PA12>

PA12 peripheral

ยงPA13: Peri<'static, PA13>

PA13 peripheral

ยงPA14: Peri<'static, PA14>

PA14 peripheral

ยงPA15: Peri<'static, PA15>

PA15 peripheral

ยงPB0: Peri<'static, PB0>

PB0 peripheral

ยงPB1: Peri<'static, PB1>

PB1 peripheral

ยงPB2: Peri<'static, PB2>

PB2 peripheral

ยงPB3: Peri<'static, PB3>

PB3 peripheral

ยงPB4: Peri<'static, PB4>

PB4 peripheral

ยงPB5: Peri<'static, PB5>

PB5 peripheral

ยงPB6: Peri<'static, PB6>

PB6 peripheral

ยงPB7: Peri<'static, PB7>

PB7 peripheral

ยงPB8: Peri<'static, PB8>

PB8 peripheral

ยงPB9: Peri<'static, PB9>

PB9 peripheral

ยงPB10: Peri<'static, PB10>

PB10 peripheral

ยงPB12: Peri<'static, PB12>

PB12 peripheral

ยงPB13: Peri<'static, PB13>

PB13 peripheral

ยงPB14: Peri<'static, PB14>

PB14 peripheral

ยงPB15: Peri<'static, PB15>

PB15 peripheral

ยงPC0: Peri<'static, PC0>

PC0 peripheral

ยงPC1: Peri<'static, PC1>

PC1 peripheral

ยงPC2: Peri<'static, PC2>

PC2 peripheral

ยงPC3: Peri<'static, PC3>

PC3 peripheral

ยงPC4: Peri<'static, PC4>

PC4 peripheral

ยงPC5: Peri<'static, PC5>

PC5 peripheral

ยงPC6: Peri<'static, PC6>

PC6 peripheral

ยงPC7: Peri<'static, PC7>

PC7 peripheral

ยงPC8: Peri<'static, PC8>

PC8 peripheral

ยงPC9: Peri<'static, PC9>

PC9 peripheral

ยงPC10: Peri<'static, PC10>

PC10 peripheral

ยงPC11: Peri<'static, PC11>

PC11 peripheral

ยงPC12: Peri<'static, PC12>

PC12 peripheral

ยงPC13: Peri<'static, PC13>

PC13 peripheral

ยงPC14: Peri<'static, PC14>

PC14 peripheral

ยงPC15: Peri<'static, PC15>

PC15 peripheral

ยงPD0: Peri<'static, PD0>

PD0 peripheral

ยงPD1: Peri<'static, PD1>

PD1 peripheral

ยงPD2: Peri<'static, PD2>

PD2 peripheral

ยงPD12: Peri<'static, PD12>

PD12 peripheral

ยงPD13: Peri<'static, PD13>

PD13 peripheral

ยงPD14: Peri<'static, PD14>

PD14 peripheral

ยงPD15: Peri<'static, PD15>

PD15 peripheral

ยงPE0: Peri<'static, PE0>

PE0 peripheral

ยงPE1: Peri<'static, PE1>

PE1 peripheral

ยงPE2: Peri<'static, PE2>

PE2 peripheral

ยงPE3: Peri<'static, PE3>

PE3 peripheral

ยงPE7: Peri<'static, PE7>

PE7 peripheral

ยงPE8: Peri<'static, PE8>

PE8 peripheral

ยงPE9: Peri<'static, PE9>

PE9 peripheral

ยงPE10: Peri<'static, PE10>

PE10 peripheral

ยงPH0: Peri<'static, PH0>

PH0 peripheral

ยงPH1: Peri<'static, PH1>

PH1 peripheral

ยงPH2: Peri<'static, PH2>

PH2 peripheral

ยงPH5: Peri<'static, PH5>

PH5 peripheral

ยงADC1: Peri<'static, ADC1>

ADC1 peripheral

ยงADC12_COMMON: Peri<'static, ADC12_COMMON>

ADC12_COMMON peripheral

ยงADC2: Peri<'static, ADC2>

ADC2 peripheral

ยงADC3: Peri<'static, ADC3>

ADC3 peripheral

ยงADC3_COMMON: Peri<'static, ADC3_COMMON>

ADC3_COMMON peripheral

ยงCORDIC: Peri<'static, CORDIC>

CORDIC peripheral

ยงDBGMCU: Peri<'static, DBGMCU>

DBGMCU peripheral

ยงETH1: Peri<'static, ETH1>

ETH1 peripheral

ยงETH_SMA: Peri<'static, ETH_SMA>

ETH_SMA peripheral

ยงFDCAN1: Peri<'static, FDCAN1>

FDCAN1 peripheral

ยงFDCAN2: Peri<'static, FDCAN2>

FDCAN2 peripheral

ยงFDCANRAM: Peri<'static, FDCANRAM>

FDCANRAM peripheral

ยงFDCANRAM1: Peri<'static, FDCANRAM1>

FDCANRAM1 peripheral

ยงFDCANRAM2: Peri<'static, FDCANRAM2>

FDCANRAM2 peripheral

ยงFLASH: Peri<'static, FLASH>

FLASH peripheral

ยงI2C1: Peri<'static, I2C1>

I2C1 peripheral

ยงI2C2: Peri<'static, I2C2>

I2C2 peripheral

ยงI3C1: Peri<'static, I3C1>

I3C1 peripheral

ยงLPDMA1: Peri<'static, LPDMA1>

LPDMA1 peripheral

ยงLPDMA2: Peri<'static, LPDMA2>

LPDMA2 peripheral

ยงLPUART1: Peri<'static, LPUART1>

LPUART1 peripheral

ยงPWR: Peri<'static, PWR>

PWR peripheral

ยงMCO1: Peri<'static, MCO1>

MCO1 peripheral

ยงMCO2: Peri<'static, MCO2>

MCO2 peripheral

ยงRCC: Peri<'static, RCC>

RCC peripheral

ยงRNG: Peri<'static, RNG>

RNG peripheral

ยงSPI1: Peri<'static, SPI1>

SPI1 peripheral

ยงSPI2: Peri<'static, SPI2>

SPI2 peripheral

ยงSPI3: Peri<'static, SPI3>

SPI3 peripheral

ยงSYSCFG: Peri<'static, SYSCFG>

SYSCFG peripheral

ยงTIM1: Peri<'static, TIM1>

TIM1 peripheral

ยงTIM15: Peri<'static, TIM15>

TIM15 peripheral

ยงTIM16: Peri<'static, TIM16>

TIM16 peripheral

ยงTIM17: Peri<'static, TIM17>

TIM17 peripheral

ยงTIM2: Peri<'static, TIM2>

TIM2 peripheral

ยงTIM3: Peri<'static, TIM3>

TIM3 peripheral

ยงTIM4: Peri<'static, TIM4>

TIM4 peripheral

ยงTIM5: Peri<'static, TIM5>

TIM5 peripheral

ยงTIM6: Peri<'static, TIM6>

TIM6 peripheral

ยงTIM7: Peri<'static, TIM7>

TIM7 peripheral

ยงTIM8: Peri<'static, TIM8>

TIM8 peripheral

ยงUART4: Peri<'static, UART4>

UART4 peripheral

ยงUART5: Peri<'static, UART5>

UART5 peripheral

ยงUART7: Peri<'static, UART7>

UART7 peripheral

ยงUID: Peri<'static, UID>

UID peripheral

ยงUSART1: Peri<'static, USART1>

USART1 peripheral

ยงUSART2: Peri<'static, USART2>

USART2 peripheral

ยงUSART3: Peri<'static, USART3>

USART3 peripheral

ยงUSART6: Peri<'static, USART6>

USART6 peripheral

ยงUSB: Peri<'static, USB>

USB peripheral

ยงUSBRAM: Peri<'static, USBRAM>

USBRAM peripheral

ยงEXTI0: Peri<'static, EXTI0>

EXTI0 peripheral

ยงEXTI1: Peri<'static, EXTI1>

EXTI1 peripheral

ยงEXTI2: Peri<'static, EXTI2>

EXTI2 peripheral

ยงEXTI3: Peri<'static, EXTI3>

EXTI3 peripheral

ยงEXTI4: Peri<'static, EXTI4>

EXTI4 peripheral

ยงEXTI5: Peri<'static, EXTI5>

EXTI5 peripheral

ยงEXTI6: Peri<'static, EXTI6>

EXTI6 peripheral

ยงEXTI7: Peri<'static, EXTI7>

EXTI7 peripheral

ยงEXTI8: Peri<'static, EXTI8>

EXTI8 peripheral

ยงEXTI9: Peri<'static, EXTI9>

EXTI9 peripheral

ยงEXTI10: Peri<'static, EXTI10>

EXTI10 peripheral

ยงEXTI11: Peri<'static, EXTI11>

EXTI11 peripheral

ยงEXTI12: Peri<'static, EXTI12>

EXTI12 peripheral

ยงEXTI13: Peri<'static, EXTI13>

EXTI13 peripheral

ยงEXTI14: Peri<'static, EXTI14>

EXTI14 peripheral

ยงEXTI15: Peri<'static, EXTI15>

EXTI15 peripheral

ยงLPDMA1_CH0: Peri<'static, LPDMA1_CH0>

LPDMA1_CH0 peripheral

ยงLPDMA1_CH1: Peri<'static, LPDMA1_CH1>

LPDMA1_CH1 peripheral

ยงLPDMA1_CH2: Peri<'static, LPDMA1_CH2>

LPDMA1_CH2 peripheral

ยงLPDMA1_CH3: Peri<'static, LPDMA1_CH3>

LPDMA1_CH3 peripheral

ยงLPDMA1_CH4: Peri<'static, LPDMA1_CH4>

LPDMA1_CH4 peripheral

ยงLPDMA1_CH5: Peri<'static, LPDMA1_CH5>

LPDMA1_CH5 peripheral

ยงLPDMA1_CH6: Peri<'static, LPDMA1_CH6>

LPDMA1_CH6 peripheral

ยงLPDMA1_CH7: Peri<'static, LPDMA1_CH7>

LPDMA1_CH7 peripheral

ยงLPDMA2_CH0: Peri<'static, LPDMA2_CH0>

LPDMA2_CH0 peripheral

ยงLPDMA2_CH1: Peri<'static, LPDMA2_CH1>

LPDMA2_CH1 peripheral

ยงLPDMA2_CH2: Peri<'static, LPDMA2_CH2>

LPDMA2_CH2 peripheral

ยงLPDMA2_CH3: Peri<'static, LPDMA2_CH3>

LPDMA2_CH3 peripheral

ยงLPDMA2_CH4: Peri<'static, LPDMA2_CH4>

LPDMA2_CH4 peripheral

ยงLPDMA2_CH5: Peri<'static, LPDMA2_CH5>

LPDMA2_CH5 peripheral

ยงLPDMA2_CH6: Peri<'static, LPDMA2_CH6>

LPDMA2_CH6 peripheral

ยงLPDMA2_CH7: Peri<'static, LPDMA2_CH7>

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