beautypg.com

ADLINK PCI-8554 User Manual

Page 51

background image

C/C++ Libraries • 41

5.3 _8554_Initial

@ Description

The cPCI/PCI-8554/R cards are initialized by this function. The
software library could be used to control multiple cPCI/PCI-8554/R
cards. Because the cPCI/PCI-8554/R is designed with the PCI bus
architecture and meets the plug and play specifications, the IRQ
and I/O address are assigned by system BIOS directly.

@ Syntax

C/C++ (DOS)

U16 _8554_Initial (U16 *existCards, PCI_INFO *pciinfo)

C/C++ (Windows 95)

U16 W_8554_Initial (U16 *existCards, PCI_INFO *pciinfo)

Visual Basic (Windows 95)

W_8554_Initial (existCards As Integer, pciInfo As PCI_INFO) As

Integer

@ Arguments

existCards:

The numbers of installed cPCI/PCI-8554/R cards.
The returned value shows how many cPCI/PCI-
8554/R cards are installed in the system.

pciinfo:

This structure stores the PCI bus plug and play
initialization information, which is determined by
PnP BIOS. The PCI_INFO structure is defined
in the PCI_8554.H header file. The base I/O
address and the interrupt channel number is
stored in pciinfo for reference.

@ Return Value

ERR_NoError, ERR_PCIBiosNotExist