Trait stm32h7xx_hal::timer::TimerExt [−][src]
External trait for hardware timers
Associated Types
type Rec: ResetEnable
[src]
Required methods
fn timer<T>(self, timeout: T, prec: Self::Rec, clocks: &CoreClocks) -> TIM where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
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]
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> TIM where
T: Into<Hertz>,
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.
Implementors
impl TimerExt<LpTimer<LPTIM1, Enabled>> for LPTIM1
[src]
type Rec = Lptim1
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> LpTimer<LPTIM1, Enabled> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> LpTimer<LPTIM1, Enabled> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
_frequency: T,
_prec: Self::Rec,
_clocks: &CoreClocks
) -> LpTimer<LPTIM1, Enabled> where
T: Into<Hertz>,
[src]
self,
_frequency: T,
_prec: Self::Rec,
_clocks: &CoreClocks
) -> LpTimer<LPTIM1, Enabled> where
T: Into<Hertz>,
impl TimerExt<LpTimer<LPTIM2, Enabled>> for LPTIM2
[src]
type Rec = Lptim2
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> LpTimer<LPTIM2, Enabled> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> LpTimer<LPTIM2, Enabled> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
_frequency: T,
_prec: Self::Rec,
_clocks: &CoreClocks
) -> LpTimer<LPTIM2, Enabled> where
T: Into<Hertz>,
[src]
self,
_frequency: T,
_prec: Self::Rec,
_clocks: &CoreClocks
) -> LpTimer<LPTIM2, Enabled> where
T: Into<Hertz>,
impl TimerExt<LpTimer<LPTIM3, Enabled>> for LPTIM3
[src]
type Rec = Lptim3
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> LpTimer<LPTIM3, Enabled> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> LpTimer<LPTIM3, Enabled> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
_frequency: T,
_prec: Self::Rec,
_clocks: &CoreClocks
) -> LpTimer<LPTIM3, Enabled> where
T: Into<Hertz>,
[src]
self,
_frequency: T,
_prec: Self::Rec,
_clocks: &CoreClocks
) -> LpTimer<LPTIM3, Enabled> where
T: Into<Hertz>,
impl TimerExt<LpTimer<LPTIM4, Enabled>> for LPTIM4
[src]
type Rec = Lptim4
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> LpTimer<LPTIM4, Enabled> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> LpTimer<LPTIM4, Enabled> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
_frequency: T,
_prec: Self::Rec,
_clocks: &CoreClocks
) -> LpTimer<LPTIM4, Enabled> where
T: Into<Hertz>,
[src]
self,
_frequency: T,
_prec: Self::Rec,
_clocks: &CoreClocks
) -> LpTimer<LPTIM4, Enabled> where
T: Into<Hertz>,
impl TimerExt<LpTimer<LPTIM5, Enabled>> for LPTIM5
[src]
type Rec = Lptim5
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> LpTimer<LPTIM5, Enabled> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> LpTimer<LPTIM5, Enabled> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
_frequency: T,
_prec: Self::Rec,
_clocks: &CoreClocks
) -> LpTimer<LPTIM5, Enabled> where
T: Into<Hertz>,
[src]
self,
_frequency: T,
_prec: Self::Rec,
_clocks: &CoreClocks
) -> LpTimer<LPTIM5, Enabled> where
T: Into<Hertz>,
impl TimerExt<Timer<TIM1>> for TIM1
[src]
type Rec = Tim1
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM1> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM1> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM1> where
T: Into<Hertz>,
[src]
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM1> where
T: Into<Hertz>,
impl TimerExt<Timer<TIM2>> for TIM2
[src]
type Rec = Tim2
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM2> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM2> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM2> where
T: Into<Hertz>,
[src]
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM2> where
T: Into<Hertz>,
impl TimerExt<Timer<TIM3>> for TIM3
[src]
type Rec = Tim3
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM3> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM3> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM3> where
T: Into<Hertz>,
[src]
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM3> where
T: Into<Hertz>,
impl TimerExt<Timer<TIM4>> for TIM4
[src]
type Rec = Tim4
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM4> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM4> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM4> where
T: Into<Hertz>,
[src]
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM4> where
T: Into<Hertz>,
impl TimerExt<Timer<TIM5>> for TIM5
[src]
type Rec = Tim5
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM5> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM5> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM5> where
T: Into<Hertz>,
[src]
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM5> where
T: Into<Hertz>,
impl TimerExt<Timer<TIM6>> for TIM6
[src]
type Rec = Tim6
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM6> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM6> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM6> where
T: Into<Hertz>,
[src]
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM6> where
T: Into<Hertz>,
impl TimerExt<Timer<TIM7>> for TIM7
[src]
type Rec = Tim7
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM7> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM7> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM7> where
T: Into<Hertz>,
[src]
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM7> where
T: Into<Hertz>,
impl TimerExt<Timer<TIM8>> for TIM8
[src]
type Rec = Tim8
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM8> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM8> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM8> where
T: Into<Hertz>,
[src]
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM8> where
T: Into<Hertz>,
impl TimerExt<Timer<TIM12>> for TIM12
[src]
type Rec = Tim12
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM12> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM12> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM12> where
T: Into<Hertz>,
[src]
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM12> where
T: Into<Hertz>,
impl TimerExt<Timer<TIM13>> for TIM13
[src]
type Rec = Tim13
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM13> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM13> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM13> where
T: Into<Hertz>,
[src]
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM13> where
T: Into<Hertz>,
impl TimerExt<Timer<TIM14>> for TIM14
[src]
type Rec = Tim14
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM14> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM14> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM14> where
T: Into<Hertz>,
[src]
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM14> where
T: Into<Hertz>,
impl TimerExt<Timer<TIM15>> for TIM15
[src]
type Rec = Tim15
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM15> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM15> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM15> where
T: Into<Hertz>,
[src]
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM15> where
T: Into<Hertz>,
impl TimerExt<Timer<TIM16>> for TIM16
[src]
type Rec = Tim16
fn timer<T>(
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM16> where
T: Into<Hertz>,
[src]
self,
timeout: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM16> where
T: Into<Hertz>,
fn tick_timer<T>(
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM16> where
T: Into<Hertz>,
[src]
self,
frequency: T,
prec: Self::Rec,
clocks: &CoreClocks
) -> Timer<TIM16> where
T: Into<Hertz>,