![ADLINK Technology HSLink HSL-AI16 User Manual Download Page 37](http://html1.mh-extra.com/html/adlink-technology/hslink-hsl-ai16/hslink-hsl-ai16_user-manual_2852692037.webp)
NT DLL Programming
•
29
3.3 How to Program with DLL
Initial
l
Syntax
U16 _stdcall W_HSL_Initial(U16 card_ID);
Ø
Description
Initialize the hardware and software states of an HSLink master
card(PCI-7851 or PCI-7852), and then return a status that corresponds to
the card initialized. W_HSLink_Initial must be called before any other
HSLink NT DLL functions can be called for the card. The function initializes
the card and variables internal to HSLink NT DLL. Because HSLink master
card meets the plug-and-play design, the base address and IRQ level are
assigned by BIOS directly.
Ø
Parameter
card_ID
The sequence number of HSLink master card
(PCI-7851 or PCI-7852). This first master card (in the
most prior slot) is with card_ID =0. For example, if there
are two HSLink master card plugged on your PC, the
HSLink master card in prior slot should be registered
with card_ID = 0, the other HSLink master card with
card_ID = 1.
Ø
Return Number
ERR_NoError, ERR_OpenDriverFail, ERR_InvalidBoardNumber
Ø
Example
result = W_HSL_Initial(0);