[−][src]Struct stm32f1xx_hal::timer::CountDownTimer
Implementations
impl CountDownTimer<SYST>
[src]
pub fn listen(&mut self, event: Event)
[src]
Starts listening for an event
pub fn unlisten(&mut self, event: Event)
[src]
Stops listening for an event
pub fn reset(&mut self)
[src]
Resets the counter
pub fn micros_since(&self) -> u32
[src]
Returns the number of microseconds since the last update event. NOTE: This method is not a very good candidate to keep track of time, because it is very easy to lose an update event.
pub fn stop(self) -> Timer<SYST>
[src]
Stops the timer
pub fn release(self) -> SYST
[src]
Releases the SYST
impl CountDownTimer<TIM2>
[src]
pub fn listen(&mut self, event: Event)
[src]
Starts listening for an event
pub fn unlisten(&mut self, event: Event)
[src]
Stops listening for an event
pub fn stop(self) -> Timer<TIM2>
[src]
Stops the timer
pub fn clear_update_interrupt_flag(&mut self)
[src]
Clears Update Interrupt Flag
pub fn release(self) -> TIM2
[src]
Releases the TIM Peripheral
pub fn micros_since(&self) -> u32
[src]
Returns the number of microseconds since the last update event. NOTE: This method is not a very good candidate to keep track of time, because it is very easy to lose an update event.
pub fn reset(&mut self)
[src]
Resets the counter
impl CountDownTimer<TIM3>
[src]
pub fn listen(&mut self, event: Event)
[src]
Starts listening for an event
pub fn unlisten(&mut self, event: Event)
[src]
Stops listening for an event
pub fn stop(self) -> Timer<TIM3>
[src]
Stops the timer
pub fn clear_update_interrupt_flag(&mut self)
[src]
Clears Update Interrupt Flag
pub fn release(self) -> TIM3
[src]
Releases the TIM Peripheral
pub fn micros_since(&self) -> u32
[src]
Returns the number of microseconds since the last update event. NOTE: This method is not a very good candidate to keep track of time, because it is very easy to lose an update event.
pub fn reset(&mut self)
[src]
Resets the counter
impl CountDownTimer<TIM1>
[src]
pub fn listen(&mut self, event: Event)
[src]
Starts listening for an event
pub fn unlisten(&mut self, event: Event)
[src]
Stops listening for an event
pub fn stop(self) -> Timer<TIM1>
[src]
Stops the timer
pub fn clear_update_interrupt_flag(&mut self)
[src]
Clears Update Interrupt Flag
pub fn release(self) -> TIM1
[src]
Releases the TIM Peripheral
pub fn micros_since(&self) -> u32
[src]
Returns the number of microseconds since the last update event. NOTE: This method is not a very good candidate to keep track of time, because it is very easy to lose an update event.
pub fn reset(&mut self)
[src]
Resets the counter
Trait Implementations
impl CountDown for CountDownTimer<SYST>
[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Void>
[src]
impl CountDown for CountDownTimer<TIM2>
[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Void>
[src]
impl CountDown for CountDownTimer<TIM3>
[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Void>
[src]
impl CountDown for CountDownTimer<TIM1>
[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Void>
[src]
impl Periodic for CountDownTimer<SYST>
[src]
impl Periodic for CountDownTimer<TIM2>
[src]
impl Periodic for CountDownTimer<TIM3>
[src]
impl Periodic for CountDownTimer<TIM1>
[src]
Auto Trait Implementations
impl<TIM> Send for CountDownTimer<TIM> where
TIM: Send,
TIM: Send,
impl<TIM> Sync for CountDownTimer<TIM> where
TIM: Sync,
TIM: Sync,
impl<TIM> Unpin for CountDownTimer<TIM> where
TIM: Unpin,
TIM: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,