pub enum RtcSubsecEna {
Disable = 0,
Enable = 1,
}Expand description
The 32 KHz sub-second counter enable
Value on reset: 0
Variants§
Disable = 0
0: The sub-second counter (if implemented) is disabled. This bit is cleared by a system-level POR or BOD reset as well as a by the RTC_ENA bit (bit 7 in this register). On modules not equipped with a sub-second counter, this bit will always read-back as a ‘0’
Enable = 1
1: The 32 KHz sub-second counter is enabled (if implemented). Counting will commence on the start of the first one-second interval after this bit is set. Note: This bit can only be set after the RTC_ENA bit (bit 7) has been set by a previous write operation. Note: The RTC sub-second counter must be re-enabled whenever the chip exits deep_powerdown mode.
Trait Implementations§
Source§impl Clone for RtcSubsecEna
impl Clone for RtcSubsecEna
Source§fn clone(&self) -> RtcSubsecEna
fn clone(&self) -> RtcSubsecEna
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RtcSubsecEna
impl Debug for RtcSubsecEna
Source§impl From<RtcSubsecEna> for bool
impl From<RtcSubsecEna> for bool
Source§fn from(variant: RtcSubsecEna) -> Self
fn from(variant: RtcSubsecEna) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RtcSubsecEna
impl PartialEq for RtcSubsecEna
impl Copy for RtcSubsecEna
impl Eq for RtcSubsecEna
impl StructuralPartialEq for RtcSubsecEna
Auto Trait Implementations§
impl Freeze for RtcSubsecEna
impl RefUnwindSafe for RtcSubsecEna
impl Send for RtcSubsecEna
impl Sync for RtcSubsecEna
impl Unpin for RtcSubsecEna
impl UnwindSafe for RtcSubsecEna
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