Instruction manual

AMPDIO DRIVERS
Page 149
be used, and may be on the previous chip or
wrap around to the highest chip.
pulseClock short: clock source for the pulse generator.
One of the following pre-defined constants may
be used, or use -1 to choose a value
automatically for boards with clock connection
registers:
-1 (choose automatically)
CLK_10MHZ = 1 (fixed 10 MHz clock)
CLK_1MHZ = 2 (fixed 1 MHz clock)
CLK_100KHZ = 3 (fixed 100 kHz clock)
CLK_10KHZ = 4 (fixed 10 kHz clock)
CLK_1KHZ = 5 (fixed 1 kHz clock)
pulseCount short: number of pulses to output in each train.
pulseShape short: shape of pulses:
0 (negative-going for 1 clock period)
1 (negative-going square pulses)
oneshotClock short: clock source for the one-shot train
duration. One of the following pre-defined
constants may be used, or use -1 to choose a
value automatically for boards with clock
connection registers:
-1 (choose automatically)
CLK_10MHZ = 1 (fixed 10 MHz clock)
CLK_1MHZ = 2 (fixed 1 MHz clock)
CLK_100KHZ = 3 (fixed 100 kHz clock)
CLK_10KHZ = 4 (fixed 10 kHz clock)
CLK_1KHZ = 5 (fixed 1 kHz clock)
oneshotTrigger short: trigger input setting for the hardware-
retriggerable one-shot. One of the following
pre-defined constants may be used:
GAT_VCC = 0 (trigger input high)
GAT_GND = 1 (trigger input low)
GAT_EXT = 2 (trigger from external
gate input)
GAT_OUTN_2 = 3 (trigger from inverted
output of a timer
channel offset by -2
from the one-shot
channel)
oneshotTime double: desired one-shot train duration in
seconds.
Returns short: Handle to the one-shot pulse train generator (>= 0). Use this
handle to call the TCfreeOneShotPulseTrain function when
finished, in order to free up the counter/timers for re-use.
or ERRHANDLE
ERRCHAN