ICS Advent AOB8/16 Product Manual page 38

Table of Contents

Advertisement

IRQGEN.VXD
Description
IRQGEN.VXD is a Virtual Device Driver, or VxD, for Windows95. Together with
Win32IRQ.DLL, it allows a program to easily respond to hardware interrupt requests, or IRQs.
Installation
To install IRQGEN.VXD, copy it to C:\Windows\System. If your hard drive has a letter other than
C, substitute the appropriate letter. It is not necessary to reboot your system prior to using
IRQGEN.VXD.
Win32IRQ.DLL
Description
Win32IRQ.DLL is a Dynamic Link Library, of DLL, for Windows95. It provides a simple interface
to IRQGEN.VXD, allowing a program to easily respond to hardware interrupts. Three functions are
exported by Win32IRQ.DLL: InitIRQ,, Detect IRQ, and SendEOI. To use these functions in a
program, they must first be inported. In Pascal, the necessary lines would be:
function InitIRQ (MyIRQ: Byte) : Boolean; stdcall;external 'Win32IRQ.dll'
index 1;
function DetectIRQ: Boolean; stdcall; external "Win32IRQ.dll"index 2;
function SendEOI: Boolean; stdcall; external "Win32IRQ.dll" index 3;
In C, the library file Win32IRQ.lib must first be linked to the program. This is accomplished by
adding it to the project or editing the makefile. The following lines would then create the prototypes
for the DLL functions:
extern "c" _declspec (dllimport) bool pascal InitIRQ (unsigned char MyIRQ);
extern "c" _declspec (dllimport) bool pascal DetectIRQ (void);
extern "c" _declspec (dllimport) bool pascal SendEOI (void) ;
InitIRQ
This function performs the initialization required to detect IRQs. It must be called before
DetectIRQand SendEOI can be called, although calling those functions first will only cause them to
return a value of FALSE. The function's sole parameter is an unsigned 8-bit value containing the
IRQ number to monitor. The return result is TRUE if initialization was compledted successfully,
FALSE if not.
Addendum: 00650-010-6B
© 1998, Industrial Computer Source, 6260 Sequence Drive, San Diego, CA 92121-2720. All rights reserved.
ADDENDUM
IRQGEN.VXD and Win32IRQ.DLL
Chapter X: XXXXX
Page 1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aob16/16

Table of Contents