Struct stm32_metapac::pwr::regs::Bdcr
#[repr(transparent)]pub struct Bdcr(pub u32);
Expand description
PWR Backup domain control register.
Tuple Fields§
§0: u32
Implementations§
§impl Bdcr
impl Bdcr
pub const fn bren(&self) -> Retention
pub const fn bren(&self) -> Retention
Backup RAM retention in Standby and V_BAT modes When this bit set, the backup regulator (used to maintain the backup RAM content in Standby and V_BAT modes) is enabled. If BREN is cleared, the backup regulator is switched off. The backup RAM can still be used in. Run and Stop modes. However its content is lost in Standby and V_BAT modes. If BREN is set, the application must wait till the backup regulator ready flag (BRRDY) is set to indicate that the data written into the SRAM is maintained in Standby and V_BAT modes.
pub fn set_bren(&mut self, val: Retention)
pub fn set_bren(&mut self, val: Retention)
Backup RAM retention in Standby and V_BAT modes When this bit set, the backup regulator (used to maintain the backup RAM content in Standby and V_BAT modes) is enabled. If BREN is cleared, the backup regulator is switched off. The backup RAM can still be used in. Run and Stop modes. However its content is lost in Standby and V_BAT modes. If BREN is set, the application must wait till the backup regulator ready flag (BRRDY) is set to indicate that the data written into the SRAM is maintained in Standby and V_BAT modes.