3.8 The Pulg&Play Functions
3.8.1 P1602_DriverInit
z
Description:
This function will detect all of the OME-PCI-1602 boards installed in
the system. This function must be called once before any other function is called.
z
Syntax :
WORD P1602_DriverInit(WORD *wTotalBoard);
z
Input Parameter :
*wTotalBoard: address of
wTotalBoard
wTotalBoard=1
Æ
one OME-PCI-1602 card in the system
wTotalBoard=n
Æ
n*OME-PCI-1602 cards in the system
z
Return Value :
NoError : OK
NoFoundBoard: can not detect any OME-PCI-1602
FindBoardError: handshake check error
DriverHandleError : the NAPPCI.VxD .open error for Windows 95
the Napwnt.SYS .open error for Windows NT
DriverCallError : call NAPPCI.VxD return error
Call Napwnt.SYS return error
z
Demo Program: All DEMO programs.
3.8.2 P1602_DriverClose
z
Description:
Returns all resources to the system. This function should be called
before the program is terminated.
z
Syntax :
void P1602_DriverClose(void);
z
Input Parameter :
void
z
Return Value :
void
z
Demo Program: All DEMO programs.
49
Содержание OME-PCI-1602
Страница 37: ... Demo Program DEMO9 C 37 ...