This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_pwm_set_duty

Function Documentation

int rc_pwm_set_duty(int ss, char ch, double duty)

Sets the duty cycle of a specific pwm channel.

Parameters
  • ss[in] subsystem 0,1,2

  • ch[in] channel ‘A’ or ‘B’

  • duty[in] between 0.0 (off) and 1.0(full on)

Returns

Returns 0 on success or -1 on failure.