linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Denis Ciocca <denis.ciocca@gmail.com>
To: linux-iio@vger.kernel.org
Subject: iio_buffer length
Date: Tue, 25 Sep 2012 16:05:14 +0200	[thread overview]
Message-ID: <CAEE_umr40Knv-LAYSCYENYXhc4eoaFEirwBzimk5dzgjMzhUkg@mail.gmail.com> (raw)

Hi guys,

I finally managed to resolve the issues about iio_trigger and iio_buffer.
Now I ask please you if you can clarify to me about use of
iio_generic_buffer and how I can use the /dev/iio:deviceX char-event
to catch data from buffer.
I compiled the generic-buffer program and I don't understand how datas
come out. My driver has 4 channels:
- 3 for accelerometer raw data (x,y,z)
- 1 for timestamp

The application set up the length of buffer to 32, but when I run the
application I don't see 32 samples but only 16. What means 32?
It is possible the use of buffer to catch every sample? (buffer length = 1)?
When I set buffer length to 1 the application doesn't work!

Thanks,
Denis

             reply	other threads:[~2012-09-25 14:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-25 14:05 Denis Ciocca [this message]
2012-09-25 16:20 ` iio_buffer length Jonathan Cameron
2012-09-25 21:20   ` Denis Ciocca
     [not found] <C0999E24-1BF1-4B7D-835B-8E3AC76C61F8@gmail.com>
2012-09-26  1:32 ` Ge Gao
2012-09-26  7:27   ` Jonathan Cameron
2012-09-26  8:04     ` Lars-Peter Clausen
2012-09-26 12:37     ` Denis Ciocca
2012-09-26 14:23       ` Jonathan Cameron
2012-09-26 18:10         ` Ge Gao

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=CAEE_umr40Knv-LAYSCYENYXhc4eoaFEirwBzimk5dzgjMzhUkg@mail.gmail.com \
    --to=denis.ciocca@gmail.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;
as well as URLs for NNTP newsgroup(s).