pub struct Hours { /* private fields */ }Expand description
Hours register. Hours are BCD encoded (0-23, 24-hour format).
Implementations§
Source§impl Hours
impl Hours
Sourcepub fn hours_ten(&self) -> u8
pub fn hours_ten(&self) -> u8
Read the hours_ten field of the register.
Hours ten’s digit (BCD, 0-2).
Sourcepub fn hours_unit(&self) -> u8
pub fn hours_unit(&self) -> u8
Read the hours_unit field of the register.
Hours unit digit (BCD, 0-9).
Sourcepub fn set_hours_ten(&mut self, value: u8)
pub fn set_hours_ten(&mut self, value: u8)
Write the hours_ten field of the register.
Hours ten’s digit (BCD, 0-2).
Sourcepub fn set_hours_unit(&mut self, value: u8)
pub fn set_hours_unit(&mut self, value: u8)
Write the hours_unit field of the register.
Hours unit digit (BCD, 0-9).
Trait Implementations§
Source§impl BitAndAssign for Hours
impl BitAndAssign for Hours
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign for Hours
impl BitOrAssign for Hours
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXorAssign for Hours
impl BitXorAssign for Hours
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl From<Hours> for FieldSetValue
impl From<Hours> for FieldSetValue
impl Copy for Hours
impl Eq for Hours
impl StructuralPartialEq for Hours
Auto Trait Implementations§
impl Freeze for Hours
impl RefUnwindSafe for Hours
impl Send for Hours
impl Sync for Hours
impl Unpin for Hours
impl UnsafeUnpin for Hours
impl UnwindSafe for Hours
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