pub struct Seconds { /* private fields */ }Expand description
Seconds register with voltage-low flag. Seconds are BCD encoded (0-59).
Implementations§
Source§impl Seconds
impl Seconds
Sourcepub fn vl(&self) -> bool
pub fn vl(&self) -> bool
Read the vl field of the register.
Voltage-low flag (clock integrity indicator).
- false (0): Clock integrity guaranteed
- true (1): Clock integrity not guaranteed (set at power-on) Must be cleared by software after setting time.
Sourcepub fn seconds_ten(&self) -> u8
pub fn seconds_ten(&self) -> u8
Read the seconds_ten field of the register.
Seconds ten’s digit (BCD, 0-5).
Sourcepub fn seconds_unit(&self) -> u8
pub fn seconds_unit(&self) -> u8
Read the seconds_unit field of the register.
Seconds unit digit (BCD, 0-9).
Sourcepub fn set_vl(&mut self, value: bool)
pub fn set_vl(&mut self, value: bool)
Write the vl field of the register.
Voltage-low flag (clock integrity indicator).
- false (0): Clock integrity guaranteed
- true (1): Clock integrity not guaranteed (set at power-on) Must be cleared by software after setting time.
Sourcepub fn set_seconds_ten(&mut self, value: u8)
pub fn set_seconds_ten(&mut self, value: u8)
Write the seconds_ten field of the register.
Seconds ten’s digit (BCD, 0-5).
Sourcepub fn set_seconds_unit(&mut self, value: u8)
pub fn set_seconds_unit(&mut self, value: u8)
Write the seconds_unit field of the register.
Seconds unit digit (BCD, 0-9).
Trait Implementations§
Source§impl BitAndAssign for Seconds
impl BitAndAssign for Seconds
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign for Seconds
impl BitOrAssign for Seconds
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXorAssign for Seconds
impl BitXorAssign for Seconds
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl From<Seconds> for FieldSetValue
impl From<Seconds> for FieldSetValue
impl Copy for Seconds
impl Eq for Seconds
impl StructuralPartialEq for Seconds
Auto Trait Implementations§
impl Freeze for Seconds
impl RefUnwindSafe for Seconds
impl Send for Seconds
impl Sync for Seconds
impl Unpin for Seconds
impl UnsafeUnpin for Seconds
impl UnwindSafe for Seconds
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