Struct stm32_metapac::pwr::regs::Pmcr
#[repr(transparent)]pub struct Pmcr(pub u32);
Expand description
PWR power mode control register.
Tuple Fields§
§0: u32
Implementations§
§impl Pmcr
impl Pmcr
pub const fn svos(&self) -> Svos
pub const fn svos(&self) -> Svos
system Stop mode voltage scaling selection These bits control the V_CORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance.
pub fn set_svos(&mut self, val: Svos)
pub fn set_svos(&mut self, val: Svos)
system Stop mode voltage scaling selection These bits control the V_CORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance.
pub const fn cssf(&self) -> bool
pub const fn cssf(&self) -> bool
clear Standby and Stop flags (always read as 0) This bit is cleared to 0 by hardware.
pub fn set_cssf(&mut self, val: bool)
pub fn set_cssf(&mut self, val: bool)
clear Standby and Stop flags (always read as 0) This bit is cleared to 0 by hardware.
pub const fn flps(&self) -> PowerModeInStopMode
pub const fn flps(&self) -> PowerModeInStopMode
Flash memory low-power mode in Stop mode This bit is used to obtain the best trade-off between low-power consumption and restart time when exiting from Stop mode. When it is set, the Flash memory enters low-power mode when the CPU domain is in Stop mode. Note: When system enters stop mode with SVOS5 enabled, Flash memory is automatically forced in low-power mode.
pub fn set_flps(&mut self, val: PowerModeInStopMode)
pub fn set_flps(&mut self, val: PowerModeInStopMode)
Flash memory low-power mode in Stop mode This bit is used to obtain the best trade-off between low-power consumption and restart time when exiting from Stop mode. When it is set, the Flash memory enters low-power mode when the CPU domain is in Stop mode. Note: When system enters stop mode with SVOS5 enabled, Flash memory is automatically forced in low-power mode.
pub const fn booste(&self) -> bool
pub const fn booste(&self) -> bool
analog switch V_BOOST control This bit enables the booster to guarantee the analog switch AC performance when the V_DD supply voltage is below 2.7 V (reduction of the total harmonic distortion to have the same switch performance over the full supply voltage range) The V_DD supply voltage can be monitored through the PVD and the PLS bits.
pub fn set_booste(&mut self, val: bool)
pub fn set_booste(&mut self, val: bool)
analog switch V_BOOST control This bit enables the booster to guarantee the analog switch AC performance when the V_DD supply voltage is below 2.7 V (reduction of the total harmonic distortion to have the same switch performance over the full supply voltage range) The V_DD supply voltage can be monitored through the PVD and the PLS bits.
pub const fn avd_ready(&self) -> bool
pub const fn avd_ready(&self) -> bool
analog voltage ready This bit is only used when the analog switch boost needs to be enabled (see BOOSTE bit). It must be set by software when the expected V_DDA analog supply level is available. The correct analog supply level is indicated by the AVDO bit (PWR_VMSR register) after setting the AVDEN bit (PWR_VMCR register) and selecting the supply level to be monitored. (ALS bits).
pub fn set_avd_ready(&mut self, val: bool)
pub fn set_avd_ready(&mut self, val: bool)
analog voltage ready This bit is only used when the analog switch boost needs to be enabled (see BOOSTE bit). It must be set by software when the expected V_DDA analog supply level is available. The correct analog supply level is indicated by the AVDO bit (PWR_VMSR register) after setting the AVDEN bit (PWR_VMCR register) and selecting the supply level to be monitored. (ALS bits).
pub const fn ethernetso(&self) -> ShutOff
pub const fn ethernetso(&self) -> ShutOff
ETHERNET RAM shut-off in Stop mode.
pub fn set_ethernetso(&mut self, val: ShutOff)
pub fn set_ethernetso(&mut self, val: ShutOff)
ETHERNET RAM shut-off in Stop mode.
pub fn set_sram3so(&mut self, val: ShutOff)
pub fn set_sram3so(&mut self, val: ShutOff)
AHB SRAM3 shut-off in Stop mode.
pub const fn sram2_16so(&self) -> ShutOff
pub const fn sram2_16so(&self) -> ShutOff
AHB SRAM2 16-Kbyte shut-off in Stop mode.
pub fn set_sram2_16so(&mut self, val: ShutOff)
pub fn set_sram2_16so(&mut self, val: ShutOff)
AHB SRAM2 16-Kbyte shut-off in Stop mode.
pub const fn sram2_48so(&self) -> ShutOff
pub const fn sram2_48so(&self) -> ShutOff
AHB SRAM2 48-Kbyte shut-off in Stop mode.
pub fn set_sram2_48so(&mut self, val: ShutOff)
pub fn set_sram2_48so(&mut self, val: ShutOff)
AHB SRAM2 48-Kbyte shut-off in Stop mode.
pub fn set_sram1so(&mut self, val: ShutOff)
pub fn set_sram1so(&mut self, val: ShutOff)
AHB SRAM1 shut-off in Stop mode.