18c2ecf20Sopenharmony_ciWhat: /sys/bus/iio/devices/iio:deviceX/in_voltageY_sensing_mode 28c2ecf20Sopenharmony_ciDate: August 2015 38c2ecf20Sopenharmony_ciKernelVersion: 4.2.0 48c2ecf20Sopenharmony_ciContact: source@cogentembedded.com 58c2ecf20Sopenharmony_ciDescription: 68c2ecf20Sopenharmony_ci Program sensor type for threshold detector inputs. 78c2ecf20Sopenharmony_ci Could be either "GND-Open" or "Supply-Open" mode. Y is a 88c2ecf20Sopenharmony_ci threshold detector input channel. Channels 0..7, 8..15, 16..23 98c2ecf20Sopenharmony_ci and 24..31 has common sensor types. 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciWhat: /sys/bus/iio/devices/iio:deviceX/events/in_voltageY_thresh_falling_value 128c2ecf20Sopenharmony_ciDate: August 2015 138c2ecf20Sopenharmony_ciKernelVersion: 4.2.0 148c2ecf20Sopenharmony_ciContact: source@cogentembedded.com 158c2ecf20Sopenharmony_ciDescription: 168c2ecf20Sopenharmony_ci Channel Y low voltage threshold. If sensor input voltage goes lower then 178c2ecf20Sopenharmony_ci this value then the threshold falling event is pushed. 188c2ecf20Sopenharmony_ci Depending on in_voltageY_sensing_mode the low voltage threshold 198c2ecf20Sopenharmony_ci is separately set for "GND-Open" and "Supply-Open" modes. 208c2ecf20Sopenharmony_ci Channels 0..31 have common low threshold values, but could have different 218c2ecf20Sopenharmony_ci sensing_modes. 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci The low voltage threshold range is between 2..21V. 248c2ecf20Sopenharmony_ci Hysteresis between low and high thresholds can not be lower then 2 and 258c2ecf20Sopenharmony_ci can not be odd. 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci If falling threshold results hysteresis to odd value then rising 288c2ecf20Sopenharmony_ci threshold is automatically subtracted by one. 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ciWhat: /sys/bus/iio/devices/iio:deviceX/events/in_voltageY_thresh_rising_value 318c2ecf20Sopenharmony_ciDate: August 2015 328c2ecf20Sopenharmony_ciKernelVersion: 4.2.0 338c2ecf20Sopenharmony_ciContact: source@cogentembedded.com 348c2ecf20Sopenharmony_ciDescription: 358c2ecf20Sopenharmony_ci Channel Y high voltage threshold. If sensor input voltage goes higher then 368c2ecf20Sopenharmony_ci this value then the threshold rising event is pushed. 378c2ecf20Sopenharmony_ci Depending on in_voltageY_sensing_mode the high voltage threshold 388c2ecf20Sopenharmony_ci is separately set for "GND-Open" and "Supply-Open" modes. 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci Channels 0..31 have common high threshold values, but could have different 418c2ecf20Sopenharmony_ci sensing_modes. 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci The high voltage threshold range is between 3..22V. 448c2ecf20Sopenharmony_ci Hysteresis between low and high thresholds can not be lower then 2 and 458c2ecf20Sopenharmony_ci can not be odd. 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci If rising threshold results hysteresis to odd value then falling 488c2ecf20Sopenharmony_ci threshold is automatically appended by one. 49