Struct stm32_metapac::pwr::regs::Bdcr1
#[repr(transparent)]pub struct Bdcr1(pub u32);
Expand description
Backup domain control register 1
Tuple Fields§
§0: u32
Implementations§
§impl Bdcr1
impl Bdcr1
pub const fn bren(&self) -> bool
pub const fn bren(&self) -> bool
Backup RAM retention in Standby and VBAT modes When this bit is set, the backup RAM content is kept in Standby and VBAT modes. If BREN is reset, the backup RAM can still be used in Run, Sleep and Stop modes. However, its content is lost in Standby, Shutdown and VBAT modes. This bit can be written only when the regulator is LDO, which must be configured before switching to SMPS. Note: Backup RAM cannot be preserved in Shutdown mode.
pub fn set_bren(&mut self, val: bool)
pub fn set_bren(&mut self, val: bool)
Backup RAM retention in Standby and VBAT modes When this bit is set, the backup RAM content is kept in Standby and VBAT modes. If BREN is reset, the backup RAM can still be used in Run, Sleep and Stop modes. However, its content is lost in Standby, Shutdown and VBAT modes. This bit can be written only when the regulator is LDO, which must be configured before switching to SMPS. Note: Backup RAM cannot be preserved in Shutdown mode.