pub struct Timer { /* private fields */ }Expand description
Timer countdown value register. 8-bit binary countdown timer (0-255). Countdown period = n / source_clock_frequency When read, returns current countdown value.
Implementations§
Source§impl Timer
impl Timer
Sourcepub fn timer_value(&self) -> u8
pub fn timer_value(&self) -> u8
Read the timer_value field of the register.
Timer countdown value (0-255).
Sourcepub fn set_timer_value(&mut self, value: u8)
pub fn set_timer_value(&mut self, value: u8)
Write the timer_value field of the register.
Timer countdown value (0-255).
Trait Implementations§
Source§impl BitAndAssign for Timer
impl BitAndAssign for Timer
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign for Timer
impl BitOrAssign for Timer
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXorAssign for Timer
impl BitXorAssign for Timer
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl From<Timer> for FieldSetValue
impl From<Timer> for FieldSetValue
impl Copy for Timer
impl Eq for Timer
impl StructuralPartialEq for Timer
Auto Trait Implementations§
impl Freeze for Timer
impl RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl UnsafeUnpin for Timer
impl UnwindSafe for Timer
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