rp-pac

Crates

git

Versions

rp2040

Flavors

Module rp_pac::pwm::regs

source ·

Structs§

  • Counter compare values
  • Control and status register
  • Direct access to the PWM counter
  • INT and FRAC form a fixed-point fractional number. Counting rate is system clock frequency divided by this number. Fractional division uses simple 1st-order sigma-delta.
  • Counter wrap value
  • This register aliases the CSR_EN bits for all channels. Writing to this register allows multiple channels to be enabled or disabled simultaneously, so they can run in perfect sync. For each channel, there is only one physical EN register bit, which can be accessed through here or CHx_CSR.
  • Interrupt Enable
  • Interrupt Force
  • Raw Interrupts
  • Interrupt status after masking & forcing