162306a36Sopenharmony_ciWhat: /sys/.../events/in_illuminance0_thresh_either_en 262306a36Sopenharmony_ciDate: April 2012 362306a36Sopenharmony_ciKernelVersion: 3.5 462306a36Sopenharmony_ciContact: Johan Hovold <jhovold@gmail.com> 562306a36Sopenharmony_ciDescription: 662306a36Sopenharmony_ci Event generated when channel passes one of the four thresholds 762306a36Sopenharmony_ci in each direction (rising|falling) and a zone change occurs. 862306a36Sopenharmony_ci The corresponding light zone can be read from 962306a36Sopenharmony_ci in_illuminance0_zone. 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ciWhat: /sys/.../events/in_illuminance0_threshY_hysteresis 1262306a36Sopenharmony_ciDate: May 2012 1362306a36Sopenharmony_ciKernelVersion: 3.5 1462306a36Sopenharmony_ciContact: Johan Hovold <jhovold@gmail.com> 1562306a36Sopenharmony_ciDescription: 1662306a36Sopenharmony_ci Get the hysteresis for thresholds Y, that is, 1762306a36Sopenharmony_ci threshY_hysteresis = threshY_raising - threshY_falling 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ciWhat: /sys/.../events/illuminance_threshY_falling_value 2062306a36Sopenharmony_ciWhat: /sys/.../events/illuminance_threshY_raising_value 2162306a36Sopenharmony_ciDate: April 2012 2262306a36Sopenharmony_ciKernelVersion: 3.5 2362306a36Sopenharmony_ciContact: Johan Hovold <jhovold@gmail.com> 2462306a36Sopenharmony_ciDescription: 2562306a36Sopenharmony_ci Specifies the value of threshold that the device is comparing 2662306a36Sopenharmony_ci against for the events enabled by 2762306a36Sopenharmony_ci in_illuminance0_thresh_either_en (0..255), where Y in 0..3. 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci Note that threshY_falling must be less than or equal to 3062306a36Sopenharmony_ci threshY_raising. 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci These thresholds correspond to the eight zone-boundary 3362306a36Sopenharmony_ci registers (boundaryY_{low,high}) and define the five light 3462306a36Sopenharmony_ci zones. 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ciWhat: /sys/bus/iio/devices/iio:deviceX/in_illuminance0_zone 3762306a36Sopenharmony_ciDate: April 2012 3862306a36Sopenharmony_ciKernelVersion: 3.5 3962306a36Sopenharmony_ciContact: Johan Hovold <jhovold@gmail.com> 4062306a36Sopenharmony_ciDescription: 4162306a36Sopenharmony_ci Get the current light zone (0..4) as defined by the 4262306a36Sopenharmony_ci in_illuminance0_threshY_{falling,rising} thresholds. 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ciWhat: /sys/bus/iio/devices/iio:deviceX/out_currentY_currentZ_raw 4562306a36Sopenharmony_ciDate: May 2012 4662306a36Sopenharmony_ciKernelVersion: 3.5 4762306a36Sopenharmony_ciContact: Johan Hovold <jhovold@gmail.com> 4862306a36Sopenharmony_ciDescription: 4962306a36Sopenharmony_ci Set the output current for channel out_currentY when in zone 5062306a36Sopenharmony_ci Z (0..255), where Y in 0..2 and Z in 0..4. 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_ci These values correspond to the ALS-mapper target registers for 5362306a36Sopenharmony_ci ALS-mapper Y + 1. 5462306a36Sopenharmony_ci 5562306a36Sopenharmony_ci Note that out_currentY_raw provides the current for the 5662306a36Sopenharmony_ci current zone. 57