pub struct HourAlarm { /* private fields */ }Expand description
Hour alarm register. Hours are BCD encoded (0-23).
Implementations§
Source§impl HourAlarm
impl HourAlarm
Sourcepub fn ae_h(&self) -> bool
pub fn ae_h(&self) -> bool
Read the ae_h field of the register.
Hour alarm enable (active low).
- false (0): Hour alarm enabled
- true (1): Hour alarm disabled (default)
Sourcepub fn hour_alarm_ten(&self) -> u8
pub fn hour_alarm_ten(&self) -> u8
Read the hour_alarm_ten field of the register.
Hour alarm ten’s digit (BCD, 0-2).
Sourcepub fn hour_alarm_unit(&self) -> u8
pub fn hour_alarm_unit(&self) -> u8
Read the hour_alarm_unit field of the register.
Hour alarm unit digit (BCD, 0-9).
Sourcepub fn set_ae_h(&mut self, value: bool)
pub fn set_ae_h(&mut self, value: bool)
Write the ae_h field of the register.
Hour alarm enable (active low).
- false (0): Hour alarm enabled
- true (1): Hour alarm disabled (default)
Sourcepub fn set_hour_alarm_ten(&mut self, value: u8)
pub fn set_hour_alarm_ten(&mut self, value: u8)
Write the hour_alarm_ten field of the register.
Hour alarm ten’s digit (BCD, 0-2).
Sourcepub fn set_hour_alarm_unit(&mut self, value: u8)
pub fn set_hour_alarm_unit(&mut self, value: u8)
Write the hour_alarm_unit field of the register.
Hour alarm unit digit (BCD, 0-9).
Trait Implementations§
Source§impl BitAndAssign for HourAlarm
impl BitAndAssign for HourAlarm
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign for HourAlarm
impl BitOrAssign for HourAlarm
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXorAssign for HourAlarm
impl BitXorAssign for HourAlarm
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl From<HourAlarm> for FieldSetValue
impl From<HourAlarm> for FieldSetValue
impl Copy for HourAlarm
impl Eq for HourAlarm
impl StructuralPartialEq for HourAlarm
Auto Trait Implementations§
impl Freeze for HourAlarm
impl RefUnwindSafe for HourAlarm
impl Send for HourAlarm
impl Sync for HourAlarm
impl Unpin for HourAlarm
impl UnsafeUnpin for HourAlarm
impl UnwindSafe for HourAlarm
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