Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/driver/
Dledc.c31 uint32_t target_duty; member
582 uint32_t duty_tar = s_ledc_fade_rec[speed_mode][channel]->target_duty; in ledc_fade_isr()
683 …ade_with_step(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t target_duty, int scale, int… in _ledc_set_fade_with_step() argument
693 s_ledc_fade_rec[speed_mode][channel]->target_duty = target_duty; in _ledc_set_fade_with_step()
699 if (duty_cur > target_duty) { in _ledc_set_fade_with_step()
701 step_num = (duty_cur - target_duty) / scale; in _ledc_set_fade_with_step()
706 step_num = (target_duty - duty_cur) / scale; in _ledc_set_fade_with_step()
715 duty_cur, target_duty, step_num, cycle_num, scale, dir); in _ledc_set_fade_with_step()
717 ledc_duty_config(speed_mode, channel, LEDC_VAL_NO_CHANGE, target_duty, dir, 0, 1, 0); in _ledc_set_fade_with_step()
718 ESP_LOGD(LEDC_TAG, "Set to target duty: %d", target_duty); in _ledc_set_fade_with_step()
[all …]
/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/common_components/light_driver/
Diot_led.c143 …ade_with_step(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t target_duty, int scale, int… in _iot_set_fade_with_step() argument
150 if (duty_cur > target_duty) { in _iot_set_fade_with_step()
151 step_num = (duty_cur - target_duty) / scale; in _iot_set_fade_with_step()
153 scale = (step_num == 1023) ? (duty_cur - target_duty) / step_num : scale; in _iot_set_fade_with_step()
156 step_num = (target_duty - duty_cur) / scale; in _iot_set_fade_with_step()
158 scale = (step_num == 1023) ? (target_duty - duty_cur) / step_num : scale; in _iot_set_fade_with_step()
165 iot_ledc_duty_config(speed_mode, channel, -1, target_duty << 4, dir, 0, 1, 0); in _iot_set_fade_with_step()
171 …ade_with_time(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t target_duty, int max_fade_t… in _iot_set_fade_with_time() argument
175 uint32_t duty_delta = target_duty > duty_cur ? target_duty - duty_cur : duty_cur - target_duty; in _iot_set_fade_with_time()
189 return _iot_set_fade_with_step(speed_mode, channel, target_duty, 0, 0); in _iot_set_fade_with_time()
[all …]
/hal_espressif-3.6.0/components/driver/include/driver/
Dledc.h343 …ade_with_step(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t target_duty, uint32_t scale…
365 …ade_with_time(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t target_duty, int max_fade_t…
431 …ime_and_start(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t target_duty, uint32_t max_f…
450 …tep_and_start(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t target_duty, uint32_t scale…