Function rust_pigpio::pwm::get_pwm_duty_cycle [] [src]

pub fn get_pwm_duty_cycle(user_gpio: u32) -> GpioResponse

Returns the PWM dutycycle setting for the GPIO.

For normal PWM the dutycycle will be out of the defined range for the GPIO (see 'get_pwm_range'). If a hardware clock is active on the GPIO the reported dutycycle will be 500000 (500k) out of 1000000 (1M). If hardware PWM is active on the GPIO the reported dutycycle will be out of a 1000000 (1M). Normal PWM range defaults to 255.