forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/Documentation/ABI/testing/sysfs-bus-iio-adc-envelope-detector
....@@ -5,7 +5,8 @@
55 Description:
66 The DAC is used to find the peak level of an alternating
77 voltage input signal by a binary search using the output
8
- of a comparator wired to an interrupt pin. Like so:
8
+ of a comparator wired to an interrupt pin. Like so::
9
+
910 _
1011 | \
1112 input +------>-------|+ \
....@@ -19,10 +20,12 @@
1920 | irq|------<-------'
2021 | |
2122 '-------'
23
+
2224 The boolean invert attribute (0/1) should be set when the
2325 input signal is centered around the maximum value of the
2426 dac instead of zero. The envelope detector will search
2527 from below in this case and will also invert the result.
28
+
2629 The edge/level of the interrupt is also switched to its
2730 opposite value.
2831