Robot Control Library
pwm.h File Reference

Go to the source code of this file.

Functions

int rc_pwm_init (int ss, int frequency)
 Configures subsystem 0, 1, or 2 to operate at a particular frequency. More...
 
int rc_pwm_cleanup (int ss)
 Stops a subsystem and puts it into a low-power state. More...
 
int rc_pwm_set_duty (int ss, char ch, double duty)
 Sets the duty cycle of a specific pwm channel. More...
 
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. More...