Struct f3::timer::Timer
[−]
[src]
pub struct Timer<'a>(pub &'a Tim7);
Methods
impl<'a> Timer<'a>
[src]
fn init(&self, rcc: &Rcc, frequency: u32)
Initializes the timer with a periodic timeout of frequency
Hz
NOTE After initialization, the timer will be in the paused state.
fn clear_update_flag(&self) -> Result<()>
Clears the update event flag
Returns Err
if no update event has occurred
fn resume(&self)
Resumes the timer count
fn pause(&self)
Pauses the timer
Trait Implementations
impl<'a> Clone for Timer<'a>
[src]
fn clone(&self) -> Timer<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more