extra board specific functions

Hi,

  I'm fairly new to Comedi, but went through the online manual quite a
few times, and checked/modified some drivers that I'm currently using.
They work okay, but I'd like to extend the functionality - the card
can do more, than what the current driver allows.

  My question is, whether it is possible, and if yes, what would be
the best way, to add additional commands to the driver? For example,
if my DAC card supports both triggered update of the output channel,
and updating the channel output right after setting the output value,
I'd like to have a function, to change between these modes.

  The "comedi_driver" structure seems to have only a few set
references, not much more than the attach and detach functions;
  The comedi commands are all preset and different from what what i need.
  Adding a new "instruction" is not good either, because it has also a
well defined list what kind of instructions I can have.

  Is there a proper way to implement any extra, board specific
function? Or should I have a workaround, like calling INSN_WRITE
instruction with some parameters, when it is setting the board,
instead of setting the output?  This latter might work, but it doesn't
feel to be the right way at all....

   Cheers,
      Greg

Received on 2007-08-13Z22:29:45