Re: IRQ related query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 29, 2021 at 3:54 PM Patrick Regnouf <patrick@xxxxxxxxxxxxxx> wrote:
>
> Hello,
>

[I did not hit Reply All on my first email]

Hey,

For libiio in particular, it's on Github:
https://github.com/analogdevicesinc/libiio

I think you could raise some questions as issues there.

And there's also a wiki that can be browsed:
https://wiki.analog.com/resources/tools-software/linux-software/libiio
https://wiki.analog.com/resources/tools-software/linux-software/libiio_internals

Now, regarding IIO events support in libiio, I am not sure [at this
point in time] whether support is implemented.

But an example of getting events from IIO can be found here:
https://github.com/torvalds/linux/blob/master/tools/iio/iio_event_monitor.c

The https://github.com/torvalds/linux/blob/master/tools/iio/  folder
in the kernel should offer some basic bits about accessing IIO
devices, and getting events [which can be driver IRQ events, or kernel
IIO polling]

I was going to answer on the previous question that you raised, but I forgot.
Apologies. It's been a busy week.

Alex

> Please someone tell me whether this is the right mailing list to ask questions related to actually using libiio or actually please point me in the right direction
>
> To summarise I am looking for C source code that would capture an IRQ emitted by an iio accelerometer (LSM6DSLTR) all of that using libiio
>
> I have successfully implemented a program that can read the x, y and z axis but that means polling constantly. Not an option…  the iio_device_set_trigger however returns “no such file or directory “
>
> Thanks
>
> /Patrick




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux