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.
Trait Implementations§
impl Copy for Cr2
impl Eq for Cr2
impl StructuralPartialEq for Cr2
Auto Trait Implementations§
impl Freeze for Cr2
impl RefUnwindSafe for Cr2
impl Send for Cr2
impl Sync for Cr2
impl Unpin for Cr2
impl UnwindSafe for Cr2
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)