embassy-stm32

Crates

0.3.0

Versions

stm32f103zd

Flavors

Struct Peripherals

Source
pub struct Peripherals {
Show 180 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 PB11: Peri<'static, PB11>, 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 PD3: Peri<'static, PD3>, pub PD4: Peri<'static, PD4>, pub PD5: Peri<'static, PD5>, pub PD6: Peri<'static, PD6>, pub PD7: Peri<'static, PD7>, pub PD8: Peri<'static, PD8>, pub PD9: Peri<'static, PD9>, pub PD10: Peri<'static, PD10>, pub PD11: Peri<'static, PD11>, 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 PE4: Peri<'static, PE4>, pub PE5: Peri<'static, PE5>, pub PE6: Peri<'static, PE6>, pub PE7: Peri<'static, PE7>, pub PE8: Peri<'static, PE8>, pub PE9: Peri<'static, PE9>, pub PE10: Peri<'static, PE10>, pub PE11: Peri<'static, PE11>, pub PE12: Peri<'static, PE12>, pub PE13: Peri<'static, PE13>, pub PE14: Peri<'static, PE14>, pub PE15: Peri<'static, PE15>, pub PF0: Peri<'static, PF0>, pub PF1: Peri<'static, PF1>, pub PF2: Peri<'static, PF2>, pub PF3: Peri<'static, PF3>, pub PF4: Peri<'static, PF4>, pub PF5: Peri<'static, PF5>, pub PF6: Peri<'static, PF6>, pub PF7: Peri<'static, PF7>, pub PF8: Peri<'static, PF8>, pub PF9: Peri<'static, PF9>, pub PF10: Peri<'static, PF10>, pub PF11: Peri<'static, PF11>, pub PF12: Peri<'static, PF12>, pub PF13: Peri<'static, PF13>, pub PF14: Peri<'static, PF14>, pub PF15: Peri<'static, PF15>, pub PG0: Peri<'static, PG0>, pub PG1: Peri<'static, PG1>, pub PG2: Peri<'static, PG2>, pub PG3: Peri<'static, PG3>, pub PG4: Peri<'static, PG4>, pub PG5: Peri<'static, PG5>, pub PG6: Peri<'static, PG6>, pub PG7: Peri<'static, PG7>, pub PG8: Peri<'static, PG8>, pub PG9: Peri<'static, PG9>, pub PG10: Peri<'static, PG10>, pub PG11: Peri<'static, PG11>, pub PG12: Peri<'static, PG12>, pub PG13: Peri<'static, PG13>, pub PG14: Peri<'static, PG14>, pub PG15: Peri<'static, PG15>, pub ADC1: Peri<'static, ADC1>, pub ADC2: Peri<'static, ADC2>, pub ADC3: Peri<'static, ADC3>, pub AFIO: Peri<'static, AFIO>, pub BKP: Peri<'static, BKP>, pub CAN: Peri<'static, CAN>, pub CRC: Peri<'static, CRC>, pub DAC1: Peri<'static, DAC1>, pub DBGMCU: Peri<'static, DBGMCU>, pub DMA1: Peri<'static, DMA1>, pub DMA2: Peri<'static, DMA2>, pub FLASH: Peri<'static, FLASH>, pub FSMC: Peri<'static, FSMC>, pub I2C1: Peri<'static, I2C1>, pub I2C2: Peri<'static, I2C2>, pub IWDG: Peri<'static, IWDG>, pub PWR: Peri<'static, PWR>, pub MCO: Peri<'static, MCO>, pub RCC: Peri<'static, RCC>, pub RTC: Peri<'static, RTC>, pub SDIO: Peri<'static, SDIO>, pub SPI1: Peri<'static, SPI1>, pub SPI2: Peri<'static, SPI2>, pub SPI3: Peri<'static, SPI3>, pub TIM1: Peri<'static, TIM1>, pub TIM2: Peri<'static, TIM2>, pub TIM3: Peri<'static, TIM3>, 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 UID: Peri<'static, UID>, pub USART1: Peri<'static, USART1>, pub USART2: Peri<'static, USART2>, pub USART3: Peri<'static, USART3>, pub USB: Peri<'static, USB>, pub USBRAM: Peri<'static, USBRAM>, pub WWDG: Peri<'static, WWDG>, 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 DMA1_CH1: Peri<'static, DMA1_CH1>, pub DMA1_CH2: Peri<'static, DMA1_CH2>, pub DMA1_CH3: Peri<'static, DMA1_CH3>, pub DMA1_CH4: Peri<'static, DMA1_CH4>, pub DMA1_CH5: Peri<'static, DMA1_CH5>, pub DMA1_CH6: Peri<'static, DMA1_CH6>, pub DMA1_CH7: Peri<'static, DMA1_CH7>, pub DMA2_CH1: Peri<'static, DMA2_CH1>, pub DMA2_CH2: Peri<'static, DMA2_CH2>, pub DMA2_CH3: Peri<'static, DMA2_CH3>, pub DMA2_CH4: Peri<'static, DMA2_CH4>, pub DMA2_CH5: Peri<'static, DMA2_CH5>,
}
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

ยงPB11: Peri<'static, PB11>

PB11 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

ยงPD3: Peri<'static, PD3>

PD3 peripheral

ยงPD4: Peri<'static, PD4>

PD4 peripheral

ยงPD5: Peri<'static, PD5>

PD5 peripheral

ยงPD6: Peri<'static, PD6>

PD6 peripheral

ยงPD7: Peri<'static, PD7>

PD7 peripheral

ยงPD8: Peri<'static, PD8>

PD8 peripheral

ยงPD9: Peri<'static, PD9>

PD9 peripheral

ยงPD10: Peri<'static, PD10>

PD10 peripheral

ยงPD11: Peri<'static, PD11>

PD11 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

ยงPE4: Peri<'static, PE4>

PE4 peripheral

ยงPE5: Peri<'static, PE5>

PE5 peripheral

ยงPE6: Peri<'static, PE6>

PE6 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

ยงPE11: Peri<'static, PE11>

PE11 peripheral

ยงPE12: Peri<'static, PE12>

PE12 peripheral

ยงPE13: Peri<'static, PE13>

PE13 peripheral

ยงPE14: Peri<'static, PE14>

PE14 peripheral

ยงPE15: Peri<'static, PE15>

PE15 peripheral

ยงPF0: Peri<'static, PF0>

PF0 peripheral

ยงPF1: Peri<'static, PF1>

PF1 peripheral

ยงPF2: Peri<'static, PF2>

PF2 peripheral

ยงPF3: Peri<'static, PF3>

PF3 peripheral

ยงPF4: Peri<'static, PF4>

PF4 peripheral

ยงPF5: Peri<'static, PF5>

PF5 peripheral

ยงPF6: Peri<'static, PF6>

PF6 peripheral

ยงPF7: Peri<'static, PF7>

PF7 peripheral

ยงPF8: Peri<'static, PF8>

PF8 peripheral

ยงPF9: Peri<'static, PF9>

PF9 peripheral

ยงPF10: Peri<'static, PF10>

PF10 peripheral

ยงPF11: Peri<'static, PF11>

PF11 peripheral

ยงPF12: Peri<'static, PF12>

PF12 peripheral

ยงPF13: Peri<'static, PF13>

PF13 peripheral

ยงPF14: Peri<'static, PF14>

PF14 peripheral

ยงPF15: Peri<'static, PF15>

PF15 peripheral

ยงPG0: Peri<'static, PG0>

PG0 peripheral

ยงPG1: Peri<'static, PG1>

PG1 peripheral

ยงPG2: Peri<'static, PG2>

PG2 peripheral

ยงPG3: Peri<'static, PG3>

PG3 peripheral

ยงPG4: Peri<'static, PG4>

PG4 peripheral

ยงPG5: Peri<'static, PG5>

PG5 peripheral

ยงPG6: Peri<'static, PG6>

PG6 peripheral

ยงPG7: Peri<'static, PG7>

PG7 peripheral

ยงPG8: Peri<'static, PG8>

PG8 peripheral

ยงPG9: Peri<'static, PG9>

PG9 peripheral

ยงPG10: Peri<'static, PG10>

PG10 peripheral

ยงPG11: Peri<'static, PG11>

PG11 peripheral

ยงPG12: Peri<'static, PG12>

PG12 peripheral

ยงPG13: Peri<'static, PG13>

PG13 peripheral

ยงPG14: Peri<'static, PG14>

PG14 peripheral

ยงPG15: Peri<'static, PG15>

PG15 peripheral

ยงADC1: Peri<'static, ADC1>

ADC1 peripheral

ยงADC2: Peri<'static, ADC2>

ADC2 peripheral

ยงADC3: Peri<'static, ADC3>

ADC3 peripheral

ยงAFIO: Peri<'static, AFIO>

AFIO peripheral

ยงBKP: Peri<'static, BKP>

BKP peripheral

ยงCAN: Peri<'static, CAN>

CAN peripheral

ยงCRC: Peri<'static, CRC>

CRC peripheral

ยงDAC1: Peri<'static, DAC1>

DAC1 peripheral

ยงDBGMCU: Peri<'static, DBGMCU>

DBGMCU peripheral

ยงDMA1: Peri<'static, DMA1>

DMA1 peripheral

ยงDMA2: Peri<'static, DMA2>

DMA2 peripheral

ยงFLASH: Peri<'static, FLASH>

FLASH peripheral

ยงFSMC: Peri<'static, FSMC>

FSMC peripheral

ยงI2C1: Peri<'static, I2C1>

I2C1 peripheral

ยงI2C2: Peri<'static, I2C2>

I2C2 peripheral

ยงIWDG: Peri<'static, IWDG>

IWDG peripheral

ยงPWR: Peri<'static, PWR>

PWR peripheral

ยงMCO: Peri<'static, MCO>

MCO peripheral

ยงRCC: Peri<'static, RCC>

RCC peripheral

ยงRTC: Peri<'static, RTC>

RTC peripheral

ยงSDIO: Peri<'static, SDIO>

SDIO peripheral

ยงSPI1: Peri<'static, SPI1>

SPI1 peripheral

ยงSPI2: Peri<'static, SPI2>

SPI2 peripheral

ยงSPI3: Peri<'static, SPI3>

SPI3 peripheral

ยงTIM1: Peri<'static, TIM1>

TIM1 peripheral

ยงTIM2: Peri<'static, TIM2>

TIM2 peripheral

ยงTIM3: Peri<'static, TIM3>

TIM3 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

ยงUID: Peri<'static, UID>

UID peripheral

ยงUSART1: Peri<'static, USART1>

USART1 peripheral

ยงUSART2: Peri<'static, USART2>

USART2 peripheral

ยงUSART3: Peri<'static, USART3>

USART3 peripheral

ยงUSB: Peri<'static, USB>

USB peripheral

ยงUSBRAM: Peri<'static, USBRAM>

USBRAM peripheral

ยงWWDG: Peri<'static, WWDG>

WWDG 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

ยงDMA1_CH1: Peri<'static, DMA1_CH1>

DMA1_CH1 peripheral

ยงDMA1_CH2: Peri<'static, DMA1_CH2>

DMA1_CH2 peripheral

ยงDMA1_CH3: Peri<'static, DMA1_CH3>

DMA1_CH3 peripheral

ยงDMA1_CH4: Peri<'static, DMA1_CH4>

DMA1_CH4 peripheral

ยงDMA1_CH5: Peri<'static, DMA1_CH5>

DMA1_CH5 peripheral

ยงDMA1_CH6: Peri<'static, DMA1_CH6>

DMA1_CH6 peripheral

ยงDMA1_CH7: Peri<'static, DMA1_CH7>

DMA1_CH7 peripheral

ยงDMA2_CH1: Peri<'static, DMA2_CH1>

DMA2_CH1 peripheral

ยงDMA2_CH2: Peri<'static, DMA2_CH2>

DMA2_CH2 peripheral

ยงDMA2_CH3: Peri<'static, DMA2_CH3>

DMA2_CH3 peripheral

ยงDMA2_CH4: Peri<'static, DMA2_CH4>

DMA2_CH4 peripheral

ยงDMA2_CH5: Peri<'static, DMA2_CH5>

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