Instruction manual
AMPDIO DRIVERS
Page 114
timer/counter chip containing the linked
channel is to be stored.
pGatChan pointer to short: pointer to a short integer
variable into which the channel number of the
linked timer/counter channel is to be stored.
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
See Also TCgetLinkedClockChannel
TCsetGate
6.4.5.9 Configure Timer/Counter Mode — TCsetMode
Sets a timer counter to one of its six available modes of operation. Reading and loading of
count values by LSB followed by MSB is selected, as is a 16-bit binary count.
i = TCsetMode (h, chip, chan, mode)
where h short: board handle as issued by the
registerBoardEx function.
chip short: address offset of the timer/counter chip.
One of the following pre-defined constants may
be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20
chan short: timer/counter channel number within the
chip (0, 1 or 2).
mode short: counter mode (0 to 5). See the 82C54
data sheet.
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
See Also TCsetCount
TCsetClock
TCsetGate
TCgetStatus
TCgetMode