pub struct BackupFlags { /* private fields */ }Expand description
Flags register in the backup register bank. Used to track system state between soft resets.
Implementations§
Source§impl BackupFlags
impl BackupFlags
Sourcepub const ZERO: Self
pub const ZERO: Self
Creates a new instance with a raw value of 0. Equivalent to [Self::new_with_raw_value(0)].
Sourcepub const fn new_with_raw_value(value: u32) -> BackupFlags
pub const fn new_with_raw_value(value: u32) -> BackupFlags
Creates a new instance of this bitfield with the given raw value.
No checks are performed on the value, so it is possible to set bits that don’t have any accessors specified.
Sourcepub const fn builder() -> PartialBackupFlags<0>
pub const fn builder() -> PartialBackupFlags<0>
Creates a builder for this bitfield which ensures that all writable fields are initialized
pub const fn reserved(&self) -> u31
pub const fn with_reserved(&self, field_value: u31) -> Self
pub fn set_reserved(&mut self, field_value: u31)
Sourcepub const fn rtc_synchronized(&self) -> bool
pub const fn rtc_synchronized(&self) -> bool
When false, indicates that the time in the RTC register is not synchronized to the offset
that is read from disk. Upon first encounter with an external time source, the offset should
be captured and recorded to disk.
Sourcepub const fn with_rtc_synchronized(&self, field_value: bool) -> Self
pub const fn with_rtc_synchronized(&self, field_value: bool) -> Self
When false, indicates that the time in the RTC register is not synchronized to the offset
that is read from disk. Upon first encounter with an external time source, the offset should
be captured and recorded to disk.
Sourcepub fn set_rtc_synchronized(&mut self, field_value: bool)
pub fn set_rtc_synchronized(&mut self, field_value: bool)
When false, indicates that the time in the RTC register is not synchronized to the offset
that is read from disk. Upon first encounter with an external time source, the offset should
be captured and recorded to disk.
Trait Implementations§
Source§impl Clone for BackupFlags
impl Clone for BackupFlags
Source§fn clone(&self) -> BackupFlags
fn clone(&self) -> BackupFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more