#[repr(transparent)]pub struct Cr(pub u32);Expand description
RTC Control.
Tuple Fields§
§0: u32Implementations§
Source§impl Cr
impl Cr
Sourcepub const fn swr(&self) -> bool
pub const fn swr(&self) -> bool
Software Reset. Raw bit values: false (0) = Swr0: No effect.; true (1) = Swr1: Resets all RTC registers except for the SWR bit . The SWR bit is cleared by POR and by software explicitly clearing it.
Sourcepub const fn set_swr(&mut self, val: bool)
pub const fn set_swr(&mut self, val: bool)
Software Reset. Raw bit values: false (0) = Swr0: No effect.; true (1) = Swr1: Resets all RTC registers except for the SWR bit . The SWR bit is cleared by POR and by software explicitly clearing it.
Sourcepub const fn um(&self) -> bool
pub const fn um(&self) -> bool
Update Mode. Raw bit values: false (0) = Um0: Registers cannot be written when locked.; true (1) = Um1: Registers can be written when locked under limited conditions.
Sourcepub const fn set_um(&mut self, val: bool)
pub const fn set_um(&mut self, val: bool)
Update Mode. Raw bit values: false (0) = Um0: Registers cannot be written when locked.; true (1) = Um1: Registers can be written when locked under limited conditions.
Trait Implementations§
impl Copy for Cr
impl Eq for Cr
impl StructuralPartialEq for Cr
Auto Trait Implementations§
impl Freeze for Cr
impl RefUnwindSafe for Cr
impl Send for Cr
impl Sync for Cr
impl Unpin for Cr
impl UnwindSafe for Cr
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
Mutably borrows from an owned value. Read more