48 lines · plain
1What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_agc_gain2What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_agc_gain_bias3KernelVersion: 4.184Contact: linux-iio@vger.kernel.org5Description:6 This sensor has an automatic gain control (agc) loop7 which sets the analog signal levels at an optimum8 level by controlling programmable gain amplifiers. The9 criteria for optimal gain is determined by the sensor.10 11 Return the actual gain value as an integer in [0; 65536]12 range when read from.13 14 The agc gain read when measuring crosstalk shall be15 written into in_proximity0_agc_gain_bias.16 17What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_temp_a18What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_temp_b19What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_light_a20What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_light_b21KernelVersion: 4.1822Contact: linux-iio@vger.kernel.org23Description:24 The sensor is able to perform correction of distance25 measurements due to changing temperature and ambient26 light conditions. It can be programmed to correct for27 a second order error polynomial.28 29 Phase data has to be collected when temperature and30 ambient light are modulated independently.31 32 Then a least squares curve fit to a second order33 polynomial has to be generated from the data. The34 resultant curves have the form ax^2 + bx + c.35 36 From those two curves, a and b coefficients shall be37 stored in in_proximity0_calib_phase_temp_a and38 in_proximity0_calib_phase_temp_b for temperature and39 in in_proximity0_calib_phase_light_a and40 in_proximity0_calib_phase_light_b for ambient light.41 42 Those values must be integer in [0; 8355840] range.43 44 Finally, the c constant is set by the sensor45 internally.46 47 The value stored in sensor is displayed when read from.48