3 system and initialization, 8144_initial, System and initialization – ADLINK PCI-8144 User Manual
Page 82
72
Function Library
6.3
System and Initialization
_8144_initial
Device initialization
Description:
This function is used to initialize PCI-8144 cards and assign
hardware resources. All 8144 cards must be initialized by this
function before calling other functions in your applications. By
setting the parameter “ManualId”, user can choose the type
that the card’s ID is assigned manually or automatically. In the
end of your application, you should use the function,
_8144_close(), to release its resources.
Syntax:
I16 _8144_initial( I32 *CardIdInBit, I16 ManualId
);
B_8144_initial( CardIdInBit As Long, ByVal
ManualId As Integer) As Integer
Parameters:
I32 *CardIdInBit
: Card ID information in bit format.
Note: if the value of CardIdInBit is 0x3, that means there are 2
cards in your system and those card ID are 0 and 1 respec-
tively.
I16 ManualId
: Enable the On board dip switch (SW1) to
decide theCard ID. [0:By system assigned, 1:By dip switch]
Return Values:
ERR_NoError
ERR_OpenDriverFailed
ERR_InsufficientMemory
ERR_CardIdDuplicate
ERR_NoDeviceFound
Example:
I16 ret; // return value
I32 CardIdInBit;