other versions
PWM_SET_POLARITY(9) | Pulse-Width Modulation (PWM) | PWM_SET_POLARITY(9) |
NAME¶
pwm_set_polarity - configure the polarity of a PWM signal
SYNOPSIS¶
int pwm_set_polarity(struct pwm_device * pwm, enum pwm_polarity polarity);
ARGUMENTS¶
pwm
PWM device
polarity
new polarity of the PWM signal
DESCRIPTION¶
Note that the polarity cannot be configured while the PWM device is enabled.
RETURN¶
0 on success or a negative error code on failure.
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |