Instruction manual

AMPDIO DRIVERS
Page 153
6.4.8.25 Free a Hardware-Triggered One-Shot Pulse Train Generator — TCfreeOneShotPulseTrain
Frees resources used by a hardware-retriggerable one-shot pulse train generator as set up by
TCsetOneShotPulseTrain.
SUPPORTED IN VERSION 4.32 ONWARDS.
i = TCfreeOneShotPulseTrain (h, hOSPT)
where h short: board handle as issued by the
registerBoardEx function.
hOSPT short: one-shot pulse train generator handle,
as issued by the TCsetOneShotPulseTrain
function.
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
TCsetOneShotPulseTrain
See Also TCchangeOneShotPulseTrainTrigger
TCchangeOneShotPulseTrainCount
TCchangeOneShotPulseTrainDuration
TCcontrolOneShotPulseTrain
6.4.8.26 Set up a Programmable Width Pulse Generator — TCsetPWPulse
Sets up a programmable width pulse generator. Generates a hardware-retriggerable low-
going pulse (mono-shot), where the 'low' period is a specified proportion of a specified period.
This is similar to TCsetMonoShot. The timer output will go low for dutyCycle * period seconds
following a rising edge trigger on the gate input. The timer uses an internal clock source either
specified explicitly or chosen automatically. The automatically chosen clock source depends
on the specified period.
N.B. Use TCsetGate to change the trigger source.
The programmable width pulse generator is also used internally by the pulse-width modulated
pulse train generator (see TCsetPWMTrain).
SUPPORTED IN VERSION 4.42 ONWARDS.
i = TCsetPWPulse (h, chip, chan, clock, duty, period)
where h short: board handle as issued by the
registerBoardEx function.
chip short: address offset of timer/counter chip for
the pulse generator. One of the following pre-
defined constants may be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12