pub struct TimerControl { /* private fields */ }
Expand description
Controls an internal timer, sets its duration, and indicates timeout status.
Implementations§
Source§impl TimerControl
impl TimerControl
Sourcepub fn timeout_flag(&self) -> bool
pub fn timeout_flag(&self) -> bool
Read the timeout_flag
field of the register.
Timer timeout status flag (true: timed out, false: not timed out or cleared). Write 1 to clear this flag (while preserving other bits).
Sourcepub fn duration_minutes(&self) -> u8
pub fn duration_minutes(&self) -> u8
Read the duration_minutes
field of the register.
Timer duration in minutes (0-127). Writing 0 disables the timer.
Sourcepub fn set_timeout_flag(&mut self, value: bool)
pub fn set_timeout_flag(&mut self, value: bool)
Write the timeout_flag
field of the register.
Timer timeout status flag (true: timed out, false: not timed out or cleared). Write 1 to clear this flag (while preserving other bits).
Sourcepub fn set_duration_minutes(&mut self, value: u8)
pub fn set_duration_minutes(&mut self, value: u8)
Write the duration_minutes
field of the register.
Timer duration in minutes (0-127). Writing 0 disables the timer.
Trait Implementations§
Source§impl BitAnd for TimerControl
impl BitAnd for TimerControl
Source§impl BitAndAssign for TimerControl
impl BitAndAssign for TimerControl
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOr for TimerControl
impl BitOr for TimerControl
Source§impl BitOrAssign for TimerControl
impl BitOrAssign for TimerControl
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitXor for TimerControl
impl BitXor for TimerControl
Source§impl BitXorAssign for TimerControl
impl BitXorAssign for TimerControl
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moreSource§impl Clone for TimerControl
impl Clone for TimerControl
Source§fn clone(&self) -> TimerControl
fn clone(&self) -> TimerControl
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 TimerControl
impl Debug for TimerControl
Source§impl From<TimerControl> for [u8; 1]
impl From<TimerControl> for [u8; 1]
Source§fn from(val: TimerControl) -> Self
fn from(val: TimerControl) -> Self
Converts to this type from the input type.
Source§impl From<TimerControl> for FieldSetValue
impl From<TimerControl> for FieldSetValue
Source§fn from(val: TimerControl) -> Self
fn from(val: TimerControl) -> Self
Converts to this type from the input type.
Source§impl Not for TimerControl
impl Not for TimerControl
Source§impl PartialEq for TimerControl
impl PartialEq for TimerControl
impl Copy for TimerControl
impl Eq for TimerControl
impl StructuralPartialEq for TimerControl
Auto Trait Implementations§
impl Freeze for TimerControl
impl RefUnwindSafe for TimerControl
impl Send for TimerControl
impl Sync for TimerControl
impl Unpin for TimerControl
impl UnwindSafe for TimerControl
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