Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Jun : HOW TO: intercept IRQ in Delphi+WinXP

www.cryer.info
Managed Newsgroup Archive

HOW TO: intercept IRQ in Delphi+WinXP

Subject:HOW TO: intercept IRQ in Delphi+WinXP
Posted by:"Ricardo Villela Coppola" (coppo..@csp.com.br)
Date:Fri, 30 Jun 2006 09:44:50

Hi fellows,

remember that "High frequency polling thread" Thread?
Well, now we are using IRQ in an effort to overcome the intrinsic
complexity of polling a peace of hardware. But this approach comes
with its hazards too. How am I supposed to react to the IRQ signal?
I'm currently evaluating the WinDriver tool from Jungo Ltd and
used the Driver Wizard to create the skeleton for the driver.
I'm already able to receive the IRQ signal but not with the performance
I was expecting. Going through the docs I found out that I need a
Kernel PlugIn that runs in Kernel Mode in order to be able to actually
get every interruption in due time. But this just puts me in the
square 0 again cos creating a Kernel Mode Driver requires almost the
same knowledge needed to create a complete driver from scratch as well.

Could somebody show me some example of such a driver and the steps
needed to compile it? It simply needs to listen to an IRQ channel and
run a very simple state machine every time an interruption arrives.
The catch is that this state machine needs to run in Kernel Mode so
it won't loose any signal.

Perhaps someone could volunteer to develop this driver for us. Just
state your fee and we'll see if it is acceptable.

TIA.

--
Ricardo Villela Coppola (CSP Controle e Automação Ltda)

Replies:

www.cryer.info
Managed Newsgroup Archive