#[repr(C)]
pub struct RegisterBlock { pub cr1: Reg<CR1_SPEC>, pub csr1: Reg<CSR1_SPEC>, pub cr2: Reg<CR2_SPEC>, pub cr3: Reg<CR3_SPEC>, pub cpucr: Reg<CPUCR_SPEC>, pub d3cr: Reg<D3CR_SPEC>, pub wkupcr: Reg<WKUPCR_SPEC>, pub wkupfr: Reg<WKUPFR_SPEC>, pub wkupepr: Reg<WKUPEPR_SPEC>, /* private fields */ }
Expand description

Register block

Fields§

§cr1: Reg<CR1_SPEC>

0x00 - PWR control register 1

§csr1: Reg<CSR1_SPEC>

0x04 - PWR control status register 1

§cr2: Reg<CR2_SPEC>

0x08 - This register is not reset by wakeup from Standby mode, RESET signal and VDD POR. It is only reset by VSW POR and VSWRST reset. This register shall not be accessed when VSWRST bit in RCC_BDCR register resets the VSW domain.After reset, PWR_CR2 register is write-protected. Prior to modifying its content, the DBP bit in PWR_CR1 register must be set to disable the write protection.

§cr3: Reg<CR3_SPEC>

0x0c - Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value.

§cpucr: Reg<CPUCR_SPEC>

0x10 - This register allows controlling CPU1 power.

§d3cr: Reg<D3CR_SPEC>

0x18 - This register allows controlling D3 domain power.Following reset VOSRDY will be read 1 by software

§wkupcr: Reg<WKUPCR_SPEC>

0x20 - reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared).

§wkupfr: Reg<WKUPFR_SPEC>

0x24 - reset only by system reset, not reset by wakeup from Standby mode

§wkupepr: Reg<WKUPEPR_SPEC>

0x28 - Reset only by system reset, not reset by wakeup from Standby mode

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>,

§

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>,

§

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.