Scroll to navigation

PWM_CONFIG(9) Pulse-Width Modulation (PWM) PWM_CONFIG(9)

NAME

pwm_config - change a PWM device configuration

SYNOPSIS

int pwm_config(struct pwm_device * pwm, int duty_ns, int period_ns);

ARGUMENTS

pwm

PWM 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.