Linux IIO development
 help / color / mirror / Atom feed
From: Michael Welling <mwelling@ieee.org>
To: Greg Wilson-Lindberg <GWilson@sakuraus.com>
Cc: "linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: Re: Adding MAX1363 to BBB
Date: Fri, 28 Aug 2015 19:32:26 -0500	[thread overview]
Message-ID: <20150829003143.GA21865@deathstar> (raw)
In-Reply-To: <782E3A02C2EB2347BEA6DEA69DC7AB86021D3CBD4A61@sfamail.SAKURAUS.LOCAL>

On Fri, Aug 28, 2015 at 04:56:20PM -0700, Greg Wilson-Lindberg wrote:
> 
> I've got the system running, but I get an invalid argument error on the call to iio_buffer_refill().  I'm basically using the same code as for the tsadc, just added in a fourth channel, and none of the setup calls are returning errors, but the first iio_buffer_refill() call returns an error.  I've dumped out the parameter that is being passed to the iio_buffer_refill() call and it is the same as the value that was returned from the iio_device_create_buffer() call.
> 
> I've looked at the libiio source and I don't see anything obvious that should return invalid argument for the iio_buffer_refill() call.
>

I believe that you need to register an interrupt for buffered access to work.

Do you have an interrupt connected and registered?


  reply	other threads:[~2015-08-29  0:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-24 16:26 Adding MAX1363 to BBB Greg Wilson-Lindberg
2015-08-24 16:54 ` Michael Welling
2015-08-24 17:09   ` Greg Wilson-Lindberg
2015-08-27 19:10   ` Greg Wilson-Lindberg
2015-08-27 19:16     ` Michael Welling
2015-08-27 20:40       ` Greg Wilson-Lindberg
2015-08-27 20:42         ` Michael Welling
2015-08-27 21:06           ` Greg Wilson-Lindberg
2015-08-27 21:44             ` Greg Wilson-Lindberg
2015-08-28 23:56               ` Greg Wilson-Lindberg
2015-08-29  0:32                 ` Michael Welling [this message]
2015-08-31 16:01                   ` Greg Wilson-Lindberg
2015-08-31 16:24                     ` Jonathan Cameron
2015-08-31 16:52                       ` Michael Welling
2015-08-31 16:56                         ` Jonathan Cameron
2015-08-31 16:59                           ` Greg Wilson-Lindberg

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=20150829003143.GA21865@deathstar \
    --to=mwelling@ieee.org \
    --cc=GWilson@sakuraus.com \
    --cc=linux-iio@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox