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

作者: wtchen (沒有存在感的人)   2015-08-04 03:42:24
根據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

Links booklink

Contact Us: admin [ a t ] ucptt.com