Module timer

Source
Expand description

Timers

Pins can be used for PWM output in both push-pull mode (Alternate) and open-drain mode (AlternateOD).

Re-exports§

pub use pwm_input::PwmInput;
pub use crate::gpio::alt::TimCPin as CPin;
pub use crate::gpio::alt::TimNCPin as NCPin;
pub use counter::*;
pub use delay::*;
pub use pwm::*;
pub use monotonic::*;

Modules§

counter
delay
Delays
monotonic
pwm
Provides basic Pulse-width modulation (PWM) capabilities
pwm_input

Structs§

CCR
Wrapper type that indicates which register of the contained timer to use for DMA.
Ch
Channel wrapper
DMAR
Wrapper type that indicates which register of the contained timer to use for DMA.
FTimer
Timer wrapper for fixed precision timers.
Timer
Timer wrapper.

Enums§

CenterAlignedMode
Center-aligned mode selection
Channel
Error
Event
TIM interrupt events
Flag
TIM status flags
IdleState
Output Idle state
Ocm
Polarity
Enum for IO polarity
SysEvent
SysTick interrupt events

Constants§

C1
C2
C3
C4

Traits§

Instance
SysTimerExt
TimerExt

Type Aliases§

CCR1
CCR2
CCR3
CCR4
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
Timer9
Timer10
Timer11
Timer12
Timer13
Timer14