rp2040_pac

Module adc

source
Expand description

Control and data interface to SAR ADC

Modules§

  • ADC Control and Status
  • Clock divider. If non-zero, CS_START_MANY will start conversions
    at regular intervals rather than back-to-back.
    The divider is reset when either of these fields are written.
    Total period is 1 + INT + FRAC / 256
  • FIFO control and status
  • Conversion result FIFO
  • Interrupt Enable
  • Interrupt Force
  • Raw Interrupts
  • Interrupt status after masking & forcing
  • Result of most recent ADC conversion

Structs§

Type Aliases§

  • CS (rw) register accessor: ADC Control and Status
  • DIV (rw) register accessor: Clock divider. If non-zero, CS_START_MANY will start conversions
    at regular intervals rather than back-to-back.
    The divider is reset when either of these fields are written.
    Total period is 1 + INT + FRAC / 256
  • FCS (rw) register accessor: FIFO control and status
  • FIFO (r) register accessor: Conversion result FIFO
  • INTE (rw) register accessor: Interrupt Enable
  • INTF (rw) register accessor: Interrupt Force
  • INTR (r) register accessor: Raw Interrupts
  • INTS (r) register accessor: Interrupt status after masking & forcing
  • RESULT (r) register accessor: Result of most recent ADC conversion