#[repr(u8)]pub enum RtcSubsecEna {
POWER_UP = 0,
POWERED_DOWN = 1,
}Variants§
POWER_UP = 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’.
POWERED_DOWN = 1
The 32 KHz sub-second counter is enabled (if implemented). Counting commences 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) is set by a previous write operation. Note: The RTC sub-second counter must be re-enabled whenever the chip exits deep power-down mode.
Implementations§
Source§impl RtcSubsecEna
impl RtcSubsecEna
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 u8
impl From<RtcSubsecEna> for u8
Source§fn from(val: RtcSubsecEna) -> u8
fn from(val: RtcSubsecEna) -> u8
Converts to this type from the input type.
Source§impl From<u8> for RtcSubsecEna
impl From<u8> for RtcSubsecEna
Source§fn from(val: u8) -> RtcSubsecEna
fn from(val: u8) -> RtcSubsecEna
Converts to this type from the input type.
Source§impl Ord for RtcSubsecEna
impl Ord for RtcSubsecEna
Source§fn cmp(&self, other: &RtcSubsecEna) -> Ordering
fn cmp(&self, other: &RtcSubsecEna) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RtcSubsecEna
impl PartialEq for RtcSubsecEna
Source§impl PartialOrd for RtcSubsecEna
impl PartialOrd 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