
AMPDIO DRIVERS
Page 162
Prior Calls registerBoardEx
TCsetPWMTrain
See Also TCfreePWMTrain
TCchangePWMTrainGate
TCchangePWMTrainFreq
TCcontrolPWMTrain
6.4.8.35 Control a Pulse Width Modulated Pulse Train Generator's Timer Channels — TCcontrolPWMTrain
Stops or starts the 'pulse' channel and/or the 'train' channel of the pulse-width modulated
pulse train generator. If the 'pulse' channel is stopped, its output will go high immediately. If
the 'train' channel is stopped, its output will go high immediately; if its output was low,this can
trigger a pulse on the 'pulse' channel.
On setting up the pulse width modulated pulse train generator, both channels are started. For
pulses to be generated, both channels must be started and the 'train' channel's gate input
must be high. If the 'train' channel is stopped or its gate input goes low, the current pulse will
complete unless the 'pulse' channel is stopped. Stopping the 'train' channel while its output is
low can trigger a pulse on the pulse channel unless the pulse channel is stopped.
SUPPORTED IN VERSION 4.42 ONWARDS.
i = TCcontrolPWMTrain (h, hPWMT, runPulse, runTrain)
where h short: board handle as issued by the
registerBoardEx function.
hPWMT short: pulse width modulated pulse train
generator handle, as issued by the
TCsetPWMTrain function.
runPulse short: controls the 'pulse' channel:
0 (stop the pulse channel [if started])
1 (start the pulse channel [if stopped])
runTrain short: controls the 'train' channel:
0 (stop the train channel [if started])
1 (start the train channel [if stopped])
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
TCsetPWMTrain
See Also TCfreePWMTrain
TCchangePWMTrainGate
TCchangePWMTrainFreq
TCchangePWMTrainDutyCycle
Komentáře k této Příručce