pwm_get_duty_cycle
if (pwm_get_duty_cycle(pwm) != state->duty_cycle ||
if (duty_ns == pwm_get_duty_cycle(pwm) &&