Re[2]: COMEDU CMD interface ideology and implementation (PCI1751 related)?

Thank you Frank,

though, I need asyncronous read of the counters, as I need to know,
how many counts happened per second.

I guess I figured out a solution: I will write an interrupt handler
and make it called from system timer (init_timer, etc.) similar to the
driver of comedi_test. This routine will read the counters and pass
their data to a buffer. I do not need hard realtime here so the
precision of the computer clock is enough. What do you think about
this schema?

Best,
Askar

> On Sunday 26 August 2007 13:19, Askar Ibragimov wrote:
>> Hello,
>>
>> I have a general question about implementing CMD interface.
>> First of all, can I normally use CMD interface on a device that do not
>> produce interrupts?

> You probably don't want to use commands at all.  It sounds like you just
> want to maybe arm the counter (use INSN_CONFIG_ARM) and then be able to
> read the count with insn_read.



27 ??????? 2007 ?. 9:02
ICQ 19576333  http://tsukasa.zenfolio.com 
God's in his heaven -  All's right with the world

Received on 2007-08-27Z05:09:13