Adlink ACL-8112 Series Manuel d'utilisateur Page 66

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 94
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 65
58
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*/
}
Vue de la page 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 93 94

Commentaires sur ces manuels

Pas de commentaire