How to implement cmd interface in driver?

Hi,

a beginners' question: as far, as I understand, the driver must
contain a certain low-level functions, that execute a certain
low-level tasks (such as actual read/write of desired channel, etc).

Documentation is pretty much unclear about the exact way of describing
such things (despite the good manual on drivers would increase the
usage of comedi dramatically - I do not mind to contribute once I will
be past my current issues with half-functioning PCI1751 card). I have
only thoughts, but maybe someone here can help. So, I have some driver
that now understands only insn interface. I want to add cmd
functionaluty. So I need to:
- introduce  set of functions doing *something* to the card. What is
the list of such fuctions? What should they be able to do?
- tell COMEDI that driver got these functions, so I should fill their
names in some data structure describing driver. How?

From the driver I need to execing cmd's; I got a 1 pulse-per-second
signal that I would like to use as an external trigger to collect data
from card and issue a callback to deliver that data to main program.
Perhaps, data better be collected on interrupt (that card can generate
when 1 pulse-per-second arrives).

Any kind of help will be deeply appreciated.

Cheers, Askar

3 мая 2007 г. 12:24
ICQ 19576333  www.pbase.com/tsukasa_kun  
Reality is not optional (Sowell)

Received on 2007-05-03Z08:34:10