2015-11-16 18:24:31 +00:00
|
|
|
iio {#iio}
|
|
|
|
|
===
|
|
|
|
|
|
2015-11-16 18:43:07 +00:00
|
|
|
IIO is the kernel's framework for supporting sensors. You may need to recompile
|
|
|
|
|
a kernel and add, this is from kernel 4.2:
|
|
|
|
|
CONFIG_IIO_DUMMY_EVGEN=m
|
|
|
|
|
CONFIG_IIO_SIMPLE_DUMMY=m
|
|
|
|
|
CONFIG_IIO_SIMPLE_DUMMY_EVENTS=y
|
|
|
|
|
CONFIG_IIO_SIMPLE_DUMMY_BUFFER=y
|
2015-11-16 18:24:31 +00:00
|
|
|
|
|
|
|
|
## 'RAW' access
|
|
|
|
|
|
|
|
|
|
Mraa supports raw access
|
|
|
|
|
|
|
|
|
|
###Channels
|
|
|
|
|
|
|
|
|
|
###Attributes
|
|
|
|
|
|
|
|
|
|
###Events
|
|
|
|
|
|
|
|
|
|
###Triggers
|
|
|
|
|
|
|
|
|
|
## Testing without hardware
|
|
|
|
|
|
|
|
|
|
Create a dummy iio device
|
|
|
|
|
$ modprobe iio_dummy
|
|
|
|
|
|
|
|
|
|
Create a dummy iio event generator
|
|
|
|
|
$modprobe iio_dummy_evgen
|