[問題] 如何快速讀取 iio driver的值
根據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://www.ptt.cc/bbs/LinuxDev/M.1438630947.A.553.html
※ 編輯: wtchen (86.200.13.228), 08/04/2015 23:01:26
LinuxDev 近期熱門文章
PTT數位生活區 即時熱門文章