BL4S200 User’s Manual
91
pulseDisable
int pulseDisable(int channel, int state);
FUNCTION DESCRIPTION
Disables a PWM/PPM output and sets the output to
state
. The pin can be restored to
the same PWM/PPM operation as before by calling
pulseEnable()
.
PARAMETERS
channel
channel that is getting its PWM/PPM disabled,
0–29 (DIO0–DIO29)
state
state that the digital output will be set to (0 or 1)
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value.
-EPERM
— channel function does not permit this operation.
SEE ALSO
brdInit, setPWM, setPPM, pulseEnable
pulseEnable
int pulseEnable(int channel);
FUNCTION DESCRIPTION
Enables a disabled PWM/PPM output. The pin is restored to the same PWM/PPM
operation it had before being disabled.
PARAMETER
channel
channel that is getting its PWM/PPM enabled,
0–29 (DIO0–DIO29)
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value.
-EPERM
— channel function does not permit this operation.
SEE ALSO
brdInit, setPWM, setPPM, pulseDisable