- From: Calin A. Culianu <calin_at_ajvar.org>
- Date: Tue, 10 Jan 2006 11:55:40 -0500 (EST)
On Mon, 9 Jan 2006, Frank Mori Hess wrote: > On Monday 09 January 2006 12:18 pm, Calin A. Culianu wrote: >> Hi, >> >> I am developing a comedi driver for a winsystems PC-104 based DIO board. >> The neat thing about this DIO board is that it supports edge-triggered >> interrupts on 24 individual DIO lines. >> >> Since I am too lazy to research this myself, could someone just tell me >> how edge-triggered interrupts are modeled using the comedi driver >> framework? >> >> Basically how can I give this functionality to the user of the driver >> using the comedi API and framework? It's not exactly a comedi command >> and it's not exactly a comedi_sv thingamajig. Or is it? > > The existing drivers implement a read command that generates a bogus sample > every time the interrupt is triggered. > Hmm, ok I see there are some drivers that do this (grepped for 'edge' in comedi/drivers). Weird. OK.. so the bogus sample doesn't contain packed bitfield data or anything? Instead people are supposed to just call comedi_dio_bitfield in their callback? I'll grep the sourced summore. -Calin
Received on 2006-01-10Z16:55:40