iio.md: add triger_now option
[contrib/mraa.git] / docs / iio.md
1 iio                             {#iio}
2 ===
3
4 IIO is the kernel's framework for supporting sensors. You may need to recompile
5 a kernel and add, this is from kernel 4.2:
6 CONFIG_IIO_DUMMY_EVGEN=m
7 CONFIG_IIO_SIMPLE_DUMMY=m
8 CONFIG_IIO_SIMPLE_DUMMY_EVENTS=y
9 CONFIG_IIO_SIMPLE_DUMMY_BUFFER=y
10
11 ## 'RAW' access
12
13 Mraa supports raw access
14
15 ###Channels
16
17 ###Attributes
18
19 ###Events
20
21 ###Triggers
22
23 Activate the trigger in /sys/class/iio
24 $ echo 1 > trigger0/trigger_now
25
26 ## Testing without hardware
27
28 Create a dummy iio device
29 $ modprobe iio_dummy
30
31 Create a dummy iio event generator
32 $ modprobe iio_dummy_evgen