BL4S200 User’s Manual
102
setOffset_H
int setOffset_H(int channel, float offset);
FUNCTION DESCRIPTION
Sets the offset of a PPM output on a high-current output channel. Will affect any PWM/
PPM output that has been bound to this channel’s PPM signal.
PARAMETERS
channel
channel that is getting its offset set, 0–7 (HOUT0–HOUT7)
duty
PPM offset (should be from 0 to 100%, an offset above 100.0%
will be set to 100.0%)
NOTE:
A zero offset will produce the smallest offset possible, which is one count. If you
must have a zero offset, use
setPWM_H()
instead of
setOffset_H()
.
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value.
-EPERM
— channel function does not permit this operation.
SEE ALSO
brdInit, setPWM_H, setPPM_H, setFreq_H, setDuty_H, setToggle_H, setSync_H