作者wtchen (没有存在感的人)
看板LinuxDev
标题[问题] 如何快速读取 iio driver的值
时间Tue Aug 4 03:42:24 2015
根据
https://community.freescale.com/thread/315448
有两个方法:
1. One-shot conversions performed by reading the files in
/sys/bus/iio/devices/iio\:device0/
一个一个读取,不过超慢(我试过)
2. Continuous conversions of a single channel at a time using the
/dev/iio:device0 character device file
我试过这份文件提供的范例(page 24-25):
http://fr.slideshare.net/anilchowdary2050/127-iio-anewsubsystem
不过执行./generic-buffer 或直接cat /dev/iio\:device0 都会卡住
(我用RPi model B+)
请问有可能是哪出问题了呢?Thanks
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 86.200.13.228
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/LinuxDev/M.1438630947.A.553.html
※ 编辑: wtchen (86.200.13.228), 08/04/2015 23:01:26