Struct stm32_metapac::pwr::regs::Cr1
#[repr(transparent)]pub struct Cr1(pub u32);
Expand description
PWR control register 1
Tuple Fields§
§0: u32
Implementations§
§impl Cr1
impl Cr1
pub const fn lpds(&self) -> bool
pub const fn lpds(&self) -> bool
Low-power Deepsleep with SVOS3 (SVOS4 and SVOS5 always use low-power, regardless of the setting of this bit)
pub fn set_lpds(&mut self, val: bool)
pub fn set_lpds(&mut self, val: bool)
Low-power Deepsleep with SVOS3 (SVOS4 and SVOS5 always use low-power, regardless of the setting of this bit)
pub const fn pls(&self) -> u8
pub const fn pls(&self) -> u8
Programmable voltage detector level selection These bits select the voltage threshold detected by the PVD. Note: Refer to Section Electrical characteristics of the product datasheet for more details.
pub fn set_pls(&mut self, val: u8)
pub fn set_pls(&mut self, val: u8)
Programmable voltage detector level selection These bits select the voltage threshold detected by the PVD. Note: Refer to Section Electrical characteristics of the product datasheet for more details.
pub const fn dbp(&self) -> bool
pub const fn dbp(&self) -> bool
Disable backup domain write protection In reset state, the RCC_BDCR register, the RTC registers (including the backup registers), BREN and MOEN bits in PWR_CR2 register, are protected against parasitic write access. This bit must be set to enable write access to these registers.
pub fn set_dbp(&mut self, val: bool)
pub fn set_dbp(&mut self, val: bool)
Disable backup domain write protection In reset state, the RCC_BDCR register, the RTC registers (including the backup registers), BREN and MOEN bits in PWR_CR2 register, are protected against parasitic write access. This bit must be set to enable write access to these registers.
pub const fn flps(&self) -> bool
pub const fn flps(&self) -> bool
Flash low-power mode in DStop mode This bit allows to obtain the best trade-off between low-power consumption and restart time when exiting from DStop mode. When it is set, the Flash memory enters low-power mode when D1 domain is in DStop mode.
pub fn set_flps(&mut self, val: bool)
pub fn set_flps(&mut self, val: bool)
Flash low-power mode in DStop mode This bit allows to obtain the best trade-off between low-power consumption and restart time when exiting from DStop mode. When it is set, the Flash memory enters low-power mode when D1 domain is in DStop mode.
pub const fn svos(&self) -> u8
pub const fn svos(&self) -> u8
System Stop mode voltage scaling selection These bits control the VCORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance.
pub fn set_svos(&mut self, val: u8)
pub fn set_svos(&mut self, val: u8)
System Stop mode voltage scaling selection These bits control the VCORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance.