Searched refs:step_num (Results 1 – 3 of 3) sorted by relevance
/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/common_components/light_driver/ |
D | iot_led.c | 146 int step_num = 0; in _iot_set_fade_with_step() local 151 step_num = (duty_cur - target_duty) / scale; in _iot_set_fade_with_step() 152 step_num = step_num > 1023 ? 1023 : step_num; 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() 157 step_num = step_num > 1023 ? 1023 : step_num; in _iot_set_fade_with_step() 158 scale = (step_num == 1023) ? (target_duty - duty_cur) / step_num : scale; in _iot_set_fade_with_step() 162 if (scale > 0 && step_num > 0) { 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()
|
/hal_espressif-3.6.0/components/driver/ |
D | ledc.c | 433 uint32_t step_num, uint32_t duty_cyle_num, uint32_t duty_scale) in ledc_set_fade() argument 438 LEDC_ARG_CHECK(step_num <= LEDC_DUTY_NUM_MAX, "step_num"); in ledc_set_fade() 448 step_num, //uint32_t duty_num, in ledc_set_fade() 696 int step_num = 0; in _ledc_set_fade_with_step() local 701 step_num = (duty_cur - target_duty) / scale; in _ledc_set_fade_with_step() 702 step_num = step_num > LEDC_STEP_NUM_MAX ? LEDC_STEP_NUM_MAX : step_num; in _ledc_set_fade_with_step() 706 step_num = (target_duty - duty_cur) / scale; in _ledc_set_fade_with_step() 707 step_num = step_num > LEDC_STEP_NUM_MAX ? LEDC_STEP_NUM_MAX : step_num; in _ledc_set_fade_with_step() 712 if (scale > 0 && step_num > 0) { in _ledc_set_fade_with_step() 713 …ledc_duty_config(speed_mode, channel, LEDC_VAL_NO_CHANGE, duty_cur, dir, step_num, cycle_num, scal… in _ledc_set_fade_with_step() [all …]
|
/hal_espressif-3.6.0/components/driver/include/driver/ |
D | ledc.h | 238 uint32_t step_num, uint32_t duty_cycle_num, uint32_t duty_scale);
|