Skip to content
Snippets Groups Projects
  1. May 12, 2022
  2. May 06, 2022
  3. Jun 08, 2020
  4. Feb 05, 2020
  5. Feb 03, 2020
    • Peter Bigot's avatar
      adc: provide API to help with conversions · 4420c5ed
      Peter Bigot authored
      
      Gain values are specified with enumeration values that can't be used
      to reverse the effects of scaling the input signal.  Provide a
      function that reverses the effect of the gain by scaling a measured
      value.
      
      Also provide a function that converts a raw measurement captured with
      a reference voltage and specific gain and resolution to the
      corresponding voltage in millivolts.
      
      Signed-off-by: default avatarPeter A. Bigot <pab@pabigot.com>
      4420c5ed
Loading