80ca9a3dfed9c066dd9c46d427a0f291c02bdbf4
[matches/MCTX3420.git] / sensors / sensors test drivers (c) / readme.txt
1 This is a userspace application which accesses the adc via /dev/iio in continuous sampling mode.
2
3 The application scans the scan_elements folder in /dev/iio/devices/iio:deviceX/scan_elements for enabled channels.
4
5 Creates a data structure.
6
7 Sets the buffer size. Enables the buffer. And reads from the dev file for the driver.
8
9 The source code is located under kernel sources "drivers/staging/iio/Documentation/generic_buffer.c".
10
11 How to compile:
12
13 arm-arago-linux-gnueabi-gcc --static generic_buffer.c -o generic_buffer
14
15 or
16
17 -gcc --static generic_buffer.c -o generic_buffer
18
19
20 SOURCE: https://github.com/ZubairLK/adc-iio-continuous-sampling-userspace

UCC git Repository :: git.ucc.asn.au