1 This is a userspace application which accesses the adc via /dev/iio in continuous sampling mode.
3 The application scans the scan_elements folder in /dev/iio/devices/iio:deviceX/scan_elements for enabled channels.
5 Creates a data structure.
7 Sets the buffer size. Enables the buffer. And reads from the dev file for the driver.
9 The source code is located under kernel sources "drivers/staging/iio/Documentation/generic_buffer.c".
13 arm-arago-linux-gnueabi-gcc --static generic_buffer.c -o generic_buffer
17 -gcc --static generic_buffer.c -o generic_buffer
20 SOURCE: https://github.com/ZubairLK/adc-iio-continuous-sampling-userspace