Struct 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 sram1pds(&self, n: usize) -> Srampds
pub const fn sram1pds(&self, n: usize) -> Srampds
SRAM1 page X power-down in Stop modes (Stop 0, 1) Note: The SRAM1 retention in Standby mode is controlled by R1RSBX bit in CR1.
pub fn set_sram1pds(&mut self, n: usize, val: Srampds)
pub fn set_sram1pds(&mut self, n: usize, val: Srampds)
SRAM1 page X power-down in Stop modes (Stop 0, 1) Note: The SRAM1 retention in Standby mode is controlled by R1RSBX 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 const fn sram1pds567(&self) -> Sram1pds567
pub const fn sram1pds567(&self) -> Sram1pds567
SRAM1 192KB, page 5 to 7 power-down in Stop modes
pub fn set_sram1pds567(&mut self, val: Sram1pds567)
pub fn set_sram1pds567(&mut self, val: Sram1pds567)
SRAM1 192KB, page 5 to 7 power-down in Stop modes
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 fn set_prampds(&mut self, val: Prampds)
pub fn set_prampds(&mut self, val: Prampds)
OTG SRAM power-down in Stop modes.
pub fn set_pkarampds(&mut self, val: Pkarampds)
pub fn set_pkarampds(&mut self, val: Pkarampds)
PKA SRAM power-down in Stop modes.
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.