embassy-stm32

Crates

git

Versions

stm32f765zg

Flavors

embassy_stm32

Struct Peripherals

Source
pub struct Peripherals {
Show 216 fields 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 PD0: PD0, pub PD1: PD1, pub PD2: PD2, pub PD3: PD3, pub PD4: PD4, pub PD5: PD5, pub PD6: PD6, pub PD7: PD7, pub PD8: PD8, pub PD9: PD9, pub PD10: PD10, pub PD11: PD11, pub PD12: PD12, pub PD13: PD13, pub PD14: PD14, pub PD15: PD15, pub PE0: PE0, pub PE1: PE1, pub PE2: PE2, pub PE3: PE3, pub PE4: PE4, pub PE5: PE5, pub PE6: PE6, pub PE7: PE7, pub PE8: PE8, pub PE9: PE9, pub PE10: PE10, pub PE11: PE11, pub PE12: PE12, pub PE13: PE13, pub PE14: PE14, pub PE15: PE15, pub PF0: PF0, pub PF1: PF1, pub PF2: PF2, pub PF3: PF3, pub PF4: PF4, pub PF5: PF5, pub PF6: PF6, pub PF7: PF7, pub PF8: PF8, pub PF9: PF9, pub PF10: PF10, pub PF11: PF11, pub PF12: PF12, pub PF13: PF13, pub PF14: PF14, pub PF15: PF15, pub PG0: PG0, pub PG1: PG1, pub PG2: PG2, pub PG3: PG3, pub PG4: PG4, pub PG5: PG5, pub PG6: PG6, pub PG7: PG7, pub PG8: PG8, pub PG9: PG9, pub PG10: PG10, pub PG11: PG11, pub PG12: PG12, pub PG13: PG13, pub PG14: PG14, pub PG15: PG15, pub PH0: PH0, pub PH1: PH1, pub ADC1: ADC1, pub ADC123_COMMON: ADC123_COMMON, pub ADC2: ADC2, pub ADC3: ADC3, pub CAN1: CAN1, pub CAN2: CAN2, pub CAN3: CAN3, pub CEC: CEC, pub CRC: CRC, pub DAC1: DAC1, pub DBGMCU: DBGMCU, pub DCMI: DCMI, pub DMA1: DMA1, pub DMA2: DMA2, pub DMA2D: DMA2D, pub ETH: ETH, pub FLASH: FLASH, pub FMC: FMC, pub I2C1: I2C1, pub I2C2: I2C2, pub I2C3: I2C3, pub I2C4: I2C4, pub IWDG: IWDG, pub LPTIM1: LPTIM1, pub MDIOS: MDIOS, pub PWR: PWR, pub QUADSPI: QUADSPI, pub MCO1: MCO1, pub MCO2: MCO2, pub RCC: RCC, pub RNG: RNG, pub RTC: RTC, pub SAI1: SAI1, pub SAI2: SAI2, pub SDMMC1: SDMMC1, pub SDMMC2: SDMMC2, pub SPDIFRX1: SPDIFRX1, pub SPI1: SPI1, pub SPI2: SPI2, pub SPI3: SPI3, pub SPI4: SPI4, pub SPI5: SPI5, pub SPI6: SPI6, pub SYSCFG: SYSCFG, pub TIM1: TIM1, pub TIM10: TIM10, pub TIM11: TIM11, pub TIM13: TIM13, pub TIM14: TIM14, pub TIM2: TIM2, pub TIM3: TIM3, pub TIM4: TIM4, pub TIM5: TIM5, pub TIM6: TIM6, pub TIM7: TIM7, pub TIM8: TIM8, pub TIM9: TIM9, pub UART4: UART4, pub UART5: UART5, pub UART7: UART7, pub UART8: UART8, pub UID: UID, pub USART1: USART1, pub USART2: USART2, pub USART3: USART3, pub USART6: USART6, pub USB_OTG_FS: USB_OTG_FS, pub USB_OTG_HS: USB_OTG_HS, pub VREFINTCAL: VREFINTCAL, 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_CH0: DMA1_CH0, 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, pub DMA1_CH6: DMA1_CH6, pub DMA1_CH7: DMA1_CH7, pub DMA2_CH0: DMA2_CH0, pub DMA2_CH1: DMA2_CH1, pub DMA2_CH2: DMA2_CH2, pub DMA2_CH3: DMA2_CH3, pub DMA2_CH4: DMA2_CH4, pub DMA2_CH5: DMA2_CH5, pub DMA2_CH6: DMA2_CH6, pub DMA2_CH7: DMA2_CH7,
}
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

ยง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

ยงPD0: PD0

PD0 peripheral

ยงPD1: PD1

PD1 peripheral

ยงPD2: PD2

PD2 peripheral

ยงPD3: PD3

PD3 peripheral

ยงPD4: PD4

PD4 peripheral

ยงPD5: PD5

PD5 peripheral

ยงPD6: PD6

PD6 peripheral

ยงPD7: PD7

PD7 peripheral

ยงPD8: PD8

PD8 peripheral

ยงPD9: PD9

PD9 peripheral

ยงPD10: PD10

PD10 peripheral

ยงPD11: PD11

PD11 peripheral

ยงPD12: PD12

PD12 peripheral

ยงPD13: PD13

PD13 peripheral

ยงPD14: PD14

PD14 peripheral

ยงPD15: PD15

PD15 peripheral

ยงPE0: PE0

PE0 peripheral

ยงPE1: PE1

PE1 peripheral

ยงPE2: PE2

PE2 peripheral

ยงPE3: PE3

PE3 peripheral

ยงPE4: PE4

PE4 peripheral

ยงPE5: PE5

PE5 peripheral

ยงPE6: PE6

PE6 peripheral

ยงPE7: PE7

PE7 peripheral

ยงPE8: PE8

PE8 peripheral

ยงPE9: PE9

PE9 peripheral

ยงPE10: PE10

PE10 peripheral

ยงPE11: PE11

PE11 peripheral

ยงPE12: PE12

PE12 peripheral

ยงPE13: PE13

PE13 peripheral

ยงPE14: PE14

PE14 peripheral

ยงPE15: PE15

PE15 peripheral

ยงPF0: PF0

PF0 peripheral

ยงPF1: PF1

PF1 peripheral

ยงPF2: PF2

PF2 peripheral

ยงPF3: PF3

PF3 peripheral

ยงPF4: PF4

PF4 peripheral

ยงPF5: PF5

PF5 peripheral

ยงPF6: PF6

PF6 peripheral

ยงPF7: PF7

PF7 peripheral

ยงPF8: PF8

PF8 peripheral

ยงPF9: PF9

PF9 peripheral

ยงPF10: PF10

PF10 peripheral

ยงPF11: PF11

PF11 peripheral

ยงPF12: PF12

PF12 peripheral

ยงPF13: PF13

PF13 peripheral

ยงPF14: PF14

PF14 peripheral

ยงPF15: PF15

PF15 peripheral

ยงPG0: PG0

PG0 peripheral

ยงPG1: PG1

PG1 peripheral

ยงPG2: PG2

PG2 peripheral

ยงPG3: PG3

PG3 peripheral

ยงPG4: PG4

PG4 peripheral

ยงPG5: PG5

PG5 peripheral

ยงPG6: PG6

PG6 peripheral

ยงPG7: PG7

PG7 peripheral

ยงPG8: PG8

PG8 peripheral

ยงPG9: PG9

PG9 peripheral

ยงPG10: PG10

PG10 peripheral

ยงPG11: PG11

PG11 peripheral

ยงPG12: PG12

PG12 peripheral

ยงPG13: PG13

PG13 peripheral

ยงPG14: PG14

PG14 peripheral

ยงPG15: PG15

PG15 peripheral

ยงPH0: PH0

PH0 peripheral

ยงPH1: PH1

PH1 peripheral

ยงADC1: ADC1

ADC1 peripheral

ยงADC123_COMMON: ADC123_COMMON

ADC123_COMMON peripheral

ยงADC2: ADC2

ADC2 peripheral

ยงADC3: ADC3

ADC3 peripheral

ยงCAN1: CAN1

CAN1 peripheral

ยงCAN2: CAN2

CAN2 peripheral

ยงCAN3: CAN3

CAN3 peripheral

ยงCEC: CEC

CEC peripheral

ยงCRC: CRC

CRC peripheral

ยงDAC1: DAC1

DAC1 peripheral

ยงDBGMCU: DBGMCU

DBGMCU peripheral

ยงDCMI: DCMI

DCMI peripheral

ยงDMA1: DMA1

DMA1 peripheral

ยงDMA2: DMA2

DMA2 peripheral

ยงDMA2D: DMA2D

DMA2D peripheral

ยงETH: ETH

ETH peripheral

ยงFLASH: FLASH

FLASH peripheral

ยงFMC: FMC

FMC peripheral

ยงI2C1: I2C1

I2C1 peripheral

ยงI2C2: I2C2

I2C2 peripheral

ยงI2C3: I2C3

I2C3 peripheral

ยงI2C4: I2C4

I2C4 peripheral

ยงIWDG: IWDG

IWDG peripheral

ยงLPTIM1: LPTIM1

LPTIM1 peripheral

ยงMDIOS: MDIOS

MDIOS peripheral

ยงPWR: PWR

PWR peripheral

ยงQUADSPI: QUADSPI

QUADSPI peripheral

ยงMCO1: MCO1

MCO1 peripheral

ยงMCO2: MCO2

MCO2 peripheral

ยงRCC: RCC

RCC peripheral

ยงRNG: RNG

RNG peripheral

ยงRTC: RTC

RTC peripheral

ยงSAI1: SAI1

SAI1 peripheral

ยงSAI2: SAI2

SAI2 peripheral

ยงSDMMC1: SDMMC1

SDMMC1 peripheral

ยงSDMMC2: SDMMC2

SDMMC2 peripheral

ยงSPDIFRX1: SPDIFRX1

SPDIFRX1 peripheral

ยงSPI1: SPI1

SPI1 peripheral

ยงSPI2: SPI2

SPI2 peripheral

ยงSPI3: SPI3

SPI3 peripheral

ยงSPI4: SPI4

SPI4 peripheral

ยงSPI5: SPI5

SPI5 peripheral

ยงSPI6: SPI6

SPI6 peripheral

ยงSYSCFG: SYSCFG

SYSCFG peripheral

ยงTIM1: TIM1

TIM1 peripheral

ยงTIM10: TIM10

TIM10 peripheral

ยงTIM11: TIM11

TIM11 peripheral

ยงTIM13: TIM13

TIM13 peripheral

ยงTIM14: TIM14

TIM14 peripheral

ยงTIM2: TIM2

TIM2 peripheral

ยงTIM3: TIM3

TIM3 peripheral

ยงTIM4: TIM4

TIM4 peripheral

ยงTIM5: TIM5

TIM5 peripheral

ยงTIM6: TIM6

TIM6 peripheral

ยงTIM7: TIM7

TIM7 peripheral

ยงTIM8: TIM8

TIM8 peripheral

ยงTIM9: TIM9

TIM9 peripheral

ยงUART4: UART4

UART4 peripheral

ยงUART5: UART5

UART5 peripheral

ยงUART7: UART7

UART7 peripheral

ยงUART8: UART8

UART8 peripheral

ยงUID: UID

UID peripheral

ยงUSART1: USART1

USART1 peripheral

ยงUSART2: USART2

USART2 peripheral

ยงUSART3: USART3

USART3 peripheral

ยงUSART6: USART6

USART6 peripheral

ยงUSB_OTG_FS: USB_OTG_FS

USB_OTG_FS peripheral

ยงUSB_OTG_HS: USB_OTG_HS

USB_OTG_HS peripheral

ยงVREFINTCAL: VREFINTCAL

VREFINTCAL 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_CH0: DMA1_CH0

DMA1_CH0 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

ยงDMA1_CH6: DMA1_CH6

DMA1_CH6 peripheral

ยงDMA1_CH7: DMA1_CH7

DMA1_CH7 peripheral

ยงDMA2_CH0: DMA2_CH0

DMA2_CH0 peripheral

ยงDMA2_CH1: DMA2_CH1

DMA2_CH1 peripheral

ยงDMA2_CH2: DMA2_CH2

DMA2_CH2 peripheral

ยงDMA2_CH3: DMA2_CH3

DMA2_CH3 peripheral

ยงDMA2_CH4: DMA2_CH4

DMA2_CH4 peripheral

ยงDMA2_CH5: DMA2_CH5

DMA2_CH5 peripheral

ยงDMA2_CH6: DMA2_CH6

DMA2_CH6 peripheral

ยงDMA2_CH7: DMA2_CH7

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