other versions
PWM_CONFIG(9) | Pulse-Width Modulation (PWM) | PWM_CONFIG(9) |
NAME¶
pwm_config - change a PWM device configurationSYNOPSIS¶
int
pwm_config(struct pwm_device * pwm,
int duty_ns,
int period_ns);
ARGUMENTS¶
pwmPWM device
duty_ns
"on" time (in nanoseconds)
period_ns
duration (in nanoseconds) of one cycle
RETURN¶
0 on success or a negative error code on failure.COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |