ADLINK PCM-9112+ User Manual

Page 53

Advertising
background image

C/C++ Library

45

5.3 _9112_Initial

@ Description

A PCI-9112 card is initialized according to the card number. Because
the PCI-9112 has a PCI bus architecture and meets the plug and play
design, the IRQ and base_address (pass-through address) are assigned
by system BIOS directly. Every PCI-9112 card has to be initialized by
this function before any other function calls are allowed.

Note: Because configuration of PCI-9112 is handled by the system, there is

no jumpers or DMA selection on the PCI boards that need to be set
up by the users.

@ Syntax

Visual C++ (Windows-95)

int W_9112_Initial (int card_number, int *base_address,

int *irq_no)

Visual Basic (Windows-95)

W_9112_Initial (ByVal card_number As Long, base_address

As Long, irq_no As Long) As Integer

C/C++ (DOS)

int _9112_Initial (int card_number, int *base_address,

int *irq_no)

@ Argument

card_number: the card number to be initialized, only four cards can be

initialized, the card number must be CARD_1, CARD_2,
CARD_3, or CARD_4.

base_address: the I/O port base address of the card, it is asigned by system

BIOS.

irq_no: system will give an available interrupt number to this card automatically.

@ Return Code

ERR_NoError, ERR_InvalidBoardNumber
ERR_PCIBiosNotExist, ERR_PCICardNotExist
ERR_PCIIrqNotExist

Advertising