ADLINK ACL-8112 Series User Manual
Page 64

56
• C Language Library
7.2
_8112_Switch_Card_No
Description
This function is used on a system that has two ACL-8112 card inserted.
After initializing the two ACL-8112 cards, this function is called upon to
select the default card.
Note: This library only has support for two ACL-8112 because only two DMA
channels are supported by the card.
Syntax
int _8112_Switch_Card_No(int card_number)
int _8112pg_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 “8112.h”
main()
{
_8112_Initial( CARD_1, A8112B_HG, 0x210 );
_8112_Initial( CARD_2, A8112B_DG, 0x220 );
/* Assume NoError when Initialize ACL-8112 */
_8112_Switch_Card_No( CARD_1 );
/*..... You can perform certain functions
to Card_1 here*/
_8112_Switch_Card_No( CARD_2 );
/*..... You can perform certain functions
to Card_2 here*/
}