sysfs-bus-iio-isl29501 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_agc_gain
  2. What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_agc_gain_bias
  3. KernelVersion: 4.18
  4. Contact: linux-iio@vger.kernel.org
  5. Description:
  6. This sensor has an automatic gain control (agc) loop
  7. which sets the analog signal levels at an optimum
  8. level by controlling programmable gain amplifiers. The
  9. criteria for optimal gain is determined by the sensor.
  10. Return the actual gain value as an integer in [0; 65536]
  11. range when read from.
  12. The agc gain read when measuring crosstalk shall be
  13. written into in_proximity0_agc_gain_bias.
  14. What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_temp_a
  15. What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_temp_b
  16. What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_light_a
  17. What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_light_b
  18. KernelVersion: 4.18
  19. Contact: linux-iio@vger.kernel.org
  20. Description:
  21. The sensor is able to perform correction of distance
  22. measurements due to changing temperature and ambient
  23. light conditions. It can be programmed to correct for
  24. a second order error polynomial.
  25. Phase data has to be collected when temperature and
  26. ambient light are modulated independently.
  27. Then a least squares curve fit to a second order
  28. polynomial has to be generated from the data. The
  29. resultant curves have the form ax^2 + bx + c.
  30. From those two curves, a and b coefficients shall be
  31. stored in in_proximity0_calib_phase_temp_a and
  32. in_proximity0_calib_phase_temp_b for temperature and
  33. in in_proximity0_calib_phase_light_a and
  34. in_proximity0_calib_phase_light_b for ambient light.
  35. Those values must be integer in [0; 8355840] range.
  36. Finally, the c constant is set by the sensor
  37. internally.
  38. The value stored in sensor is displayed when read from.