^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/bus/iio/devices/iio:deviceX/proximity_on_chip_ambient_infrared_suppression
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: January 2011
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) KernelVersion: 2.6.37
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Contact: linux-iio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) From ISL29018 Data Sheet (FN6619.4, Oct 8, 2012) regarding the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) infrared suppression:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) Scheme 0, makes full n (4, 8, 12, 16) bits (unsigned) proximity
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) detection. The range of Scheme 0 proximity count is from 0 to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 2^n. Logic 1 of this bit, Scheme 1, makes n-1 (3, 7, 11, 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) bits (2's complementary) proximity_less_ambient detection. The
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) range of Scheme 1 proximity count is from -2^(n-1) to 2^(n-1).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) The sign bit is extended for resolutions less than 16. While
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Scheme 0 has wider dynamic range, Scheme 1 proximity detection
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) is less affected by the ambient IR noise variation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) == =============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 0 Sensing IR from LED and ambient
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 1 Sensing IR from LED with ambient IR rejection
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) == =============================================