Struct 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) -> bool
pub const fn bren(&self) -> bool
Backup RAM retention in Standby and VBAT modes When this bit set, the backup regulator (used to maintain the backup RAM content in Standby and VBAT 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 VBAT 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 VBAT modes.
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 set, the backup regulator (used to maintain the backup RAM content in Standby and VBAT 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 VBAT 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 VBAT modes.