3 c language library – ADLINK ACL-6128A User Manual
Page 33

High-Level Programming
• 25
4.3 C Language Library
The ACL-6128A digital-to-analog conversion library was constructed to provide
a simple programming interface for communicating with the ACL-6128A card.
The library provides easy to use functions which allow programmers to use the
features of the card in a high-level way.
The version of this library included in the CD is DOS only.
The detailed function description is specified in the following sections:
4.3.1 _6128_Initial
@ Description
An ACL-6128A card is initialized according to the card number and its
corresponding base address. Every ACL-6128A has to be initialized by this
function before calling other functions.
@ Syntax
int _6128_Initial(int card_number, int base_address)
@ Argument
card_number: The card number to be initialized, up to
8
cards
can be initialized, the card
number must
be within the range of 0 and
7.
base_address:
The I/O port base address of the card.
@ Return Code
ERR_NoError
ERR_InvalidBoardNumber
ERR_BaseAddressError