pub struct Peripherals {Show 63 fields
pub FSMC: Periph<RegisterBlock, 2684354560>,
pub PWR: Periph<RegisterBlock, 1073770496>,
pub RCC: Periph<RegisterBlock, 1073876992>,
pub GPIOA: Periph<RegisterBlock, 1073809408>,
pub GPIOB: Periph<RegisterBlock, 1073810432>,
pub GPIOC: Periph<RegisterBlock, 1073811456>,
pub GPIOD: Periph<RegisterBlock, 1073812480>,
pub GPIOE: Periph<RegisterBlock, 1073813504>,
pub GPIOF: Periph<RegisterBlock, 1073814528>,
pub GPIOG: Periph<RegisterBlock, 1073815552>,
pub AFIO: Periph<RegisterBlock, 1073807360>,
pub EXTI: Periph<RegisterBlock, 1073808384>,
pub DMA1: Periph<RegisterBlock, 1073872896>,
pub DMA2: Periph<RegisterBlock, 1073873920>,
pub SDIO: Periph<RegisterBlock, 1073840128>,
pub RTC: Periph<RegisterBlock, 1073752064>,
pub BKP: Periph<RegisterBlock, 1073769476>,
pub IWDG: Periph<RegisterBlock, 1073754112>,
pub WWDG: Periph<RegisterBlock, 1073753088>,
pub TIM1: Periph<RegisterBlock, 1073818624>,
pub TIM8: Periph<RegisterBlock, 1073820672>,
pub TIM2: Periph<RegisterBlock, 1073741824>,
pub TIM3: Periph<RegisterBlock, 1073742848>,
pub TIM4: Periph<RegisterBlock, 1073743872>,
pub TIM5: Periph<RegisterBlock, 1073744896>,
pub TIM9: Periph<RegisterBlock, 1073826816>,
pub TIM12: Periph<RegisterBlock, 1073747968>,
pub TIM10: Periph<RegisterBlock, 1073827840>,
pub TIM11: Periph<RegisterBlock, 1073828864>,
pub TIM13: Periph<RegisterBlock, 1073748992>,
pub TIM14: Periph<RegisterBlock, 1073750016>,
pub TIM6: Periph<RegisterBlock, 1073745920>,
pub TIM7: Periph<RegisterBlock, 1073746944>,
pub I2C1: Periph<RegisterBlock, 1073763328>,
pub I2C2: Periph<RegisterBlock, 1073764352>,
pub SPI1: Periph<RegisterBlock, 1073819648>,
pub SPI2: Periph<RegisterBlock, 1073756160>,
pub SPI3: Periph<RegisterBlock, 1073757184>,
pub USART1: Periph<RegisterBlock, 1073821696>,
pub USART2: Periph<RegisterBlock, 1073759232>,
pub USART3: Periph<RegisterBlock, 1073760256>,
pub ADC1: Periph<RegisterBlock, 1073816576>,
pub ADC2: Periph<RegisterBlock, 1073817600>,
pub ADC3: Periph<RegisterBlock, 1073822720>,
pub CAN: Periph<RegisterBlock, 1073767424>,
pub DAC: Periph<RegisterBlock, 1073771520>,
pub DBGMCU: Periph<RegisterBlock, 3758366720>,
pub UART4: Periph<RegisterBlock, 1073761280>,
pub UART5: Periph<RegisterBlock, 1073762304>,
pub CRC: Periph<RegisterBlock, 1073885184>,
pub FLASH: Periph<RegisterBlock, 1073881088>,
pub USB: Periph<RegisterBlock, 1073765376>,
pub OTG_FS_DEVICE: Periph<RegisterBlock, 1342179328>,
pub OTG_FS_GLOBAL: Periph<RegisterBlock, 1342177280>,
pub OTG_FS_HOST: Periph<RegisterBlock, 1342178304>,
pub OTG_FS_PWRCLK: Periph<RegisterBlock, 1342180864>,
pub ETHERNET_MMC: Periph<RegisterBlock, 1073905920>,
pub ETHERNET_MAC: Periph<RegisterBlock, 1073905664>,
pub ETHERNET_PTP: Periph<RegisterBlock, 1073907456>,
pub ETHERNET_DMA: Periph<RegisterBlock, 1073909760>,
pub SCB_ACTRL: Periph<RegisterBlock, 3758153736>,
pub NVIC_STIR: Periph<RegisterBlock, 3758157568>,
pub STK: Periph<RegisterBlock, 3758153744>,
}Expand description
All the peripherals.
Fields§
§FSMC: Periph<RegisterBlock, 2684354560>FSMC
PWR: Periph<RegisterBlock, 1073770496>PWR
RCC: Periph<RegisterBlock, 1073876992>RCC
GPIOA: Periph<RegisterBlock, 1073809408>GPIOA
GPIOB: Periph<RegisterBlock, 1073810432>GPIOB
GPIOC: Periph<RegisterBlock, 1073811456>GPIOC
GPIOD: Periph<RegisterBlock, 1073812480>GPIOD
GPIOE: Periph<RegisterBlock, 1073813504>GPIOE
GPIOF: Periph<RegisterBlock, 1073814528>GPIOF
GPIOG: Periph<RegisterBlock, 1073815552>GPIOG
AFIO: Periph<RegisterBlock, 1073807360>AFIO
EXTI: Periph<RegisterBlock, 1073808384>EXTI
DMA1: Periph<RegisterBlock, 1073872896>DMA1
DMA2: Periph<RegisterBlock, 1073873920>DMA2
SDIO: Periph<RegisterBlock, 1073840128>SDIO
RTC: Periph<RegisterBlock, 1073752064>RTC
BKP: Periph<RegisterBlock, 1073769476>BKP
IWDG: Periph<RegisterBlock, 1073754112>IWDG
WWDG: Periph<RegisterBlock, 1073753088>WWDG
TIM1: Periph<RegisterBlock, 1073818624>TIM1
TIM8: Periph<RegisterBlock, 1073820672>TIM8
TIM2: Periph<RegisterBlock, 1073741824>TIM2
TIM3: Periph<RegisterBlock, 1073742848>TIM3
TIM4: Periph<RegisterBlock, 1073743872>TIM4
TIM5: Periph<RegisterBlock, 1073744896>TIM5
TIM9: Periph<RegisterBlock, 1073826816>TIM9
TIM12: Periph<RegisterBlock, 1073747968>TIM12
TIM10: Periph<RegisterBlock, 1073827840>TIM10
TIM11: Periph<RegisterBlock, 1073828864>TIM11
TIM13: Periph<RegisterBlock, 1073748992>TIM13
TIM14: Periph<RegisterBlock, 1073750016>TIM14
TIM6: Periph<RegisterBlock, 1073745920>TIM6
TIM7: Periph<RegisterBlock, 1073746944>TIM7
I2C1: Periph<RegisterBlock, 1073763328>I2C1
I2C2: Periph<RegisterBlock, 1073764352>I2C2
SPI1: Periph<RegisterBlock, 1073819648>SPI1
SPI2: Periph<RegisterBlock, 1073756160>SPI2
SPI3: Periph<RegisterBlock, 1073757184>SPI3
USART1: Periph<RegisterBlock, 1073821696>USART1
USART2: Periph<RegisterBlock, 1073759232>USART2
USART3: Periph<RegisterBlock, 1073760256>USART3
ADC1: Periph<RegisterBlock, 1073816576>ADC1
ADC2: Periph<RegisterBlock, 1073817600>ADC2
ADC3: Periph<RegisterBlock, 1073822720>ADC3
CAN: Periph<RegisterBlock, 1073767424>CAN
DAC: Periph<RegisterBlock, 1073771520>DAC
DBGMCU: Periph<RegisterBlock, 3758366720>DBGMCU
UART4: Periph<RegisterBlock, 1073761280>UART4
UART5: Periph<RegisterBlock, 1073762304>UART5
CRC: Periph<RegisterBlock, 1073885184>CRC
FLASH: Periph<RegisterBlock, 1073881088>FLASH
USB: Periph<RegisterBlock, 1073765376>USB
OTG_FS_DEVICE: Periph<RegisterBlock, 1342179328>OTG_FS_DEVICE
OTG_FS_GLOBAL: Periph<RegisterBlock, 1342177280>OTG_FS_GLOBAL
OTG_FS_HOST: Periph<RegisterBlock, 1342178304>OTG_FS_HOST
OTG_FS_PWRCLK: Periph<RegisterBlock, 1342180864>OTG_FS_PWRCLK
ETHERNET_MMC: Periph<RegisterBlock, 1073905920>Ethernet_MMC
ETHERNET_MAC: Periph<RegisterBlock, 1073905664>Ethernet_MAC
ETHERNET_PTP: Periph<RegisterBlock, 1073907456>Ethernet_PTP
ETHERNET_DMA: Periph<RegisterBlock, 1073909760>Ethernet_DMA
SCB_ACTRL: Periph<RegisterBlock, 3758153736>SCB_ACTRL
NVIC_STIR: Periph<RegisterBlock, 3758157568>NVIC_STIR
STK: Periph<RegisterBlock, 3758153744>STK
Implementations§
Source§impl Peripherals
impl Peripherals
Sourcepub fn take() -> Option<Peripherals>
pub fn take() -> Option<Peripherals>
Returns all the peripherals once.
Sourcepub unsafe fn steal() -> Peripherals
pub unsafe fn steal() -> Peripherals
Unchecked version of Peripherals::take.
§Safety
Each of the returned peripherals must be used at most once.
Auto Trait Implementations§
impl Freeze for Peripherals
impl !RefUnwindSafe for Peripherals
impl Send for Peripherals
impl !Sync for Peripherals
impl Unpin for Peripherals
impl UnwindSafe for Peripherals
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more