[][src]Struct stm32l1xx_hal::timer::Timer

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

Hardware timers

Methods

impl Timer<SYST>[src]

pub fn syst<T>(syst: SYST, timeout: T, rcc: &mut Rcc) -> Self where
    T: Into<Hertz>, 
[src]

Configures the SYST clock as a periodic count down timer

pub fn listen(&mut self)[src]

Starts listening

pub fn unlisten(&mut self)[src]

Stops listening

impl Timer<TIM2>[src]

pub fn tim2<T>(tim: TIM2, timeout: T, rcc: &mut Rcc) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

pub fn listen(&mut self)[src]

Starts listening

pub fn unlisten(&mut self)[src]

Stops listening

pub fn clear_irq(&mut self)[src]

Clears interrupt flag

pub fn release(self) -> TIM2[src]

Releases the TIM peripheral

impl Timer<TIM3>[src]

pub fn tim3<T>(tim: TIM3, timeout: T, rcc: &mut Rcc) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

pub fn listen(&mut self)[src]

Starts listening

pub fn unlisten(&mut self)[src]

Stops listening

pub fn clear_irq(&mut self)[src]

Clears interrupt flag

pub fn release(self) -> TIM3[src]

Releases the TIM peripheral

impl Timer<TIM4>[src]

pub fn tim4<T>(tim: TIM4, timeout: T, rcc: &mut Rcc) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

pub fn listen(&mut self)[src]

Starts listening

pub fn unlisten(&mut self)[src]

Stops listening

pub fn clear_irq(&mut self)[src]

Clears interrupt flag

pub fn release(self) -> TIM4[src]

Releases the TIM peripheral

impl Timer<TIM5>[src]

pub fn tim5<T>(tim: TIM5, timeout: T, rcc: &mut Rcc) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

pub fn listen(&mut self)[src]

Starts listening

pub fn unlisten(&mut self)[src]

Stops listening

pub fn clear_irq(&mut self)[src]

Clears interrupt flag

pub fn release(self) -> TIM5[src]

Releases the TIM peripheral

impl Timer<TIM6>[src]

pub fn tim6<T>(tim: TIM6, timeout: T, rcc: &mut Rcc) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

pub fn listen(&mut self)[src]

Starts listening

pub fn unlisten(&mut self)[src]

Stops listening

pub fn clear_irq(&mut self)[src]

Clears interrupt flag

pub fn release(self) -> TIM6[src]

Releases the TIM peripheral

impl Timer<TIM7>[src]

pub fn tim7<T>(tim: TIM7, timeout: T, rcc: &mut Rcc) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

pub fn listen(&mut self)[src]

Starts listening

pub fn unlisten(&mut self)[src]

Stops listening

pub fn clear_irq(&mut self)[src]

Clears interrupt flag

pub fn release(self) -> TIM7[src]

Releases the TIM peripheral

impl Timer<TIM9>[src]

pub fn tim9<T>(tim: TIM9, timeout: T, rcc: &mut Rcc) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

pub fn listen(&mut self)[src]

Starts listening

pub fn unlisten(&mut self)[src]

Stops listening

pub fn clear_irq(&mut self)[src]

Clears interrupt flag

pub fn release(self) -> TIM9[src]

Releases the TIM peripheral

Trait Implementations

impl CountDown for Timer<SYST>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIM2>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIM3>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIM4>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIM5>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIM6>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIM7>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIM9>[src]

type Time = Hertz

The unit of time used by this timer

impl Periodic for Timer<SYST>[src]

impl Periodic for Timer<TIM2>[src]

impl Periodic for Timer<TIM3>[src]

impl Periodic for Timer<TIM4>[src]

impl Periodic for Timer<TIM5>[src]

impl Periodic for Timer<TIM6>[src]

impl Periodic for Timer<TIM7>[src]

impl Periodic for Timer<TIM9>[src]

Auto Trait Implementations

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

impl<TIM> Send for Timer<TIM> where
    TIM: Send

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

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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