Struct stm32_metapac::pwr::regs::Cr2
#[repr(transparent)]pub struct Cr2(pub u32);
Expand description
control register 2
Tuple Fields§
§0: u32
Implementations§
§impl Cr2
impl Cr2
pub const fn sram1pds1(&self) -> Srampds
pub const fn sram1pds1(&self) -> Srampds
SRAM1 power-down in Stop modes (Stop 0, 1) Note: The SRAM1 retention in Standby mode is controlled by R1RSB1 bit in CR1.
pub fn set_sram1pds1(&mut self, val: Srampds)
pub fn set_sram1pds1(&mut self, val: Srampds)
SRAM1 power-down in Stop modes (Stop 0, 1) Note: The SRAM1 retention in Standby mode is controlled by R1RSB1 bit in CR1.
pub const fn sram2pds1(&self) -> Srampds
pub const fn sram2pds1(&self) -> Srampds
SRAM2 power-down in Stop modes (Stop 0, 1) Note: The SRAM2 retention in Standby mode is controlled by R2RSB1 bit in CR1.
pub fn set_sram2pds1(&mut self, val: Srampds)
pub fn set_sram2pds1(&mut self, val: Srampds)
SRAM2 power-down in Stop modes (Stop 0, 1) Note: The SRAM2 retention in Standby mode is controlled by R2RSB1 bit in CR1.
pub fn set_icrampds(&mut self, val: Icrampds)
pub fn set_icrampds(&mut self, val: Icrampds)
ICACHE SRAM power-down in Stop modes (Stop 0, 1)
pub const fn flashfwu(&self) -> Flashfwu
pub const fn flashfwu(&self) -> Flashfwu
Flash memory fast wakeup from Stop modes (Stop 0, 1) This bit is used to obtain the best trade-off between low-power consumption and wakeup time when exiting the Stop 0 or Stop 1 modes. When this bit is set, the Flash memory remains in normal mode in Stop 0 and Stop 1 modes, which offers a faster startup time with higher consumption.
pub fn set_flashfwu(&mut self, val: Flashfwu)
pub fn set_flashfwu(&mut self, val: Flashfwu)
Flash memory fast wakeup from Stop modes (Stop 0, 1) This bit is used to obtain the best trade-off between low-power consumption and wakeup time when exiting the Stop 0 or Stop 1 modes. When this bit is set, the Flash memory remains in normal mode in Stop 0 and Stop 1 modes, which offers a faster startup time with higher consumption.