0001 What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_agc_gain
0002 What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_agc_gain_bias
0003 KernelVersion: 4.18
0004 Contact: linux-iio@vger.kernel.org
0005 Description:
0006 This sensor has an automatic gain control (agc) loop
0007 which sets the analog signal levels at an optimum
0008 level by controlling programmable gain amplifiers. The
0009 criteria for optimal gain is determined by the sensor.
0010
0011 Return the actual gain value as an integer in [0; 65536]
0012 range when read from.
0013
0014 The agc gain read when measuring crosstalk shall be
0015 written into in_proximity0_agc_gain_bias.
0016
0017 What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_temp_a
0018 What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_temp_b
0019 What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_light_a
0020 What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_light_b
0021 KernelVersion: 4.18
0022 Contact: linux-iio@vger.kernel.org
0023 Description:
0024 The sensor is able to perform correction of distance
0025 measurements due to changing temperature and ambient
0026 light conditions. It can be programmed to correct for
0027 a second order error polynomial.
0028
0029 Phase data has to be collected when temperature and
0030 ambient light are modulated independently.
0031
0032 Then a least squares curve fit to a second order
0033 polynomial has to be generated from the data. The
0034 resultant curves have the form ax^2 + bx + c.
0035
0036 From those two curves, a and b coefficients shall be
0037 stored in in_proximity0_calib_phase_temp_a and
0038 in_proximity0_calib_phase_temp_b for temperature and
0039 in in_proximity0_calib_phase_light_a and
0040 in_proximity0_calib_phase_light_b for ambient light.
0041
0042 Those values must be integer in [0; 8355840] range.
0043
0044 Finally, the c constant is set by the sensor
0045 internally.
0046
0047 The value stored in sensor is displayed when read from.