rp-pac

Crates

git

Versions

rp235x

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.
  • Raw Interrupts
  • Interrupt Enable for irq0
  • Interrupt Force for irq0
  • Interrupt status after masking & forcing for irq0
  • Interrupt Enable for irq1
  • Interrupt Force for irq1
  • Interrupt status after masking & forcing for irq1