pub struct TimerControl { /* private fields */ }Expand description
Timer control register.
Implementations§
Source§impl TimerControl
impl TimerControl
Sourcepub fn te(&self) -> bool
pub fn te(&self) -> bool
Read the te field of the register.
Timer enable.
- false (0): Timer disabled (default)
- true (1): Timer enabled
Sourcepub fn td(&self) -> TimerFrequency
pub fn td(&self) -> TimerFrequency
Read the td field of the register.
Timer source clock frequency selection. When not in use, set to 1/60 Hz for power saving.
Sourcepub fn set_te(&mut self, value: bool)
pub fn set_te(&mut self, value: bool)
Write the te field of the register.
Timer enable.
- false (0): Timer disabled (default)
- true (1): Timer enabled
Sourcepub fn set_td(&mut self, value: TimerFrequency)
pub fn set_td(&mut self, value: TimerFrequency)
Write the td field of the register.
Timer source clock frequency selection. When not in use, set to 1/60 Hz for power saving.
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 UnsafeUnpin 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