BL4S100 User’s Manual
72
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
digital output channel that is getting its PWM/PPM disabled,
0–7 (OUT0–OUT7)
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
digital output channel that is getting its PWM/PPM enabled,
0–7 (OUT0–OUT7)
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value.
-EPERM
— channel function does not permit this operation.
SEE ALSO
brdInit, setPWM, setPPM, pulseDisable