[問題] 如何快速讀取 iio driver的值

看板LinuxDev作者 (沒有存在感的人)時間9年前 (2015/08/04 03:42), 9年前編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
根據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
文章代碼(AID): #1LlyGZLJ (LinuxDev)
文章代碼(AID): #1LlyGZLJ (LinuxDev)