Skip to main content

Module timer

Module timer 

Source
Expand description

Timers, PWM.

Instance type:

  • BasicInstance
  • GeneralInstance (16-bit or 32-bit)
  • AdvancedInstance

Different vs embassy-stm32:

  • No too many levels of abstraction
  • 2CH GPTM instances are also have helper functions defined

Modules§

complementary_pwm
PWM driver with complementary output support.
low_level
Low-level timer driver.
simple_pwm
Simple PWM driver.

Enums§

Channel
Timer channel.
TimerBits
Amount of bits of a timer.

Traits§

AdvancedInstance
Advanced 16-bit timer with 4 channels instance.
BasicInstance
Basic timer instance, BCTM
BreakInputPin
Ch1Dma
Ch1Dma DMA request trait
Ch2Dma
Ch2Dma DMA request trait
Ch3Dma
Ch3Dma DMA request trait
Ch4Dma
Ch4Dma DMA request trait
Channel1ComplementaryPin
Channel1Pin
Channel2ComplementaryPin
Channel2Pin
Channel3ComplementaryPin
Channel3Pin
Channel4Pin
CoreInstance
Core timer instance.
ExternalTriggerPin
GeneralInstance16bit
General-purpose 16-bit timer with 4 channels instance.
GeneralInstance32bit
General-purpose 32-bit timer with 4 channels instance.
UpDma
UpDma DMA request trait