beautypg.com

ADLINK PCI-7396 User Manual

Page 41

background image

C/C++ Libraries

• 33

5.3 _7396_Initial

@ Description

This function is used to initialize the PCI-7396. Every PCI-7396 has to be
initialized by this function before calling other functions.

@ Syntax

C/C++ (DOS)

U16 _7396_Initial (U16 *existCards, PCI_INFO *pciInfo)

C/C++ (Windows 95)

U16 W_7396_Initial (U16 *existCards, PCI_INFO *pciInfo)

Visual Basic (Windows 95)

W_7396_Initial (existCards As Integer, pciInfo As PCI_INFO) As

Integer

@ Argument

existCards: The numbers of installed PCI-7396 cards. The

returned value shows how many PCI-7396 cards are
installed in your system.


pciinfo:

It is a structure to memorize the PCI bus plug and
play initialization information which is decided
by P&P BIOS. The PCI_INFO structure is defined in
ACL_PCI.H. The base I/O address and the interrupt
channel number is stored in this variable.

@ Return Code

ERR_NoError

ERR_PCIBiosNotExist