Searched refs:duty_delta (Results 1 – 3 of 3) sorted by relevance
420 int duty_delta = duty - duty_cur; in iot_light_fade_with_time() local422 if (duty_delta > 0) { in iot_light_fade_with_time()423 float coe = (duty_delta / pow((double)l_chn->fade_step_num, (double)1 / DUTY_SET_GAMMA)); in iot_light_fade_with_time()431 duty_delta = 0 - duty_delta; in iot_light_fade_with_time()432 float coe = (duty_delta / pow((double)l_chn->fade_step_num, (double)1 / DUTY_SET_GAMMA)); in iot_light_fade_with_time()
175 uint32_t duty_delta = target_duty > duty_cur ? target_duty - duty_cur : duty_cur - target_duty; in _iot_set_fade_with_time() local188 if (duty_delta == 0) { in _iot_set_fade_with_time()200 if (total_cycles > duty_delta) { in _iot_set_fade_with_time()202 cycle_num = total_cycles / duty_delta; in _iot_set_fade_with_time()215 scale = duty_delta / total_cycles; in _iot_set_fade_with_time()
730 uint32_t duty_delta = target_duty > duty_cur ? target_duty - duty_cur : duty_cur - target_duty; in _ledc_set_fade_with_time() local732 if (duty_delta == 0) { in _ledc_set_fade_with_time()741 if (total_cycles > duty_delta) { in _ledc_set_fade_with_time()743 cycle_num = total_cycles / duty_delta; in _ledc_set_fade_with_time()750 scale = duty_delta / total_cycles; in _ledc_set_fade_with_time()