All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandru Ardelean <ardeleanalex@gmail.com>
To: Patrick Regnouf <patrick@patricknet.net>
Cc: linux-iio <linux-iio@vger.kernel.org>
Subject: Re: IRQ related query
Date: Fri, 30 Jul 2021 09:55:26 +0300	[thread overview]
Message-ID: <CA+U=DsroXD3v85COsvXqB5xkVYTzayuEb-gWWF=-45+MhJyUfA@mail.gmail.com> (raw)
In-Reply-To: <2B7BAE11-FF1D-4A3C-9E00-E3ACD280D66E@patricknet.net>

On Thu, Jul 29, 2021 at 3:54 PM Patrick Regnouf <patrick@patricknet.net> 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

  reply	other threads:[~2021-07-30  6:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-29 12:50 IRQ related query Patrick Regnouf
2021-07-30  6:55 ` Alexandru Ardelean [this message]
2021-07-30  8:03   ` patrick
2021-07-30  8:44     ` Alexandru Ardelean
2021-07-30 10:08       ` Patrick Regnouf
2021-07-30 13:38         ` Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+U=DsroXD3v85COsvXqB5xkVYTzayuEb-gWWF=-45+MhJyUfA@mail.gmail.com' \
    --to=ardeleanalex@gmail.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=patrick@patricknet.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.