Module rp2040_pac::pwm::ch::csr

source ·
Expand description

Control and status register

Structs§

Enums§

Type Aliases§

  • Field A_INV reader - Invert output A
  • Field A_INV writer - Invert output A
  • Field B_INV reader - Invert output B
  • Field B_INV writer - Invert output B
  • Field DIVMODE reader -
  • Field DIVMODE writer -
  • Field EN reader - Enable the PWM channel.
  • Field EN writer - Enable the PWM channel.
  • Field PH_ADV reader - Advance the phase of the counter by 1 count, while it is running.
    Self-clearing. Write a 1, and poll until low. Counter must be running
    at less than full speed (div_int + div_frac / 16 > 1)
  • Field PH_ADV writer - Advance the phase of the counter by 1 count, while it is running.
    Self-clearing. Write a 1, and poll until low. Counter must be running
    at less than full speed (div_int + div_frac / 16 > 1)
  • Field PH_CORRECT reader - 1: Enable phase-correct modulation. 0: Trailing-edge
  • Field PH_CORRECT writer - 1: Enable phase-correct modulation. 0: Trailing-edge
  • Field PH_RET reader - Retard the phase of the counter by 1 count, while it is running.
    Self-clearing. Write a 1, and poll until low. Counter must be running.
  • Field PH_RET writer - Retard the phase of the counter by 1 count, while it is running.
    Self-clearing. Write a 1, and poll until low. Counter must be running.
  • Register CSR reader
  • Register CSR writer