Module timer

Source
Expand description

§Timer

§Alternate function remapping

This is a list of the remap settings you can use to assign pins to PWM channels and the QEI peripherals

§TIM1

Not available on STM32F101.

ChannelTim1NoRemapTim1FullRemap
CH1PA8PE9
CH2PA9PE11
CH3PA10PE13
CH4PA11PE14

§TIM2

ChannelTim2NoRemapTim2PartialRemap1Tim2PartialRemap2Tim2FullRemap
CH1PA0PA15PA0PA15
CH2PA1PB3PA1PB3
CH3PA2PA2PB10PB10
CH4PA3PA3PB11PB11

§TIM3

ChannelTim3NoRemapTim3PartialRemapTim3FullRemap
CH1PA6PB4PC6
CH2PA7PB5PC7
CH3PB0PB0PC8
CH4PB1PB1PC9

§TIM4

Not available on low density devices.

ChannelTim4NoRemapTim4Remap
CH1PB6PD12
CH2PB7PD13
CH3PB8PD14
CH4PB9PD15

Re-exports§

pub use monotonic::*;
pub use pwm_input::*;
pub use delay::*;
pub use counter::*;
pub use pwm::*;

Modules§

counter
delay
Delays
monotonic
RTIC Monotonic implementation
pwm
Pulse width modulation
pwm_input
This module allows Timer peripherals to be configured as pwm input. In this mode, the timer sample a squared signal to find it’s frequency and duty cycle.

Structs§

Ch
Event
FTimer
Timer wrapper for fixed precision timers.
Tim1FullRemap
Tim1NoRemap
Tim2FullRemap
Tim2NoRemap
Tim2PartialRemap1
Tim2PartialRemap2
Tim3FullRemap
Tim3NoRemap
Tim3PartialRemap
Tim4NoRemap
Tim4Remap
Timer
Timer wrapper

Enums§

Channel
Error
Ocm
SysEvent
Interrupt events

Constants§

C1
C2
C3
C4

Traits§

CPin
Instance
SysTimerExt
TimerExt

Type Aliases§

FTimerMs
FTimer with precision of 1 ms (1 kHz sampling)
FTimerUs
FTimer with precision of 1 μs (1 MHz sampling)
Timer1
Timer2
Timer3
Timer4
Timer5
Timer6
Timer7
Timer8