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.
Trait Implementations§
impl Copy for Bdcr1
impl Eq for Bdcr1
impl StructuralPartialEq for Bdcr1
Auto Trait Implementations§
impl Freeze for Bdcr1
impl RefUnwindSafe for Bdcr1
impl Send for Bdcr1
impl Sync for Bdcr1
impl Unpin for Bdcr1
impl UnwindSafe for Bdcr1
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
)