ADLINK cPCI-8554/R User Manual
Page 55

C/C++ Libraries • 45
5.7 _8554_Read_Status
@ Description
User can directly read current counter status with this function.
@ Syntax
C/C++ (DOS)
U16 _8554_Read_Status (U16 cardNo, U16 cntNo, U16 * cntrVal,
U16 *status)
C/C++ (Windows 95)
U16 W_8554_ Read_Status (U16 cardNo, U16 cntNo, U16 * cntrVal,
U16 *status)
Visual Basic (Windows 95)
W_8554_Read_Status (ByVal cardNo As Integer, ByVal cntNo
As Integer, cntrVal As Integer, status As Integer) As
Integer
@ Arguments
cardNo:
card number to be selected
cntNo:
Counter/Timer number. This value must be
between 1 and 12.
cntrVal:
Counter value read back from counter
status:
current status read back from counter, refer to
8254’s datasheet for more information
@ Return Value
ERR_NoError, ERR_BoardNoInit
ERR_InvalidCounterNo:
if cntNo is not in the range of 1 ~ 12