#[repr(transparent)]pub struct Ctrl(pub u32);
Expand description
RTC Control and status
Tuple Fields§
§0: u32
Implementations§
source§impl Ctrl
impl Ctrl
sourcepub const fn rtc_enable(&self) -> bool
pub const fn rtc_enable(&self) -> bool
Enable RTC
sourcepub fn set_rtc_enable(&mut self, val: bool)
pub fn set_rtc_enable(&mut self, val: bool)
Enable RTC
sourcepub const fn rtc_active(&self) -> bool
pub const fn rtc_active(&self) -> bool
RTC enabled (running)
sourcepub fn set_rtc_active(&mut self, val: bool)
pub fn set_rtc_active(&mut self, val: bool)
RTC enabled (running)
sourcepub const fn force_notleapyear(&self) -> bool
pub const fn force_notleapyear(&self) -> bool
If set, leapyear is forced off. Useful for years divisible by 100 but not by 400
sourcepub fn set_force_notleapyear(&mut self, val: bool)
pub fn set_force_notleapyear(&mut self, val: bool)
If set, leapyear is forced off. Useful for years divisible by 100 but not by 400
Trait Implementations§
impl Copy for Ctrl
impl Eq for Ctrl
impl StructuralPartialEq for Ctrl
Auto Trait Implementations§
impl Freeze for Ctrl
impl RefUnwindSafe for Ctrl
impl Send for Ctrl
impl Sync for Ctrl
impl Unpin for Ctrl
impl UnwindSafe for Ctrl
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)