There are some useful tools you can use in order to simplify and speed up your app development with IIO devices. They are available in tools/iio in the kernel tree:
- lsiio.c: Enumerate IIO triggers, devices, and channels
- iio_event_monitor.c: Monitor an IIO device's ioctl interface for IIO events
- generic_buffer.c: Retrieve, process, and print data received from an IIO device's buffer
- libiio: A powerful library developed by analog devices to interface IIO devices, and available at https://github.com/analogdevicesinc/libiio