int rc_pwm_init(int ss, int frequency)
Configures subsystem 0, 1, or 2 to operate at a particular frequency.
int rc_pwm_set_duty(int ss, char ch, double duty)
Sets the duty cycle of a specific pwm channel.
int rc_pwm_set_duty_ns(int ss, char ch, unsigned int duty_ns)
Like rc_pwm_set_duty() but takes a pulse width in nanoseconds.
int rc_pwm_cleanup(int ss)
Stops a subsystem and puts it into a low-power state.