Module timer

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 capture::*;
pub use monotonic::*;

Modules§

capture
Provides the core functionality of the Input Capture mode.
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§

CaptureFilter
Enum representing the input capture filter settings.
CaptureMode
Capture mode Enum for configuring the mode of the Capture channels (CC1S, CC2S, CC3S, CC4S). Defines how each channel is used in Input Capture mode, considering TI1, TI2, TI3, and TI4.
CapturePolarity
Capture polarity
CapturePrescaler
Enum for configuring the Input Capture prescaler. Determines how many input events are required for one capture.
CenterAlignedMode
Center-aligned mode selection
Channel
Error
Event
TIM interrupt events
Flag
TIM status flags
IdleState
Output Idle state
Ocm
Polarity
Compare/PWM 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