I was looking at the following link: https://wiki.analog.com/software/linux/docs/iio/iio_snippets#iio_device_files
but noticed https://ez.analog.com/fpga/f/q-a/121342/is-there-a-way-to-use-internal-or-external-triggers-when-performing-data-capture-on-the-zcu102-using-the-adrv9009 as well.
I have a .c file running the zcu102/adrv9009 setup and i'd like to poll whether a trigger has toggled. Is there really no trigger functionality through iio?
What exactly do you want to do? Do you want to trigger a data capture?
IIO triggers exist (https://www.kernel.org/doc/html/latest/driver-api/iio/triggers.html), but cf_axi_adc_core.c doesn…
IIO triggers exist (https://www.kernel.org/doc/html/latest/driver-api/iio/triggers.html), but cf_axi_adc_core.c doesn't have a trigger mechanism implemented. We have it implemented for many precision ADCs and in those cases, some times, we are using an iio-trig-hrtimer for generating/controlling the sampling frequency.
Yes, I'd like to trigger a data capture based eg rising edge at some voltage. I added an hdl synth to the zcu102/adrv9009 design and am sending that signal to an rx input on the adrv9009. I'd like to be able to trigger and capture that waveform sort of like an oscilloscope. I've tried IIOscope for this purpose, but I can't seem to trigger on my data at all and see my waveform O(~10 us). I've verified everything else in the design- the only thing that makes sense is that IIO scope isn't triggering properly..
Is investigating https://www.kernel.org/doc/html/latest/driver-api/iio/triggers.html my best option? Since I'm trying to trigger using the adrv9009, is https://github.com/analogdevicesinc/linux/blob/master/drivers/iio/adc/adrv9009.c the relevant file? Can you give me advice on what I should do? Thanks!