Walking through user-space IIO tools
Though we have already gone through the steps required to capture IIO data, it might be tedious and confusing since each step must be performed manually. There are some useful tools you can use to ease and speed up your app development dealing with IIO devices. These are all from the libiio
package, developed by Analog Devices, Inc. to interface IIO devices, available here: https://github.com/analogdevicesinc/libiio.
User-space applications can easily use the libiio
library, which under the hood is a wrapper that relies on the following interfaces:
/sys/bus/iio/devices
, the IIO sysfs interface, which is mainly used for configuration/settings- The
/dev/iio/deviceX
character device, for data/acquisitions
The preceding are exactly what we have manually dealt with so far. The tool's source code can be found under the library's tests
directory: https://github.com/analogdevicesinc/libiio/tree/master/tests offers tools such...