[][src]Struct stm32f3xx_hal::timer::Timer

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

Hardware timers

Implementations

impl Timer<TIM1>[src]

pub fn tim1<T>(tim: TIM1, timeout: T, clocks: Clocks, apb2: &mut APB2) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

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(&mut self)[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

impl Timer<TIM2>[src]

pub fn tim2<T>(tim: TIM2, timeout: T, clocks: Clocks, apb1: &mut APB1) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

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(&mut self)[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

impl Timer<TIM3>[src]

pub fn tim3<T>(tim: TIM3, timeout: T, clocks: Clocks, apb1: &mut APB1) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

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(&mut self)[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

impl Timer<TIM4>[src]

pub fn tim4<T>(tim: TIM4, timeout: T, clocks: Clocks, apb1: &mut APB1) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

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(&mut self)[src]

Stops the timer

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

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

Releases the TIM peripheral

impl Timer<TIM6>[src]

pub fn tim6<T>(tim: TIM6, timeout: T, clocks: Clocks, apb1: &mut APB1) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

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(&mut self)[src]

Stops the timer

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

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

Releases the TIM peripheral

impl Timer<TIM7>[src]

pub fn tim7<T>(tim: TIM7, timeout: T, clocks: Clocks, apb1: &mut APB1) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

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(&mut self)[src]

Stops the timer

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

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

Releases the TIM peripheral

impl Timer<TIM8>[src]

pub fn tim8<T>(tim: TIM8, timeout: T, clocks: Clocks, apb2: &mut APB2) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

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(&mut self)[src]

Stops the timer

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

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

Releases the TIM peripheral

impl Timer<TIM15>[src]

pub fn tim15<T>(tim: TIM15, timeout: T, clocks: Clocks, apb2: &mut APB2) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

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(&mut self)[src]

Stops the timer

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

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

Releases the TIM peripheral

impl Timer<TIM16>[src]

pub fn tim16<T>(tim: TIM16, timeout: T, clocks: Clocks, apb2: &mut APB2) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

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(&mut self)[src]

Stops the timer

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

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

Releases the TIM peripheral

impl Timer<TIM17>[src]

pub fn tim17<T>(tim: TIM17, timeout: T, clocks: Clocks, apb2: &mut APB2) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

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(&mut self)[src]

Stops the timer

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

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

Releases the TIM peripheral

impl Timer<TIM20>[src]

pub fn tim20<T>(tim: TIM20, timeout: T, clocks: Clocks, apb2: &mut APB2) -> Self where
    T: Into<Hertz>, 
[src]

Configures a TIM peripheral as a periodic count down timer

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(&mut self)[src]

Stops the timer

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

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

Releases the TIM peripheral

Trait Implementations

impl CountDown for Timer<TIM1>[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<TIM20>[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<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<TIM8>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIM15>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIM16>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIM17>[src]

type Time = Hertz

The unit of time used by this timer

impl Periodic for Timer<TIM1>[src]

impl Periodic for Timer<TIM2>[src]

impl Periodic for Timer<TIM20>[src]

impl Periodic for Timer<TIM3>[src]

impl Periodic for Timer<TIM4>[src]

impl Periodic for Timer<TIM6>[src]

impl Periodic for Timer<TIM7>[src]

impl Periodic for Timer<TIM8>[src]

impl Periodic for Timer<TIM15>[src]

impl Periodic for Timer<TIM16>[src]

impl Periodic for Timer<TIM17>[src]

Auto Trait Implementations

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

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

impl<TIM> Unpin for Timer<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.