CMD part of a driver: questions

Hello,

I am writing the new driver for Advantech PCI1751 and need to
implement CMD interface support. I already got INSN part of the driver
ready, but now I need a contionious infinite acquisition. Can anyone
please help answering the following questions:

- what is the purpose of the procedure declared in the "do_cmd" field
of the comedi_subdevice record? I checked as an example das16m1.c of
COMEDI distribution and the routine just doing some setup. I need to
perform "acquisitions" on counter chip, so what I can write in this
routine? Just start counter? :)

- There is no indication of any activity of reading something in
do_cmd procedures that I saw in various drivers. Am I right that
COMEDI uses insn interface reading routines to handle CMD
acquisitions?

Cheers, Askar

13 августа 2007 г. 0:27
ICQ 19576333  http://tsukasa.zenfolio.com 
God's in his heaven -  All's right with the world

Received on 2007-08-12Z20:33:40