ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 Alpha Data


ADMXRC2_OpenCardByIndex

Prototype

ADMXRC2_STATUS
ADMXRC2_OpenCardByIndex(
    unsigned int    Index,
    ADMXRC2_HANDLE* Card);

Arguments

Argument Type Purpose
Index In Index of card to open
Card Out Handle to opened card

Return value

Value Meaning
ADMXRC2_SUCCESS The card was successfully opened
ADMXRC2_CARD_NOT_FOUND The card was in use or not physically present

Description

This function is used to open and obtain a handle to an ADM-XRC card.

The particular card to open is identified by the Index parameter. The cards in a system are enumerated in a system-dependent order, and the order of enumeratation may vary depending upon the system's bus topology. Applications should not rely upon a particular order of enumeration.

The handle returned in the Card parameter should be used in all further API calls that need to access this card. When access to the card is no longer required, call ADMXRC2_CloseCard to close the handle and free the card.

 


 Top of page