Instruction manual

AMPDIO DRIVERS
Page 110
See Also TCgetClock
TCgetLinkedClockChannel
TCsetGate
6.4.5.4 Get Connected Timer/Counter Clock Source TCgetClock
Gets a timer/counter channel’s currently connected clock source, if it has been configured.
This is not supported on PC214E or other models that have no clock connection registers.
Another function such as TCsetClock or one of the higher-level timer/counter functions has to
set the clock source after registering the board in order for this function to return the current
setting. If the current clock setting is not known, the function will return ERRSUPPORT.
SUPPORTED IN VERSION 4.40 ONWARDS.
i = TCgetClock (h, chip, chan, pclk)
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).
pclk pointer to short: pointer to a short integer
variable into which the current clock source is
to be stored.
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA
ERRSUPPORT
Prior Calls registerBoardEx
See Also TCsetClock
6.4.5.5 Get Linked Clock Channel TCgetLinkedClockChannel
Determines the GAT_OUTN_2 source channel for a specified timer counter channel.
SUPPORTED IN VERSION 4.40 ONWARDS.
i = TCgetLinkedClockChannel (h, chip, chan, pClkChip, pClkChan)