we_CloseCard

long we_CloseCard(
     long Handle   //identifies the card to be closed. Returned from we_OpenCard
     );

Summary

The we_CloseCard function closes the specified card and releases information stored about that card.

Parameters

Handle:
    Identifies the card to be closed.  This value is returned from we_OpenCard.

Return Values

If the card was successfully closed, the function will return 0 to indicate success. If an error occurs, a negative error code will be returned. Errors that may be returned include:

More Information

When an I/O card is opened with we_OpenCard, certain information about that card such as its base address and card type is stored in the Portal API. This information signifies to the API that that particular card is currently in use. If there is another attempt to open the same card, it will fail and an error code will be returned. However, when we_CloseCard is called, it signifies to the API that the card is no longer in use. The card is then free to be reopened with we_OpenCard.

Related

we_OpenCard, we_CloseAllCards


Copyright 2004 Winford Engineering.