Lines Matching refs:LEDC_ARG_CHECK
26 #define LEDC_ARG_CHECK(a, param) ESP_RETURN_ON_FALSE(a, ESP_ERR_INVALID_ARG, LEDC_TAG, param " argu… macro
172 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_timer_set()
173 LEDC_ARG_CHECK(timer_sel < LEDC_TIMER_MAX, "timer_select"); in ledc_timer_set()
205 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_bind_channel_timer()
206 LEDC_ARG_CHECK(timer_sel < LEDC_TIMER_MAX, "timer_select"); in ledc_bind_channel_timer()
217 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_timer_rst()
218 LEDC_ARG_CHECK(timer_sel < LEDC_TIMER_MAX, "timer_select"); in ledc_timer_rst()
229 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_timer_pause()
230 LEDC_ARG_CHECK(timer_sel < LEDC_TIMER_MAX, "timer_select"); in ledc_timer_pause()
241 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_timer_resume()
242 LEDC_ARG_CHECK(timer_sel < LEDC_TIMER_MAX, "timer_select"); in ledc_timer_resume()
254 LEDC_ARG_CHECK(fn, "fn"); in ledc_isr_register()
317 LEDC_ARG_CHECK(timer_conf != NULL, "timer_conf"); in ledc_timer_config()
322 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_timer_config()
323 …LEDC_ARG_CHECK(!((timer_conf->clk_cfg == LEDC_USE_RTC8M_CLK) && (speed_mode != LEDC_LOW_SPEED_MODE… in ledc_timer_config()
347 LEDC_ARG_CHECK(ledc_channel < LEDC_CHANNEL_MAX, "ledc_channel"); in ledc_set_pin()
348 LEDC_ARG_CHECK(GPIO_IS_VALID_OUTPUT_GPIO(gpio_num), "gpio_num"); in ledc_set_pin()
349 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_set_pin()
358 LEDC_ARG_CHECK(ledc_conf, "ledc_conf"); in ledc_channel_config()
367 LEDC_ARG_CHECK(ledc_channel < LEDC_CHANNEL_MAX, "ledc_channel"); in ledc_channel_config()
368 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_channel_config()
369 LEDC_ARG_CHECK(GPIO_IS_VALID_OUTPUT_GPIO(gpio_num), "gpio_num"); in ledc_channel_config()
370 LEDC_ARG_CHECK(timer_select < LEDC_TIMER_MAX, "timer_select"); in ledc_channel_config()
371 LEDC_ARG_CHECK(intr_type < LEDC_INTR_MAX, "intr_type"); in ledc_channel_config()
407 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_update_duty()
408 LEDC_ARG_CHECK(channel < LEDC_CHANNEL_MAX, "channel"); in ledc_update_duty()
420 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_stop()
421 LEDC_ARG_CHECK(channel < LEDC_CHANNEL_MAX, "channel"); in ledc_stop()
435 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_set_fade()
436 LEDC_ARG_CHECK(channel < LEDC_CHANNEL_MAX, "channel"); in ledc_set_fade()
437 LEDC_ARG_CHECK(fade_direction < LEDC_DUTY_DIR_MAX, "fade_direction"); in ledc_set_fade()
438 LEDC_ARG_CHECK(step_num <= LEDC_DUTY_NUM_MAX, "step_num"); in ledc_set_fade()
439 LEDC_ARG_CHECK(duty_cyle_num <= LEDC_DUTY_CYCLE_MAX, "duty_cycle_num"); in ledc_set_fade()
440 LEDC_ARG_CHECK(duty_scale <= LEDC_DUTY_SCALE_MAX, "duty_scale"); in ledc_set_fade()
458 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_set_duty_with_hpoint()
459 LEDC_ARG_CHECK(channel < LEDC_CHANNEL_MAX, "channel"); in ledc_set_duty_with_hpoint()
460 LEDC_ARG_CHECK(hpoint <= LEDC_HPOINT_VAL_MAX, "hpoint"); in ledc_set_duty_with_hpoint()
479 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_set_duty()
480 LEDC_ARG_CHECK(channel < LEDC_CHANNEL_MAX, "channel"); in ledc_set_duty()
499 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_get_duty()
500 LEDC_ARG_CHECK(channel < LEDC_CHANNEL_MAX, "channel"); in ledc_get_duty()
519 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_set_freq()
520 LEDC_ARG_CHECK(timer_num < LEDC_TIMER_MAX, "timer_num"); in ledc_set_freq()
531 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_get_freq()
532 LEDC_ARG_CHECK(timer_num < LEDC_TIMER_MAX, "timer_num"); in ledc_get_freq()
777 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_set_fade_with_time()
778 LEDC_ARG_CHECK(channel < LEDC_CHANNEL_MAX, "channel"); in ledc_set_fade_with_time()
779 LEDC_ARG_CHECK(target_duty <= ledc_get_max_duty(speed_mode, channel), "target_duty"); in ledc_set_fade_with_time()
791 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_set_fade_with_step()
792 LEDC_ARG_CHECK(channel < LEDC_CHANNEL_MAX, "channel"); in ledc_set_fade_with_step()
793 LEDC_ARG_CHECK((scale > 0) && (scale <= LEDC_DUTY_SCALE_MAX), "fade scale"); in ledc_set_fade_with_step()
794 LEDC_ARG_CHECK((cycle_num > 0) && (cycle_num <= LEDC_DUTY_CYCLE_MAX), "cycle_num"); in ledc_set_fade_with_step()
795 LEDC_ARG_CHECK(target_duty <= ledc_get_max_duty(speed_mode, channel), "target_duty"); in ledc_set_fade_with_step()
808 LEDC_ARG_CHECK(channel < LEDC_CHANNEL_MAX, "channel"); in ledc_fade_start()
809 LEDC_ARG_CHECK(fade_mode < LEDC_FADE_MAX, "fade_mode"); in ledc_fade_start()
842 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_cb_register()
843 LEDC_ARG_CHECK(channel < LEDC_CHANNEL_MAX, "channel"); in ledc_cb_register()
857 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_set_duty_and_update()
858 LEDC_ARG_CHECK(channel < LEDC_CHANNEL_MAX, "channel"); in ledc_set_duty_and_update()
859 LEDC_ARG_CHECK(duty <= ledc_get_max_duty(speed_mode, channel), "target_duty"); in ledc_set_duty_and_update()
860 LEDC_ARG_CHECK(hpoint <= LEDC_HPOINT_VAL_MAX, "hpoint"); in ledc_set_duty_and_update()
872 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_set_fade_time_and_start()
873 LEDC_ARG_CHECK(channel < LEDC_CHANNEL_MAX, "channel"); in ledc_set_fade_time_and_start()
874 LEDC_ARG_CHECK(fade_mode < LEDC_FADE_MAX, "fade_mode"); in ledc_set_fade_time_and_start()
877 LEDC_ARG_CHECK(target_duty <= ledc_get_max_duty(speed_mode, channel), "target_duty"); in ledc_set_fade_time_and_start()
888 LEDC_ARG_CHECK(speed_mode < LEDC_SPEED_MODE_MAX, "speed_mode"); in ledc_set_fade_step_and_start()
889 LEDC_ARG_CHECK(channel < LEDC_CHANNEL_MAX, "channel"); in ledc_set_fade_step_and_start()
890 LEDC_ARG_CHECK(fade_mode < LEDC_FADE_MAX, "fade_mode"); in ledc_set_fade_step_and_start()
893 LEDC_ARG_CHECK((scale > 0) && (scale <= LEDC_DUTY_SCALE_MAX), "fade scale"); in ledc_set_fade_step_and_start()
894 LEDC_ARG_CHECK((cycle_num > 0) && (cycle_num <= LEDC_DUTY_CYCLE_MAX), "cycle_num"); in ledc_set_fade_step_and_start()
895 LEDC_ARG_CHECK(target_duty <= ledc_get_max_duty(speed_mode, channel), "target_duty"); in ledc_set_fade_step_and_start()