Struct stm32f4_staging::stm32f407::RCC
source · pub struct RCC { /* private fields */ }Expand description
Reset and clock control
Implementations§
source§impl RCC
impl RCC
sourcepub const PTR: *const RegisterBlock = {0x40023800 as *const stm32f407::rcc::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40023800 as *const stm32f407::rcc::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn ahb1lpenr(&self) -> &AHB1LPENR
pub fn ahb1lpenr(&self) -> &AHB1LPENR
0x50 - AHB1 peripheral clock enable in low power mode register
sourcepub fn ahb2lpenr(&self) -> &AHB2LPENR
pub fn ahb2lpenr(&self) -> &AHB2LPENR
0x54 - AHB2 peripheral clock enable in low power mode register
sourcepub fn ahb3lpenr(&self) -> &AHB3LPENR
pub fn ahb3lpenr(&self) -> &AHB3LPENR
0x58 - AHB3 peripheral clock enable in low power mode register
sourcepub fn apb1lpenr(&self) -> &APB1LPENR
pub fn apb1lpenr(&self) -> &APB1LPENR
0x60 - APB1 peripheral clock enable in low power mode register
sourcepub fn apb2lpenr(&self) -> &APB2LPENR
pub fn apb2lpenr(&self) -> &APB2LPENR
0x64 - APB2 peripheral clock enabled in low power mode register
sourcepub fn plli2scfgr(&self) -> &PLLI2SCFGR
pub fn plli2scfgr(&self) -> &PLLI2SCFGR
0x84 - PLLI2S configuration register