[][src]Struct stm32f1xx_hal::timer::CountDownTimer

pub struct CountDownTimer<TIM> { /* fields omitted */ }

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

impl CountDown for CountDownTimer<TIM2>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for CountDownTimer<TIM3>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for CountDownTimer<TIM1>[src]

type Time = Hertz

The unit of time used by this timer

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

impl<TIM> Sync for CountDownTimer<TIM> where
    TIM: Sync

impl<TIM> Unpin for CountDownTimer<TIM> where
    TIM: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.