Struct stm32_metapac::pwr::regs::Cr1
#[repr(transparent)]pub struct Cr1(pub u32);
Expand description
control register 1
Tuple Fields§
§0: u32
Implementations§
§impl Cr1
impl Cr1
pub const fn lpms(&self) -> Lpms
pub const fn lpms(&self) -> Lpms
Low-power mode selection These bits select the low-power mode entered when the CPU enters the SleepDeep mode. 10x: Standby mode others reserved
pub fn set_lpms(&mut self, val: Lpms)
pub fn set_lpms(&mut self, val: Lpms)
Low-power mode selection These bits select the low-power mode entered when the CPU enters the SleepDeep mode. 10x: Standby mode others reserved
pub const fn r2rsb1(&self) -> bool
pub const fn r2rsb1(&self) -> bool
SRAM2 retention in Standby mode This bit is used to keep the SRAM2 content in Standby retention mode.
pub fn set_r2rsb1(&mut self, val: bool)
pub fn set_r2rsb1(&mut self, val: bool)
SRAM2 retention in Standby mode This bit is used to keep the SRAM2 content in Standby retention mode.
pub const fn ulpmen(&self) -> bool
pub const fn ulpmen(&self) -> bool
BOR0 ultra-low-power mode. This bit is used to reduce the consumption by configuring the BOR0 in discontinuous mode for Stop 1 and Standby modes. Discontinuous mode is only available when BOR levels 1 to 4 and PVD are disabled. Note: This bit must be set to reach the lowest power consumption in the low-power modes. Note: This bit must not be set together with autonomous peripherals using HSI as kernel clock. Note: When BOR level 1 to 4 or PVD is enabled continuous mode applies independent from ULPMEN.
pub fn set_ulpmen(&mut self, val: bool)
pub fn set_ulpmen(&mut self, val: bool)
BOR0 ultra-low-power mode. This bit is used to reduce the consumption by configuring the BOR0 in discontinuous mode for Stop 1 and Standby modes. Discontinuous mode is only available when BOR levels 1 to 4 and PVD are disabled. Note: This bit must be set to reach the lowest power consumption in the low-power modes. Note: This bit must not be set together with autonomous peripherals using HSI as kernel clock. Note: When BOR level 1 to 4 or PVD is enabled continuous mode applies independent from ULPMEN.
pub const fn radiorsb(&self) -> bool
pub const fn radiorsb(&self) -> bool
2.4 GHz RADIO SRAMs (RXTXRAM and Sequence RAM) and Sleep clock retention in Standby mode. This bit is used to keep the 2.4 GHz RADIO SRAMs content in Standby retention mode and the 2.4 GHz RADIO sleep timer counter operational.
pub fn set_radiorsb(&mut self, val: bool)
pub fn set_radiorsb(&mut self, val: bool)
2.4 GHz RADIO SRAMs (RXTXRAM and Sequence RAM) and Sleep clock retention in Standby mode. This bit is used to keep the 2.4 GHz RADIO SRAMs content in Standby retention mode and the 2.4 GHz RADIO sleep timer counter operational.
pub const fn r1rsb1(&self) -> bool
pub const fn r1rsb1(&self) -> bool
SRAM1 retention in Standby mode This bit is used to keep the SRAM1 content in Standby retention mode.
pub fn set_r1rsb1(&mut self, val: bool)
pub fn set_r1rsb1(&mut self, val: bool)
SRAM1 retention in Standby mode This bit is used to keep the SRAM1 content in Standby retention mode.
Trait Implementations§
impl Copy for Cr1
impl Eq for Cr1
impl StructuralPartialEq for Cr1
Auto Trait Implementations§
impl Freeze for Cr1
impl RefUnwindSafe for Cr1
impl Send for Cr1
impl Sync for Cr1
impl Unpin for Cr1
impl UnwindSafe for Cr1
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
)