Searched refs:duty_cur (Results 1 – 3 of 3) sorted by relevance
/hal_espressif-3.6.0/components/driver/ |
D | ledc.c | 580 uint32_t duty_cur = 0; in ledc_fade_isr() local 581 ledc_hal_get_duty(&(p_ledc_obj[speed_mode]->ledc_hal), channel, &duty_cur); in ledc_fade_isr() 584 if (duty_cur == duty_tar || scale == 0) { in ledc_fade_isr() 591 .duty = duty_cur in ledc_fade_isr() 600 …ed_mode][channel]->direction == LEDC_DUTY_DIR_DECREASE ? duty_cur - duty_tar : duty_tar - duty_cur; in ledc_fade_isr() 607 duty_cur, in ledc_fade_isr() 686 uint32_t duty_cur = 0; in _ledc_set_fade_with_step() local 687 ledc_hal_get_duty(&(p_ledc_obj[speed_mode]->ledc_hal), channel, &duty_cur); in _ledc_set_fade_with_step() 689 if (duty_cur == ledc_get_max_duty(speed_mode, channel)) { in _ledc_set_fade_with_step() 690 duty_cur -= 1; in _ledc_set_fade_with_step() [all …]
|
/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/common_components/light_driver/ |
D | iot_led.c | 145 uint32_t duty_cur = LEDC.channel_group[speed_mode].channel[channel].duty_rd.duty_read >> 4; in _iot_set_fade_with_step() local 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() 163 … iot_ledc_duty_config(speed_mode, channel, -1, duty_cur << 4, dir, step_num, cycle_num, scale); in _iot_set_fade_with_step() 174 uint32_t duty_cur = LEDC.channel_group[speed_mode].channel[channel].duty_rd.duty_read >> 4; in _iot_set_fade_with_time() local 175 uint32_t duty_delta = target_duty > duty_cur ? target_duty - duty_cur : duty_cur - target_duty; in _iot_set_fade_with_time()
|
D | iot_light.c | 419 uint32_t duty_cur = iot_light_duty_get(light, channel_id); in iot_light_fade_with_time() local 420 int duty_delta = duty - duty_cur; in iot_light_fade_with_time() 426 … l_chn->fade_duty_step[i] = duty_cur + (int)(coe * pow((double)i, (double)1 / DUTY_SET_GAMMA)); in iot_light_fade_with_time()
|