BL4S200 User’s Manual
101
setDuty_H
int setDuty_H(int channel, float duty);
FUNCTION DESCRIPTION
Sets the duty cycle of the PWM or PPM output on a high-current output channel. Will
affect any PWM/PPM that has been bound to this channel’s PWM/PPM.
PARAMETERS
channel
channel that is getting its duty cycle set, 0–7 (HOUT0–HOUT7)
duty
duty cycle of the PWM/PPM output (should be from 0 to 100%, a
duty cycle above 100.0% will be set to 100.0%)
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value.
-EPERM
— channel function does not permit this operation.
SEE ALSO
brdInit, setPWM_H, setPPM_H, setOffset_H, setFreq_H, setToggle_H, setSync_H
electronic components distributor