- From: Dan Christian <dchristian_at_mail.arc.nasa.gov>
- Date: Wed, 24 Jul 2002 16:39:42 -0700
Never mind. I forgot that comedi_buf_put_array is obsolete.
This is what I did instead.
n = comedi_buf_write_alloc (s->async, ii * sizeof (s16));
comedi_buf_memcpy_to (s->async, 0, dp, n);
comedi_buf_write_free (s->async, n);
dp += n / sizeof (s16);
ii -= n / sizeof (s16);
if (ii > 0) { /* buffer wrap, 2 chunks */
n = comedi_buf_write_alloc (s->async, ii * sizeof (s16));
comedi_buf_memcpy_to (s->async, 0, dp, n);
comedi_buf_write_free (s->async, n);
} /* any residual is an error */
-Dan
I was looking at the implementation of __comedi_buf_put_array.
..
Received on 2002-07-24Z22:39:42