libiio icon indicating copy to clipboard operation
libiio copied to clipboard

IIO event handling support

Open mhennerich opened this issue 6 years ago • 8 comments

libiio should support all aspects of IIO devices. Right now events are kind of unsupported.

Support of events was asked here: https://ez.analog.com/linux-device-drivers/linux-software-drivers/f/q-a/104138/does-libiio-support-iio-events

This issue/task is to track this development. If someone want's to work on this feel free to contribute.

mhennerich avatar Nov 22 '18 08:11 mhennerich

Hi Micheal,

Any work by anyone on this? What are people doing right now if one needs to configure thresholds in a DAC for example and wait for the event?

jeff-dagenais avatar Apr 26 '19 13:04 jeff-dagenais

Sorry to say - Nothing done so far.

mhennerich avatar Apr 26 '19 17:04 mhennerich

And about my second question? Directly access the pseudo-files I suppose (e.g. /sys/devices/platform/amba/ff020000.i2c/i2c-0/0-0048/iio:device3/events/in_voltage0_thresh_*) ?

jeff-dagenais avatar Apr 26 '19 20:04 jeff-dagenais

@mhennerich ,

It would be nice to get support for iio-events. When do you think there would be APIs that can configure and monitor events ?

vdayananz avatar May 10 '23 18:05 vdayananz

@vdayananz still around? I think I will have something to test before the end of the month.

pcercuei avatar Oct 11 '23 09:10 pcercuei

I'm interested in events support if it's been implemented, however my ability to do testing is going to be limited by my lack of access to hardware.

edrose-tewke avatar Nov 03 '23 16:11 edrose-tewke

@edrose-tewke I'm working on it right now, it should be ready next week!

pcercuei avatar Nov 03 '23 17:11 pcercuei

@vdayananz @edrose-tewke @jeff-dagenais Experimental IIO event support ready for review: https://github.com/analogdevicesinc/libiio/pull/1081

pcercuei avatar Nov 06 '23 15:11 pcercuei