- From: Pecenin <mpecenin_at_yahoo.com.br>
- Date: Tue, 19 Jul 2005 17:28:33 -0300 (ART)
I've seen in: https://cvs.comedi.org/pipermail/comedi/2004-June/006025.html that I can read data from buffer, on kernel space, using comedi_map(), comedi_get_buffer_offset(), comedi_mark_buffer_read(), etc. I also look at mmap.c example, but I can't find any documentation about how to USE comedi_map function? what is the "ptr" argument of comedi_map? Pecenin --- Andrés Cascallana Alvarez <acascallana_at_simulare.com> escreveu: > Use the following functions: > comedi_get_buffer_offset, > comedi_get_buffer_contents, comedi_mark_buffer_read. > Search on the comedi list archives; this question > has been already answered. > Regards, > > Andrés > > > > Message: 2 > > Date: Mon, 18 Jul 2005 23:40:05 -0300 (ART) > > From: Pecenin <mpecenin_at_yahoo.com.br> > > Subject: How to get the sampled values on > asynchronous aquisition (kernel > space) > > To: comedi_at_comedi.org > > > > Hello, > > > > I need write a 2.6.7 kernel module (with real-time > > support) that use a ni-atmio-16de-10 board to > sample a > > signal at 6000Hz (infinite sequence of > acquisitions). > > > > I see in Comedilib Reference how to configure the > > board to asynchronous acquisition, using > comedi_cmd > > struct, and also run the real-time example (and > other > > examples) on the download area, but I do not > > understand how to get samples (sampled values). > What > > function I need to use? How I manager the buffer? > > etc... > > > > Someone could help-me, please! > > > > Someone have an example, for kernel-space with > > asynchronous acquisition, that just "print" the > values > > (samples) with an infinite sequence of > acquisitions. > > > > Thanks for any help! > > > > Sorry, english is not my native language. > > > > Pecenin > > > _______________________________________________ > comedi mailing list > comedi_at_comedi.org > https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi > _______________________________________________________ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/
Received on 2005-07-19Z19:28:33