Module rp2040_pac::adc::cs

source ·
Expand description

ADC Control and Status

Structs§

Type Aliases§

  • Field AINSEL reader - Select analog mux input. Updated automatically in round-robin mode.
  • Field AINSEL writer - Select analog mux input. Updated automatically in round-robin mode.
  • Field EN reader - Power on ADC and enable its clock.
    1 - enabled. 0 - disabled.
  • Field EN writer - Power on ADC and enable its clock.
    1 - enabled. 0 - disabled.
  • Field ERR reader - The most recent ADC conversion encountered an error; result is undefined or noisy.
  • Field ERR_STICKY reader - Some past ADC conversion encountered an error. Write 1 to clear.
  • Field ERR_STICKY writer - Some past ADC conversion encountered an error. Write 1 to clear.
  • Register CS reader
  • Field READY reader - 1 if the ADC is ready to start a new conversion. Implies any previous conversion has completed.
    0 whilst conversion in progress.
  • Field RROBIN reader - Round-robin sampling. 1 bit per channel. Set all bits to 0 to disable.
    Otherwise, the ADC will cycle through each enabled channel in a round-robin fashion.
    The first channel to be sampled will be the one currently indicated by AINSEL.
    AINSEL will be updated after each conversion with the newly-selected channel.
  • Field RROBIN writer - Round-robin sampling. 1 bit per channel. Set all bits to 0 to disable.
    Otherwise, the ADC will cycle through each enabled channel in a round-robin fashion.
    The first channel to be sampled will be the one currently indicated by AINSEL.
    AINSEL will be updated after each conversion with the newly-selected channel.
  • Field START_MANY reader - Continuously perform conversions whilst this bit is 1. A new conversion will start immediately after the previous finishes.
  • Field START_MANY writer - Continuously perform conversions whilst this bit is 1. A new conversion will start immediately after the previous finishes.
  • Field START_ONCE reader - Start a single conversion. Self-clearing. Ignored if start_many is asserted.
  • Field START_ONCE writer - Start a single conversion. Self-clearing. Ignored if start_many is asserted.
  • Field TS_EN reader - Power on temperature sensor. 1 - enabled. 0 - disabled.
  • Field TS_EN writer - Power on temperature sensor. 1 - enabled. 0 - disabled.
  • Register CS writer