Information

Technical reference20
Copyright © 2009 Pico Technology Ltd. All rights reserved.pl1000pg.en
3.3.14
pl1000SetPulseWidth
PICO_STATUS pl1000SetPulseWidth(
short handle,
unsigned short period,
unsigned char cycle
)
This function sets the pulse width of the PWM (pulse-width modulated) output.
Arguments:
handle: handle returned from pl1000OpenUnit or
pl1000OpenUnitProgress
period: the required period of the PWM waveform in microseconds,
from 100 to 1800
cycle: the required duty cycle as a percentage from 0 to 100
Returns:
PICO_OK
PICO_INVALID_HANDLE
PICO_SIG_GEN_PARAM
PICO_NOT_RESPONDING
13
15
23
23
23
23