aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLeonard Göhrs <[email protected]>2023-07-07 08:36:35 +0200
committerJonathan Cameron <[email protected]>2023-07-20 19:21:30 +0100
commit6c7bc1d27bb227da89aa7e1be71d01b92719551d (patch)
tree1b4f6d5d452f8b81e4cfaaaae05a1cbde80272c5 /tools/perf/scripts/python
parent1f2a4d506f47200550b1dbf9e77e2a3d0ffec7b2 (diff)
iio: adc: ti-lmp92064: add buffering support
Enable buffered reading of samples from the LMP92064 ADC. The main benefit of this change is being able to read out current and voltage measurements in a single transfer, allowing instantaneous power measurements. Reads into the buffer can be triggered by any software triggers, e.g. the iio-trig-hrtimer: $ mkdir /sys/kernel/config/iio/triggers/hrtimer/my-trigger $ cat /sys/bus/iio/devices/iio\:device3/name lmp92064 $ iio_readdev -t my-trigger -b 16 iio:device3 | hexdump WARNING: High-speed mode not enabled 0000000 0000 0176 0101 0001 5507 abd5 7645 1768 0000010 0000 016d 0101 0001 ee1e ac6b 7645 1768 ... Signed-off-by: Leonard Göhrs <[email protected]> Reviewed-by: Nuno Sa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions