analogdevicesinc / libiio

A cross platform library for interfacing with local and remote Linux IIO devices
http://analogdevicesinc.github.io/libiio/
GNU Lesser General Public License v2.1
483 stars 311 forks source link

IIO event handling support #236

Open mhennerich opened 5 years ago

mhennerich commented 5 years ago

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.

jeff-dagenais commented 5 years ago

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?

mhennerich commented 5 years ago

Sorry to say - Nothing done so far.

jeff-dagenais commented 5 years ago

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_*) ?

vdayananz commented 1 year ago

@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 ?

pcercuei commented 10 months ago

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

edrose-tewke commented 10 months ago

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.

pcercuei commented 10 months ago

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

pcercuei commented 9 months ago

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