ADLINK ACL-8216 User Manual

Page 51

Advertising
background image

C/C++ Library 43

5.3 _8216_Switch_Card_No

@ Description

This function is used on dual-cards system. After initialized two ACL-
8216 cards, this function is used to select which card is used currently.

Note: In this library, only two ACL-8216 can be initialized. The reason is

only two DMA channels are supported in the card.

@ Syntax

int _8216_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 "8216.h"

main()
{
_8216_Initial( CARD_1, 0x210 );
_8216_Initial( CARD_2, 0x220 );
/* Assume NoError when Initialize ACL-8216 */

_8216_Switch_Card_No( Card_1 );
/*..... You can perform certain functions
to Card_1 here*/

_8216_Switch_Card_No( Card_2 );
/*..... You can perform certain functions
to Card_2 here*/

}

Advertising