Skip to Content
Linux Device Drivers Development
book

Linux Device Drivers Development

by John Madieu
October 2017
Intermediate to advanced
586 pages
14h 8m
English
Packt Publishing
Content preview from Linux Device Drivers Development

Capturing using the hrtimer trigger

The following is the set of commands that allow you to capture data using the hrtimer trigger:

 # echo /sys/kernel/config/iio/triggers/hrtimer/trigger0
 # echo 50 > /sys/bus/iio/devices/trigger0/sampling_frequency
 # echo 1 > /sys/bus/iio/devices/iio:device0/scan_elements/in_voltage4_en
 # echo 1 > /sys/bus/iio/devices/iio:device0/scan_elements/in_voltage5_en
 # echo 1 > /sys/bus/iio/devices/iio:device0/scan_elements/in_voltage6_en
 # echo 1 > /sys/bus/iio/devices/iio:device0/scan_elements/in_voltage7_en
 # echo 1 > /sys/bus/iio/devices/iio:device0/buffer/enable
 # cat /dev/iio:device0 | xxd -
 0000000: 0188 1a30 0000 0000 8312 68a8 c24f 5a14 ...0......h..OZ. 0000010: 0188 1a30 0000 0000 192d 98a9 c24f 5a14 ...0.....-...OZ. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux Device Drivers, Second Edition

Linux Device Drivers, Second Edition

Jonathan Corbet, Alessandro Rubini
Linux Device Drivers, 3rd Edition

Linux Device Drivers, 3rd Edition

Jonathan Corbet, Alessandro Rubini, Greg Kroah-Hartman

Publisher Resources

ISBN: 9781785280009Supplemental Content