Trait stm32h7xx_hal::timer::TimerExt[][src]

pub trait TimerExt<TIM> {
    type Rec: ResetEnable;
    fn timer<T>(self, timeout: T, prec: Self::Rec, clocks: &CoreClocks) -> TIM
    where
        T: Into<Hertz>
;
fn tick_timer<T>(
        self,
        frequency: T,
        prec: Self::Rec,
        clocks: &CoreClocks
    ) -> TIM
    where
        T: Into<Hertz>
; }

External trait for hardware timers

Associated Types

Loading content...

Required methods

fn timer<T>(self, timeout: T, prec: Self::Rec, clocks: &CoreClocks) -> TIM where
    T: Into<Hertz>, 
[src]

Configures a periodic timer

Generates an overflow event at the timeout frequency.

fn tick_timer<T>(
    self,
    frequency: T,
    prec: Self::Rec,
    clocks: &CoreClocks
) -> TIM where
    T: Into<Hertz>, 
[src]

Configures the timer to count up at the given frequency

Counts from 0 to the counter’s maximum value, then repeats. Because this only uses the timer prescaler, the frequency is rounded to a multiple of the timer’s kernel clock.

Loading content...

Implementors

impl TimerExt<LpTimer<LPTIM1, Enabled>> for LPTIM1[src]

type Rec = Lptim1

impl TimerExt<LpTimer<LPTIM2, Enabled>> for LPTIM2[src]

type Rec = Lptim2

impl TimerExt<LpTimer<LPTIM3, Enabled>> for LPTIM3[src]

type Rec = Lptim3

impl TimerExt<LpTimer<LPTIM4, Enabled>> for LPTIM4[src]

type Rec = Lptim4

impl TimerExt<LpTimer<LPTIM5, Enabled>> for LPTIM5[src]

type Rec = Lptim5

impl TimerExt<Timer<TIM1>> for TIM1[src]

type Rec = Tim1

impl TimerExt<Timer<TIM2>> for TIM2[src]

type Rec = Tim2

impl TimerExt<Timer<TIM3>> for TIM3[src]

type Rec = Tim3

impl TimerExt<Timer<TIM4>> for TIM4[src]

type Rec = Tim4

impl TimerExt<Timer<TIM5>> for TIM5[src]

type Rec = Tim5

impl TimerExt<Timer<TIM6>> for TIM6[src]

type Rec = Tim6

impl TimerExt<Timer<TIM7>> for TIM7[src]

type Rec = Tim7

impl TimerExt<Timer<TIM8>> for TIM8[src]

type Rec = Tim8

impl TimerExt<Timer<TIM12>> for TIM12[src]

type Rec = Tim12

impl TimerExt<Timer<TIM13>> for TIM13[src]

type Rec = Tim13

impl TimerExt<Timer<TIM14>> for TIM14[src]

type Rec = Tim14

impl TimerExt<Timer<TIM15>> for TIM15[src]

type Rec = Tim15

impl TimerExt<Timer<TIM16>> for TIM16[src]

type Rec = Tim16

impl TimerExt<Timer<TIM17>> for TIM17[src]

type Rec = Tim17

Loading content...