ADLINK ACL-8111 User Manual
Page 42
 
36
• C/C++ Library for DOS
5.3 _8111_Switch_Card_No
@ Description
This function is used on dual-cards system. After two ACL-8111 cards are 
initialized by the initial function, you can select one card which you want to 
operate. 
@ Syntax
int _8111_Switch_Card_No(int card_number)
@ Argument:
card_number: The card number to be initialized, only
two cards can be initialized, the card 
number must be CARD_1 or CARD_2. 
@ Return Code:
ERR_NoError 
ERR_InvalidBoardNumber 
@ Example:
#include “aclerr.h” 
#include “8111.h” 
 
main() 
{ 
 
_8111_Initial( CARD_1, 0x210 );
_8111_Initial( CARD_2, 0x220 );
/* Assume NoError when Initialize ACL-8111*/
 
 
_8111_Switch_Card_No( CARD_1 );
/*..... You can perform certain functions
to Card_1 here*/
 
 
_8111_Switch_Card_No( CARD_2 );
/*..... You can perform certain functions
to Card_2 here*/
}