Instruction manual

AMPDIO DRIVERS
Page 120
#1. One of the following pre-defined constants
may be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20
chan1 short: timer/counter #1 channel number within
the chip (0, 1 or 2).
pcount1 pointer to long: pointer to a long integer
variable into which the count value #1 result
will be placed.
chip2 short: address offset of the timer/counter chip
#2. One of the following pre-defined constants
may be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20
chan2 short: timer/counter #2 channel number within
the chip (0, 1 or 2).
pcount2 pointer to long: pointer to a long integer
variable into which the count value #2 result
will be placed.
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
TCsetMode
TCsetCount
TCsetCounts
See Also TCgetCounts
TCsetClock
TCsetGate
6.4.5.17 Gets a Timer’s Initial Count Value TCgetInitialCount
Gets a timer/counter channel’s initial count value, if it has been set.
Another function such as TCsetCount or one of the higher-level timer/counter functions has to
set the initial count after registering the board in order for this function to return the current
initial count value. If the current initial count value is not known, the function will return
ERRSUPPORT.