Home
last modified time | relevance | path

Searched refs:duty_delta (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/common_components/light_driver/
Diot_light.c420 int duty_delta = duty - duty_cur; in iot_light_fade_with_time() local
422 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()
Diot_led.c175 uint32_t duty_delta = target_duty > duty_cur ? target_duty - duty_cur : duty_cur - target_duty; in _iot_set_fade_with_time() local
188 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()
/hal_espressif-3.6.0/components/driver/
Dledc.c730 uint32_t duty_delta = target_duty > duty_cur ? target_duty - duty_cur : duty_cur - target_duty; in _ledc_set_fade_with_time() local
732 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()