linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* iio_buffer length
@ 2012-09-25 14:05 Denis Ciocca
  2012-09-25 16:20 ` Jonathan Cameron
  0 siblings, 1 reply; 9+ messages in thread
From: Denis Ciocca @ 2012-09-25 14:05 UTC (permalink / raw)
  To: linux-iio

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-09-26 18:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <C0999E24-1BF1-4B7D-835B-8E3AC76C61F8@gmail.com>
2012-09-26  1:32 ` iio_buffer length 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
2012-09-25 14:05 Denis Ciocca
2012-09-25 16:20 ` Jonathan Cameron
2012-09-25 21:20   ` Denis Ciocca

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).