- From: David Schleef <ds_at_schleef.org>
- Date: Thu, 15 Aug 2002 13:00:33 -0700
On Thu, Aug 15, 2002 at 12:46:43PM -0400, Michael Bellefeuille wrote: > Good day, > Does any one have any documentation other than what's on the website? > I am looking for documentation for the following function: > int comedi_sampl_to_phys(double *dest, int dst_stride, lsampl_t *src, > int src_stride, comedi_range *rng, lsampl_t maxdata, int n); > > I looked through the source and didn't understand all the variables.... > So what does *dest expect? What is dst_stride? And so on. > Also what is the difference between the above function and > comedi_to_phys()? comedi_sampl_to_phys() performs the action of comedi_to_phys() in a loop, with the source and destination being *src and *dest. In each iteration, src and dest are incremented by src_stride and dest_stride _bytes_. Although it's not currently implemented this way, it is possible to make comedi_sampl_to_phys() about 5 times faster than looping on a comedi_to_phys() call on i386. Note also that comedi_sampl_to_phys() works on sampl_t instead of lsampl_t, but that is mostly irrelevant. dave...
Received on 2002-08-15Z19:00:33