Module esp32c6::mcpwm0::timer2_cfg1

source ·
Expand description

PWM timer2 working mode and start/stop control configuration register.

Structs

  • Register TIMER2_CFG1 reader
  • PWM timer2 working mode and start/stop control configuration register.
  • Register TIMER2_CFG1 writer

Type Definitions

  • Field TIMER2_MOD reader - PWM timer2 working mode, 0: freeze, 1: increase mode, 2: decrease mode, 3: up-down mode
  • Field TIMER2_MOD writer - PWM timer2 working mode, 0: freeze, 1: increase mode, 2: decrease mode, 3: up-down mode
  • Field TIMER2_START reader - PWM timer2 start and stop control. 0: if PWM timer2 starts, then stops at TEZ, 1: if timer2 starts, then stops at TEP, 2: PWM timer2 starts and runs on, 3: timer2 starts and stops at the next TEZ, 4: timer2 starts and stops at the next TEP. TEP here and below means the event that happens when the timer equals to period
  • Field TIMER2_START writer - PWM timer2 start and stop control. 0: if PWM timer2 starts, then stops at TEZ, 1: if timer2 starts, then stops at TEP, 2: PWM timer2 starts and runs on, 3: timer2 starts and stops at the next TEZ, 4: timer2 starts and stops at the next TEP. TEP here and below means the event that happens when the timer equals to period