I am using an AXI adc with the Zedboard, which works with the AD IIO oscilloscope. I am trying to write my own program to read the ADC values.
According to the IIO docs, there should be some files in the folder /sys/bus/iio/devices/iio:device0 like "in_voltage0", "in_voltage1", etc, which are read to get the values. I suspect that these files are usually for one-time readings that don't use the ring buffer, but I am not sure. I think there might be another way to read the ADC from memory directly, but I don't know how to access that information.
Obviously since IIO scope works without those files, there IS a high speed way to read the ADC without using the in_voltageX files in the iio:deviceX folder, but I can't follow its code well enough to understand how to write my own code that does the same thing. I have also looked at the iioutils program, but again, I can't figure it out.
I'd appreciate any *pointers you might have.