19c8ea1b2SJohan HovoldWhat: /sys/.../events/in_illuminance0_thresh_either_en 29c8ea1b2SJohan HovoldDate: April 2012 39c8ea1b2SJohan HovoldKernelVersion: 3.5 49c8ea1b2SJohan HovoldContact: Johan Hovold <jhovold@gmail.com> 59c8ea1b2SJohan HovoldDescription: 69c8ea1b2SJohan Hovold Event generated when channel passes one of the four thresholds 79c8ea1b2SJohan Hovold in each direction (rising|falling) and a zone change occurs. 89c8ea1b2SJohan Hovold The corresponding light zone can be read from 99c8ea1b2SJohan Hovold in_illuminance0_zone. 109c8ea1b2SJohan Hovold 119c8ea1b2SJohan HovoldWhat: /sys/.../events/in_illuminance0_threshY_hysteresis 129c8ea1b2SJohan HovoldDate: May 2012 139c8ea1b2SJohan HovoldKernelVersion: 3.5 149c8ea1b2SJohan HovoldContact: Johan Hovold <jhovold@gmail.com> 159c8ea1b2SJohan HovoldDescription: 169c8ea1b2SJohan Hovold Get the hysteresis for thresholds Y, that is, 179c8ea1b2SJohan Hovold threshY_hysteresis = threshY_raising - threshY_falling 189c8ea1b2SJohan Hovold 199c8ea1b2SJohan HovoldWhat: /sys/.../events/illuminance_threshY_falling_value 209c8ea1b2SJohan HovoldWhat: /sys/.../events/illuminance_threshY_raising_value 219c8ea1b2SJohan HovoldDate: April 2012 229c8ea1b2SJohan HovoldKernelVersion: 3.5 239c8ea1b2SJohan HovoldContact: Johan Hovold <jhovold@gmail.com> 249c8ea1b2SJohan HovoldDescription: 259c8ea1b2SJohan Hovold Specifies the value of threshold that the device is comparing 269c8ea1b2SJohan Hovold against for the events enabled by 279c8ea1b2SJohan Hovold in_illuminance0_thresh_either_en (0..255), where Y in 0..3. 289c8ea1b2SJohan Hovold 299c8ea1b2SJohan Hovold Note that threshY_falling must be less than or equal to 309c8ea1b2SJohan Hovold threshY_raising. 319c8ea1b2SJohan Hovold 329c8ea1b2SJohan Hovold These thresholds correspond to the eight zone-boundary 3379e9b4e6SPeter Meerwald registers (boundaryY_{low,high}) and define the five light 349c8ea1b2SJohan Hovold zones. 359c8ea1b2SJohan Hovold 369c8ea1b2SJohan HovoldWhat: /sys/bus/iio/devices/iio:deviceX/in_illuminance0_zone 379c8ea1b2SJohan HovoldDate: April 2012 389c8ea1b2SJohan HovoldKernelVersion: 3.5 399c8ea1b2SJohan HovoldContact: Johan Hovold <jhovold@gmail.com> 409c8ea1b2SJohan HovoldDescription: 419c8ea1b2SJohan Hovold Get the current light zone (0..4) as defined by the 429c8ea1b2SJohan Hovold in_illuminance0_threshY_{falling,rising} thresholds. 439c8ea1b2SJohan Hovold 449c8ea1b2SJohan HovoldWhat: /sys/bus/iio/devices/iio:deviceX/out_currentY_currentZ_raw 459c8ea1b2SJohan HovoldDate: May 2012 469c8ea1b2SJohan HovoldKernelVersion: 3.5 479c8ea1b2SJohan HovoldContact: Johan Hovold <jhovold@gmail.com> 489c8ea1b2SJohan HovoldDescription: 499c8ea1b2SJohan Hovold Set the output current for channel out_currentY when in zone 509c8ea1b2SJohan Hovold Z (0..255), where Y in 0..2 and Z in 0..4. 519c8ea1b2SJohan Hovold 529c8ea1b2SJohan Hovold These values correspond to the ALS-mapper target registers for 539c8ea1b2SJohan Hovold ALS-mapper Y + 1. 54*cff8431bSJonathan Cameron 55*cff8431bSJonathan Cameron Note that out_currentY_raw provides the current for the 56*cff8431bSJonathan Cameron current zone. 57