Lines Matching refs:target_duty

31     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()
723 …ade_with_time(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t target_duty, int max_fade_t… in _ledc_set_fade_with_time() argument
730 uint32_t duty_delta = target_duty > duty_cur ? target_duty - duty_cur : duty_cur - target_duty; in _ledc_set_fade_with_time()
733 return _ledc_set_fade_with_step(speed_mode, channel, target_duty, 0, 0); in _ledc_set_fade_with_time()
738 return _ledc_set_fade_with_step(speed_mode, channel, target_duty, 0, 0); in _ledc_set_fade_with_time()
756 return _ledc_set_fade_with_step(speed_mode, channel, target_duty, scale, cycle_num); in _ledc_set_fade_with_time()
775 …ade_with_time(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t target_duty, int max_fade_t… in ledc_set_fade_with_time() argument
779 LEDC_ARG_CHECK(target_duty <= ledc_get_max_duty(speed_mode, channel), "target_duty"); in ledc_set_fade_with_time()
784 _ledc_set_fade_with_time(speed_mode, channel, target_duty, max_fade_time_ms); in ledc_set_fade_with_time()
789 …ade_with_step(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t target_duty, uint32_t scale… in ledc_set_fade_with_step() argument
795 LEDC_ARG_CHECK(target_duty <= ledc_get_max_duty(speed_mode, channel), "target_duty"); in ledc_set_fade_with_step()
800 _ledc_set_fade_with_step(speed_mode, channel, target_duty, scale, cycle_num); in ledc_set_fade_with_step()
870 …ime_and_start(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t target_duty, uint32_t max_f… in ledc_set_fade_time_and_start() argument
877 LEDC_ARG_CHECK(target_duty <= ledc_get_max_duty(speed_mode, channel), "target_duty"); in ledc_set_fade_time_and_start()
880 _ledc_set_fade_with_time(speed_mode, channel, target_duty, max_fade_time_ms); in ledc_set_fade_time_and_start()
886 …tep_and_start(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t target_duty, uint32_t scale… in ledc_set_fade_step_and_start() argument
895 LEDC_ARG_CHECK(target_duty <= ledc_get_max_duty(speed_mode, channel), "target_duty"); in ledc_set_fade_step_and_start()
898 _ledc_set_fade_with_step(speed_mode, channel, target_duty, scale, cycle_num); in ledc_set_fade_step_and_start()