Home
last modified time | relevance | path

Searched refs:ESP_ERR_INVALID_ARG (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/hal_espressif-3.6.0/components/driver/
Dtimer.c51 …ESP_RETURN_ON_FALSE(group_num < TIMER_GROUP_MAX, ESP_ERR_INVALID_ARG, TIMER_TAG, TIMER_GROUP_NUM_… in timer_get_counter_value()
52 ESP_RETURN_ON_FALSE(timer_num < TIMER_MAX, ESP_ERR_INVALID_ARG, TIMER_TAG, TIMER_NUM_ERROR); in timer_get_counter_value()
53 ESP_RETURN_ON_FALSE(timer_val != NULL, ESP_ERR_INVALID_ARG, TIMER_TAG, TIMER_PARAM_ADDR_ERROR); in timer_get_counter_value()
54 …ESP_RETURN_ON_FALSE(p_timer_obj[group_num][timer_num] != NULL, ESP_ERR_INVALID_ARG, TIMER_TAG, TI… in timer_get_counter_value()
63 …ESP_RETURN_ON_FALSE(group_num < TIMER_GROUP_MAX, ESP_ERR_INVALID_ARG, TIMER_TAG, TIMER_GROUP_NUM_… in timer_get_counter_time_sec()
64 ESP_RETURN_ON_FALSE(timer_num < TIMER_MAX, ESP_ERR_INVALID_ARG, TIMER_TAG, TIMER_NUM_ERROR); in timer_get_counter_time_sec()
65 ESP_RETURN_ON_FALSE(time != NULL, ESP_ERR_INVALID_ARG, TIMER_TAG, TIMER_PARAM_ADDR_ERROR); in timer_get_counter_time_sec()
66 …ESP_RETURN_ON_FALSE(p_timer_obj[group_num][timer_num] != NULL, ESP_ERR_INVALID_ARG, TIMER_TAG, TI… in timer_get_counter_time_sec()
84 …ESP_RETURN_ON_FALSE(group_num < TIMER_GROUP_MAX, ESP_ERR_INVALID_ARG, TIMER_TAG, TIMER_GROUP_NUM_… in timer_set_counter_value()
85 ESP_RETURN_ON_FALSE(timer_num < TIMER_MAX, ESP_ERR_INVALID_ARG, TIMER_TAG, TIMER_NUM_ERROR); in timer_set_counter_value()
[all …]
Drtc_io.c30 …ESP_RETURN_ON_FALSE(rtc_gpio_is_valid_gpio(gpio_num), ESP_ERR_INVALID_ARG, RTCIO_TAG, "RTCIO numbe… in rtc_gpio_init()
40 …ESP_RETURN_ON_FALSE(rtc_gpio_is_valid_gpio(gpio_num), ESP_ERR_INVALID_ARG, RTCIO_TAG, "RTCIO numbe… in rtc_gpio_deinit()
51 …ESP_RETURN_ON_FALSE(rtc_gpio_is_valid_gpio(gpio_num), ESP_ERR_INVALID_ARG, RTCIO_TAG, "RTCIO numbe… in rtc_gpio_set_level()
61 …ESP_RETURN_ON_FALSE(rtc_gpio_is_valid_gpio(gpio_num), ESP_ERR_INVALID_ARG, RTCIO_TAG, "RTCIO numbe… in rtc_gpio_get_level()
67 …ESP_RETURN_ON_FALSE(rtc_gpio_is_valid_gpio(gpio_num), ESP_ERR_INVALID_ARG, RTCIO_TAG, "RTCIO numbe… in rtc_gpio_set_drive_capability()
68 …ESP_RETURN_ON_FALSE(GPIO_IS_VALID_OUTPUT_GPIO(gpio_num), ESP_ERR_INVALID_ARG, RTCIO_TAG, "Output p… in rtc_gpio_set_drive_capability()
69 …ESP_RETURN_ON_FALSE(strength < GPIO_DRIVE_CAP_MAX, ESP_ERR_INVALID_ARG, RTCIO_TAG, "RTCIO drive ca… in rtc_gpio_set_drive_capability()
79 …ESP_RETURN_ON_FALSE(rtc_gpio_is_valid_gpio(gpio_num), ESP_ERR_INVALID_ARG, RTCIO_TAG, "RTCIO numbe… in rtc_gpio_get_drive_capability()
80 …ESP_RETURN_ON_FALSE(GPIO_IS_VALID_OUTPUT_GPIO(gpio_num), ESP_ERR_INVALID_ARG, RTCIO_TAG, "Output p… in rtc_gpio_get_drive_capability()
81 … ESP_RETURN_ON_FALSE(strength != NULL, ESP_ERR_INVALID_ARG, RTCIO_TAG, "GPIO drive pointer error"); in rtc_gpio_get_drive_capability()
[all …]
Dgpio.c71 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_pullup_en()
90 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_pullup_dis()
109 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_pulldown_en()
128 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_pulldown_dis()
147 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_set_intr_type()
148 GPIO_CHECK(intr_type < GPIO_INTR_MAX, "GPIO interrupt type error", ESP_ERR_INVALID_ARG); in gpio_set_intr_type()
158 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_intr_enable_on_core()
165 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_intr_enable()
176 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_intr_disable()
183 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_input_disable()
[all …]
Dpcnt.c45 PCNT_CHECK((pcnt_port < PCNT_PORT_MAX), PCNT_NUM_ERR_STR, ESP_ERR_INVALID_ARG); \
61 PCNT_CHECK(unit < SOC_PCNT_UNITS_PER_GROUP, PCNT_UNIT_ERR_STR, ESP_ERR_INVALID_ARG); in _pcnt_set_mode()
62 PCNT_CHECK(channel < PCNT_CHANNEL_MAX, PCNT_CHANNEL_ERR_STR, ESP_ERR_INVALID_ARG); in _pcnt_set_mode()
63 …de < PCNT_COUNT_MAX) && (neg_mode < PCNT_COUNT_MAX), PCNT_COUNT_MODE_ERR_STR, ESP_ERR_INVALID_ARG); in _pcnt_set_mode()
64 …ode < PCNT_MODE_MAX) && (lctrl_mode < PCNT_MODE_MAX), PCNT_CTRL_MODE_ERR_STR, ESP_ERR_INVALID_ARG); in _pcnt_set_mode()
74 PCNT_CHECK(unit < SOC_PCNT_UNITS_PER_GROUP, PCNT_UNIT_ERR_STR, ESP_ERR_INVALID_ARG); in _pcnt_set_pin()
75 PCNT_CHECK(channel < PCNT_CHANNEL_MAX, PCNT_CHANNEL_ERR_STR, ESP_ERR_INVALID_ARG); in _pcnt_set_pin()
76 … PCNT_CHECK(GPIO_IS_VALID_GPIO(pulse_io) || pulse_io < 0, PCNT_GPIO_ERR_STR, ESP_ERR_INVALID_ARG); in _pcnt_set_pin()
77 PCNT_CHECK(GPIO_IS_VALID_GPIO(ctrl_io) || ctrl_io < 0, PCNT_GPIO_ERR_STR, ESP_ERR_INVALID_ARG); in _pcnt_set_pin()
99 PCNT_CHECK(pcnt_unit < SOC_PCNT_UNITS_PER_GROUP, PCNT_UNIT_ERR_STR, ESP_ERR_INVALID_ARG); in _pcnt_get_counter_value()
[all …]
Drmt.c145 ESP_RETURN_ON_FALSE(channel < RMT_CHANNEL_MAX, ESP_ERR_INVALID_ARG, TAG, RMT_CHANNEL_ERROR_STR); in rmt_set_clk_div()
158 ESP_RETURN_ON_FALSE(channel < RMT_CHANNEL_MAX, ESP_ERR_INVALID_ARG, TAG, RMT_CHANNEL_ERROR_STR); in rmt_get_clk_div()
159 ESP_RETURN_ON_FALSE(div_cnt, ESP_ERR_INVALID_ARG, TAG, RMT_ADDR_ERROR_STR); in rmt_get_clk_div()
172 …_ON_FALSE(RMT_IS_RX_CHANNEL(channel) && channel < RMT_CHANNEL_MAX, ESP_ERR_INVALID_ARG, TAG, RMT_C… in rmt_set_rx_idle_thresh()
181 …_ON_FALSE(RMT_IS_RX_CHANNEL(channel) && channel < RMT_CHANNEL_MAX, ESP_ERR_INVALID_ARG, TAG, RMT_C… in rmt_get_rx_idle_thresh()
182 ESP_RETURN_ON_FALSE(thresh, ESP_ERR_INVALID_ARG, TAG, RMT_ADDR_ERROR_STR); in rmt_get_rx_idle_thresh()
191 ESP_RETURN_ON_FALSE(channel < RMT_CHANNEL_MAX, ESP_ERR_INVALID_ARG, TAG, RMT_CHANNEL_ERROR_STR); in rmt_set_mem_block_num()
192 …ESP_RETURN_ON_FALSE(rmt_mem_num <= RMT_CHANNEL_MAX - channel, ESP_ERR_INVALID_ARG, TAG, RMT_MEM_CN… in rmt_set_mem_block_num()
205 ESP_RETURN_ON_FALSE(channel < RMT_CHANNEL_MAX, ESP_ERR_INVALID_ARG, TAG, RMT_CHANNEL_ERROR_STR); in rmt_get_mem_block_num()
206 ESP_RETURN_ON_FALSE(rmt_mem_num, ESP_ERR_INVALID_ARG, TAG, RMT_ADDR_ERROR_STR); in rmt_get_mem_block_num()
[all …]
Dtouch_sensor_common.c34 …HECK(channel < SOC_TOUCH_SENSOR_NUM && channel >= 0, "Touch channel error", ESP_ERR_INVALID_ARG); \
38 …HECK(channel < SOC_TOUCH_SENSOR_NUM && channel >= 0, "Touch channel error", ESP_ERR_INVALID_ARG); \
39 …channel != SOC_TOUCH_DENOISE_CHANNEL, "TOUCH0 is internal denoise channel", ESP_ERR_INVALID_ARG); \
59 ESP_ERR_INVALID_ARG); in touch_pad_set_voltage()
61 ESP_ERR_INVALID_ARG); in touch_pad_set_voltage()
63 ESP_ERR_INVALID_ARG); in touch_pad_set_voltage()
92 TOUCH_CHECK(touch_num < SOC_TOUCH_SENSOR_NUM, "Touch channel error", ESP_ERR_INVALID_ARG); in touch_pad_set_cnt_mode()
93 TOUCH_CHECK(slope < TOUCH_PAD_SLOPE_MAX, "touch slope error", ESP_ERR_INVALID_ARG); in touch_pad_set_cnt_mode()
94 TOUCH_CHECK(opt < TOUCH_PAD_TIE_OPT_MAX, "touch opt error", ESP_ERR_INVALID_ARG); in touch_pad_set_cnt_mode()
109 TOUCH_CHECK(touch_num < SOC_TOUCH_SENSOR_NUM, "Touch channel error", ESP_ERR_INVALID_ARG); in touch_pad_get_cnt_mode()
[all …]
Di2s.c250 ESP_ERR_INVALID_ARG, TAG, in i2s_check_set_mclk()
264 … ESP_RETURN_ON_FALSE(GPIO_IS_VALID_GPIO(gpio_num), ESP_ERR_INVALID_ARG, TAG, "mck_io_num invalid"); in i2s_check_set_mclk()
282 ESP_RETURN_ON_FALSE((i2s_num < I2S_NUM_MAX), ESP_ERR_INVALID_ARG, TAG, "i2s_num error"); in i2s_set_pin()
287 return ESP_ERR_INVALID_ARG; in i2s_set_pin()
292 ESP_ERR_INVALID_ARG, TAG, "bck_io_num invalid"); in i2s_set_pin()
294 ESP_ERR_INVALID_ARG, TAG, "ws_io_num invalid"); in i2s_set_pin()
296 ESP_ERR_INVALID_ARG, TAG, "data_out_num invalid"); in i2s_set_pin()
298 ESP_ERR_INVALID_ARG, TAG, "data_in_num invalid"); in i2s_set_pin()
678 ESP_RETURN_ON_FALSE(dma_obj, ESP_ERR_INVALID_ARG, TAG, "I2S DMA object can't be NULL"); in i2s_delete_dma_buffer()
705 ESP_GOTO_ON_FALSE(dma_obj, ESP_ERR_INVALID_ARG, err, TAG, "I2S DMA object can't be NULL"); in i2s_alloc_dma_buffer()
[all …]
Di2c.c243 ESP_RETURN_ON_FALSE(i2c_num < I2C_NUM_MAX, ESP_ERR_INVALID_ARG, I2C_TAG, I2C_NUM_ERROR_STR); in i2c_driver_install()
245 ESP_ERR_INVALID_ARG, I2C_TAG, I2C_SLAVE_BUFFER_LEN_ERR_STR); in i2c_driver_install()
402 ESP_RETURN_ON_FALSE(i2c_num < I2C_NUM_MAX, ESP_ERR_INVALID_ARG, I2C_TAG, I2C_NUM_ERROR_STR); in i2c_driver_delete()
459 ESP_RETURN_ON_FALSE(i2c_num < I2C_NUM_MAX, ESP_ERR_INVALID_ARG, I2C_TAG, I2C_NUM_ERROR_STR); in i2c_reset_tx_fifo()
468 ESP_RETURN_ON_FALSE(i2c_num < I2C_NUM_MAX, ESP_ERR_INVALID_ARG, I2C_TAG, I2C_NUM_ERROR_STR); in i2c_reset_rx_fifo()
537 ESP_RETURN_ON_FALSE(i2c_num < I2C_NUM_MAX, ESP_ERR_INVALID_ARG, I2C_TAG, I2C_NUM_ERROR_STR); in i2c_set_data_mode()
538 …ESP_RETURN_ON_FALSE(tx_trans_mode < I2C_DATA_MODE_MAX, ESP_ERR_INVALID_ARG, I2C_TAG, I2C_TRANS_MOD… in i2c_set_data_mode()
539 …ESP_RETURN_ON_FALSE(rx_trans_mode < I2C_DATA_MODE_MAX, ESP_ERR_INVALID_ARG, I2C_TAG, I2C_TRANS_MOD… in i2c_set_data_mode()
549 ESP_RETURN_ON_FALSE(i2c_num < I2C_NUM_MAX, ESP_ERR_INVALID_ARG, I2C_TAG, I2C_NUM_ERROR_STR); in i2c_get_data_mode()
656 ESP_RETURN_ON_FALSE(i2c_num < I2C_NUM_MAX, ESP_ERR_INVALID_ARG, I2C_TAG, I2C_NUM_ERROR_STR); in i2c_param_config()
[all …]
Ddac_common.c29 ESP_RETURN_ON_FALSE(channel < DAC_CHANNEL_MAX, ESP_ERR_INVALID_ARG, TAG, "DAC channel error"); in dac_pad_get_io_num()
38 ESP_RETURN_ON_FALSE(channel < DAC_CHANNEL_MAX, ESP_ERR_INVALID_ARG, TAG, "DAC channel error"); in dac_rtc_pad_init()
52 ESP_RETURN_ON_FALSE(channel < DAC_CHANNEL_MAX, ESP_ERR_INVALID_ARG, TAG, "DAC channel error"); in dac_output_enable()
65 ESP_RETURN_ON_FALSE(channel < DAC_CHANNEL_MAX, ESP_ERR_INVALID_ARG, TAG, "DAC channel error"); in dac_output_disable()
76 ESP_RETURN_ON_FALSE(channel < DAC_CHANNEL_MAX, ESP_ERR_INVALID_ARG, TAG, "DAC channel error"); in dac_output_voltage()
87 ESP_RETURN_ON_FALSE(channel < DAC_CHANNEL_MAX, ESP_ERR_INVALID_ARG, TAG, "DAC channel error"); in dac_out_voltage()
116 ESP_RETURN_ON_FALSE(cw, ESP_ERR_INVALID_ARG, TAG, "invalid clock configuration"); in dac_cw_generator_config()
Dspi_master.c201 …, "SPI Master cannot attach to bus. (Check CONFIG_SPI_FLASH_SHARE_SPI1_BUS)", ESP_ERR_INVALID_ARG); in spi_master_init_driver()
268 SPI_CHECK(is_valid_host(host_id), "invalid host_id", ESP_ERR_INVALID_ARG); in spi_master_deinit_driver()
309 SPI_CHECK(is_valid_host(host_id), "invalid host", ESP_ERR_INVALID_ARG); in spi_bus_add_device()
320 … || GPIO_IS_VALID_OUTPUT_GPIO(dev_config->spics_io_num), "spics pin invalid", ESP_ERR_INVALID_ARG); in spi_bus_add_device()
321 SPI_CHECK(dev_config->clock_speed_hz > 0, "invalid sclk speed", ESP_ERR_INVALID_ARG); in spi_bus_add_device()
326 …nly support cs pretrans delay = 1 and without address_bits and command_bits", ESP_ERR_INVALID_ARG); in spi_bus_add_device()
431 SPI_CHECK(handle!=NULL, "invalid handle", ESP_ERR_INVALID_ARG); in spi_bus_remove_device()
676 SPI_CHECK(handle!=NULL, "invalid dev handle", ESP_ERR_INVALID_ARG); in check_trans_valid()
687 … <= 32, "SPI_TRANS_USE_RXDATA only available for rxdata transfer <= 32 bits", ESP_ERR_INVALID_ARG); in check_trans_valid()
688 … <= 32, "SPI_TRANS_USE_TXDATA only available for txdata transfer <= 32 bits", ESP_ERR_INVALID_ARG); in check_trans_valid()
[all …]
/hal_espressif-3.6.0/zephyr/esp_shared/components/driver/
Drtc_io.c31 ESP_ERR_INVALID_ARG, RTCIO_TAG, "RTCIO number error"); in rtc_gpio_init()
43 ESP_ERR_INVALID_ARG, RTCIO_TAG, "RTCIO number error"); in rtc_gpio_deinit()
56 ESP_ERR_INVALID_ARG, RTCIO_TAG, "RTCIO number error"); in rtc_gpio_set_level()
68 ESP_ERR_INVALID_ARG, RTCIO_TAG, "RTCIO number error"); in rtc_gpio_get_level()
76 ESP_ERR_INVALID_ARG, RTCIO_TAG, "RTCIO number error"); in rtc_gpio_set_drive_capability()
78 ESP_ERR_INVALID_ARG, RTCIO_TAG, "Output pad only"); in rtc_gpio_set_drive_capability()
80 ESP_ERR_INVALID_ARG, RTCIO_TAG, "RTCIO drive capability error"); in rtc_gpio_set_drive_capability()
92 ESP_ERR_INVALID_ARG, RTCIO_TAG, "RTCIO number error"); in rtc_gpio_get_drive_capability()
94 ESP_ERR_INVALID_ARG, RTCIO_TAG, "Output pad only"); in rtc_gpio_get_drive_capability()
96 ESP_ERR_INVALID_ARG, RTCIO_TAG, "GPIO drive pointer error"); in rtc_gpio_get_drive_capability()
[all …]
Dgpio.c57 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_pullup_en()
76 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_pullup_dis()
95 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_pulldown_en()
114 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_pulldown_dis()
133 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_wakeup_enable()
150 ret = ESP_ERR_INVALID_ARG; in gpio_wakeup_enable()
165 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_wakeup_disable()
273 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_sleep_sel_en()
284 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_sleep_sel_dis()
296 GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG); in gpio_sleep_pupd_config_apply()
[all …]
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32h2/
Desp_memprot.c25 return ESP_ERR_INVALID_ARG; in esp_mprot_get_split_addr()
36 return ESP_ERR_INVALID_ARG; in esp_mprot_get_default_main_split_addr()
52 return ESP_ERR_INVALID_ARG; in esp_mprot_get_split_addr_lock()
68 return ESP_ERR_INVALID_ARG; in esp_mprot_get_pms_lock()
84 return ESP_ERR_INVALID_ARG; in esp_mprot_get_pms_area()
100 return ESP_ERR_INVALID_ARG; in esp_mprot_get_monitor_lock()
116 return ESP_ERR_INVALID_ARG; in esp_mprot_get_monitor_en()
132 return ESP_ERR_INVALID_ARG; in esp_mprot_get_active_intr()
144 return ESP_ERR_INVALID_ARG; in esp_mprot_is_conf_locked_any()
155 return ESP_ERR_INVALID_ARG; in esp_mprot_is_intr_ena_any()
[all …]
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32s3/
Desp_memprot.c25 return ESP_ERR_INVALID_ARG; in esp_mprot_get_split_addr()
36 return ESP_ERR_INVALID_ARG; in esp_mprot_get_default_main_split_addr()
52 return ESP_ERR_INVALID_ARG; in esp_mprot_get_split_addr_lock()
68 return ESP_ERR_INVALID_ARG; in esp_mprot_get_pms_lock()
84 return ESP_ERR_INVALID_ARG; in esp_mprot_get_pms_area()
100 return ESP_ERR_INVALID_ARG; in esp_mprot_get_monitor_lock()
116 return ESP_ERR_INVALID_ARG; in esp_mprot_get_monitor_en()
132 return ESP_ERR_INVALID_ARG; in esp_mprot_get_active_intr()
144 return ESP_ERR_INVALID_ARG; in esp_mprot_is_conf_locked_any()
155 return ESP_ERR_INVALID_ARG; in esp_mprot_is_intr_ena_any()
[all …]
/hal_espressif-3.6.0/components/driver/esp32s3/
Dtouch_sensor.c42 …ESP_RETURN_ON_FALSE(channel < SOC_TOUCH_SENSOR_NUM && channel >= 0, ESP_ERR_INVALID_ARG, TOUCH_TAG…
43 …ESP_RETURN_ON_FALSE(channel != SOC_TOUCH_DENOISE_CHANNEL, ESP_ERR_INVALID_ARG, TOUCH_TAG, "TOUCH0…
45 …_CHECK(mask) ESP_RETURN_ON_FALSE((mask <= TOUCH_PAD_BIT_MASK_ALL), ESP_ERR_INVALID_ARG, TOUCH_TAG,…
46 …SK_CHECK(mask) ESP_RETURN_ON_FALSE(mask & TOUCH_PAD_INTR_MASK_ALL, ESP_ERR_INVALID_ARG, TOUCH_TAG,…
47 #define TOUCH_NULL_POINTER_CHECK(p, name) ESP_RETURN_ON_FALSE((p), ESP_ERR_INVALID_ARG, TOUCH_TAG, …
64 ESP_RETURN_ON_FALSE(fn, ESP_ERR_INVALID_ARG, TOUCH_TAG, TOUCH_PARAM_CHECK_STR("intr_mask")); in touch_pad_isr_register()
117 …ESP_RETURN_ON_FALSE(type < TOUCH_PAD_CONN_MAX, ESP_ERR_INVALID_ARG, TOUCH_TAG, TOUCH_PARAM_CHECK_… in touch_pad_set_idle_channel_connect()
173 return ESP_ERR_INVALID_ARG; in touch_pad_intr_enable()
184 return ESP_ERR_INVALID_ARG; in touch_pad_intr_disable()
321 …ESP_RETURN_ON_FALSE(touch_num <= TOUCH_PAD_MAX && touch_num >= 0, ESP_ERR_INVALID_ARG, TOUCH_TAG, … in touch_pad_reset_benchmark()
[all …]
/hal_espressif-3.6.0/components/freemodbus/tcp_master/modbus_controller/
Dmbc_tcp_master.c127 MB_MASTER_CHECK((mbm_opts != NULL), ESP_ERR_INVALID_ARG, "mb incorrect options pointer."); in mbc_tcp_master_setup()
132 ESP_ERR_INVALID_ARG, "mb incorrect mode = (0x%x).", in mbc_tcp_master_setup()
135 ESP_ERR_INVALID_ARG, "mb wrong slave ip address table."); in mbc_tcp_master_setup()
137ESP_ERR_INVALID_ARG, "mb incorrect addr type = (0x%x).", (uint8_t)comm_info_ptr->ip_addr_type); in mbc_tcp_master_setup()
139 ESP_ERR_INVALID_ARG, "mb incorrect iface address."); in mbc_tcp_master_setup()
151 MB_MASTER_CHECK((mbm_opts != NULL), ESP_ERR_INVALID_ARG, "mb incorrect options pointer."); in mbc_tcp_master_start()
159 …MB_MASTER_CHECK((mbm_opts->mbm_param_descriptor_size >= 1), ESP_ERR_INVALID_ARG, "mb table size is… in mbc_tcp_master_start()
163 …MB_MASTER_CHECK((comm_ip_table != NULL), ESP_ERR_INVALID_ARG, "mb ip table address is incorrect."); in mbc_tcp_master_start()
199 MB_MASTER_CHECK((mbm_opts != NULL), ESP_ERR_INVALID_ARG, "mb incorrect options pointer."); in mbc_tcp_master_destroy()
226 MB_MASTER_CHECK((descriptor != NULL), ESP_ERR_INVALID_ARG, "mb incorrect descriptor."); in mbc_tcp_master_set_descriptor()
[all …]
/hal_espressif-3.6.0/components/driver/esp32s2/
Dtouch_sensor.c42 …ESP_RETURN_ON_FALSE(channel < SOC_TOUCH_SENSOR_NUM && channel >= 0, ESP_ERR_INVALID_ARG, TOUCH_TAG…
43 …ESP_RETURN_ON_FALSE(channel != SOC_TOUCH_DENOISE_CHANNEL, ESP_ERR_INVALID_ARG, TOUCH_TAG, "TOUCH0…
45 …_CHECK(mask) ESP_RETURN_ON_FALSE((mask <= TOUCH_PAD_BIT_MASK_ALL), ESP_ERR_INVALID_ARG, TOUCH_TAG,…
46 …SK_CHECK(mask) ESP_RETURN_ON_FALSE(mask & TOUCH_PAD_INTR_MASK_ALL, ESP_ERR_INVALID_ARG, TOUCH_TAG,…
47 #define TOUCH_NULL_POINTER_CHECK(p, name) ESP_RETURN_ON_FALSE((p), ESP_ERR_INVALID_ARG, TOUCH_TAG, …
85 ESP_RETURN_ON_FALSE(fn, ESP_ERR_INVALID_ARG, TOUCH_TAG, TOUCH_PARAM_CHECK_STR("intr_mask")); in touch_pad_isr_register()
141 …ESP_RETURN_ON_FALSE(type < TOUCH_PAD_CONN_MAX, ESP_ERR_INVALID_ARG, TOUCH_TAG, TOUCH_PARAM_CHECK_… in touch_pad_set_idle_channel_connect()
197 return ESP_ERR_INVALID_ARG; in touch_pad_intr_enable()
208 return ESP_ERR_INVALID_ARG; in touch_pad_intr_disable()
310 …ESP_RETURN_ON_FALSE(touch_num < TOUCH_PAD_MAX && touch_num >= 0, ESP_ERR_INVALID_ARG, TOUCH_TAG, … in touch_pad_read_raw_data()
[all …]
/hal_espressif-3.6.0/components/esp_lcd/src/
Desp_lcd_panel_ops.c15 ESP_RETURN_ON_FALSE(panel, ESP_ERR_INVALID_ARG, TAG, "invalid panel handle"); in esp_lcd_panel_reset()
21 ESP_RETURN_ON_FALSE(panel, ESP_ERR_INVALID_ARG, TAG, "invalid panel handle"); in esp_lcd_panel_init()
27 ESP_RETURN_ON_FALSE(panel, ESP_ERR_INVALID_ARG, TAG, "invalid panel handle"); in esp_lcd_panel_del()
33 ESP_RETURN_ON_FALSE(panel, ESP_ERR_INVALID_ARG, TAG, "invalid panel handle"); in esp_lcd_panel_draw_bitmap()
39 ESP_RETURN_ON_FALSE(panel, ESP_ERR_INVALID_ARG, TAG, "invalid panel handle"); in esp_lcd_panel_mirror()
45 ESP_RETURN_ON_FALSE(panel, ESP_ERR_INVALID_ARG, TAG, "invalid panel handle"); in esp_lcd_panel_swap_xy()
51 ESP_RETURN_ON_FALSE(panel, ESP_ERR_INVALID_ARG, TAG, "invalid panel handle"); in esp_lcd_panel_set_gap()
57 ESP_RETURN_ON_FALSE(panel, ESP_ERR_INVALID_ARG, TAG, "invalid panel handle"); in esp_lcd_panel_invert_color()
63 ESP_RETURN_ON_FALSE(panel, ESP_ERR_INVALID_ARG, TAG, "invalid panel handle"); in esp_lcd_panel_disp_off()
/hal_espressif-3.6.0/components/bt/test/
Dtest_smp.c116 …T(esp_ble_gap_set_security_param(ESP_BLE_SM_AUTHEN_REQ_MODE, &auth_req, 0) == ESP_ERR_INVALID_ARG);
118 …y_param(ESP_BLE_SM_AUTHEN_REQ_MODE, &auth_req, sizeof(esp_ble_auth_req_t)) != ESP_ERR_INVALID_ARG);
120 …e_gap_set_security_param(ESP_BLE_SM_MAX_PARAM, &passkey, sizeof(uint32_t)) == ESP_ERR_INVALID_ARG);
122 …t_security_param(ESP_BLE_SM_SET_STATIC_PASSKEY, &passkey, sizeof(uint8_t)) != ESP_ERR_INVALID_ARG);
124 …p_set_security_param(ESP_BLE_SM_SET_STATIC_PASSKEY, NULL, sizeof(uint8_t)) == ESP_ERR_INVALID_ARG);
126 …ERT(esp_ble_gap_set_security_param(ESP_BLE_SM_SET_STATIC_PASSKEY, NULL, 0) == ESP_ERR_INVALID_ARG);
128 …_security_param(ESP_BLE_SM_SET_STATIC_PASSKEY, &passkey, sizeof(uint32_t)) != ESP_ERR_INVALID_ARG);
130 …ecurity_param(ESP_BLE_SM_CLEAR_STATIC_PASSKEY, &passkey, sizeof(uint32_t)) != ESP_ERR_INVALID_ARG);
132 …et_security_param(ESP_BLE_SM_CLEAR_STATIC_PASSKEY, NULL, sizeof(uint32_t)) != ESP_ERR_INVALID_ARG);
134 …T(esp_ble_gap_set_security_param(ESP_BLE_SM_CLEAR_STATIC_PASSKEY, NULL, 0) != ESP_ERR_INVALID_ARG);
/hal_espressif-3.6.0/components/spi_flash/test/
Dtest_out_of_bounds_write.c19 TEST_ESP_ERR(ESP_ERR_INVALID_ARG, spi_flash_write(0x1000, data, strlen(data)));
20 TEST_ESP_ERR(ESP_ERR_INVALID_ARG, spi_flash_write(0x0FF8, data, strlen(data)));
21 TEST_ESP_ERR(ESP_ERR_INVALID_ARG, spi_flash_write(0x1400, data, strlen(data)));
22 TEST_ESP_ERR(ESP_ERR_INVALID_ARG, spi_flash_erase_range(0x8000, 0x2000));
23 TEST_ESP_ERR(ESP_ERR_INVALID_ARG, spi_flash_erase_range(0x7000, 0x2000));
29 TEST_ESP_ERR(ESP_ERR_INVALID_ARG, spi_flash_write(p->address + 1024, data, strlen(data)));
30 TEST_ESP_ERR(ESP_ERR_INVALID_ARG, spi_flash_erase_range(p->address + 4096, 8192));
/hal_espressif-3.6.0/components/esp_hw_support/test/
Dtest_ds.c66 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, esp_ds_encrypt_params(NULL, iv, &p_data, key));
75 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, esp_ds_encrypt_params(&data, NULL, &p_data, key));
84 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, esp_ds_encrypt_params(&data, iv, NULL, key));
93 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, esp_ds_encrypt_params(&data, iv, &p_data, NULL));
126 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, esp_ds_start_sign(NULL, &ds_data, HMAC_KEY1, &ctx));
134 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, esp_ds_start_sign(message, NULL, HMAC_KEY1, &ctx));
143 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, esp_ds_start_sign(message, &ds_data, HMAC_KEY1, NULL));
152 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, esp_ds_start_sign(message, &ds_data, HMAC_KEY1, NULL));
161 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, esp_ds_start_sign(message, &ds_data, HMAC_KEY1, NULL));
171 … TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, esp_ds_start_sign(message, &ds_data, HMAC_KEY5 + 1, &ctx));
[all …]
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/api/core/
Desp_ble_mesh_networking_api.c35 return ESP_ERR_INVALID_ARG; in ble_mesh_model_send_msg()
40 return ESP_ERR_INVALID_ARG; in ble_mesh_model_send_msg()
59 return ESP_ERR_INVALID_ARG; in ble_mesh_model_send_msg()
71 return ESP_ERR_INVALID_ARG; in ble_mesh_model_send_msg()
124 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_model_msg_opcode_init()
151 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_client_model_init()
163 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_client_model_deinit()
180 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_server_model_send_msg()
197 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_client_model_send_msg()
210 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_model_publish()
[all …]
Desp_ble_mesh_provisioning_api.c50 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_node_prov_enable()
70 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_node_prov_disable()
91 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_node_set_oob_pub_key()
114 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_node_input_number()
134 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_node_input_string()
156 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_set_unprovisioned_device_name()
180 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_provisioner_read_oob_pub_key()
204 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_provisioner_input_string()
228 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_provisioner_input_number()
250 return ESP_ERR_INVALID_ARG; in esp_ble_mesh_provisioner_prov_enable()
[all …]
/hal_espressif-3.6.0/components/freemodbus/serial_master/modbus_controller/
Dmbc_serial_master.c83 ESP_ERR_INVALID_ARG, "mb incorrect mode = (0x%x).", in mbc_serial_master_setup()
85 MB_MASTER_CHECK((comm_info_ptr->port <= UART_NUM_MAX), ESP_ERR_INVALID_ARG, in mbc_serial_master_setup()
87 MB_MASTER_CHECK((comm_info_ptr->parity <= UART_PARITY_ODD), ESP_ERR_INVALID_ARG, in mbc_serial_master_setup()
153 ESP_ERR_INVALID_ARG, "mb incorrect descriptor."); in mbc_serial_master_set_descriptor()
155 ESP_ERR_INVALID_ARG, "mb table size is incorrect."); in mbc_serial_master_set_descriptor()
163 ESP_ERR_INVALID_ARG, "mb descriptor cid field is incorrect."); in mbc_serial_master_set_descriptor()
165 ESP_ERR_INVALID_ARG, "mb descriptor param key is incorrect."); in mbc_serial_master_set_descriptor()
167 ESP_ERR_INVALID_ARG, "mb descriptor param size is incorrect."); in mbc_serial_master_set_descriptor()
182 ESP_ERR_INVALID_ARG, "mb request structure."); in mbc_serial_master_send_request()
184 ESP_ERR_INVALID_ARG, "mb incorrect data pointer."); in mbc_serial_master_send_request()
[all …]
/hal_espressif-3.6.0/components/esp_eth/src/
Desp_eth.c150 … ESP_GOTO_ON_FALSE(false, ESP_ERR_INVALID_ARG, err, TAG, "unknown ethernet state: %d", state); in eth_on_state_changed()
176 ESP_GOTO_ON_FALSE(config && out_hdl, ESP_ERR_INVALID_ARG, err, TAG, "invalid argument"); in esp_eth_driver_install()
179 …ESP_GOTO_ON_FALSE(mac && phy, ESP_ERR_INVALID_ARG, err, TAG, "can't set eth->mac or eth->phy to nu… in esp_eth_driver_install()
240 ESP_GOTO_ON_FALSE(eth_driver, ESP_ERR_INVALID_ARG, err, TAG, "invalid argument"); in esp_eth_driver_uninstall()
263 …ESP_GOTO_ON_FALSE(eth_driver, ESP_ERR_INVALID_ARG, err, TAG, "ethernet driver handle can't be null… in esp_eth_start()
283 …ESP_GOTO_ON_FALSE(eth_driver, ESP_ERR_INVALID_ARG, err, TAG, "ethernet driver handle can't be null… in esp_eth_stop()
304 …ESP_GOTO_ON_FALSE(eth_driver, ESP_ERR_INVALID_ARG, err, TAG, "ethernet driver handle can't be null… in esp_eth_update_input_path()
322 ESP_GOTO_ON_FALSE(buf, ESP_ERR_INVALID_ARG, err, TAG, "can't set buf to null"); in esp_eth_transmit()
323 ESP_GOTO_ON_FALSE(length, ESP_ERR_INVALID_ARG, err, TAG, "buf length can't be zero"); in esp_eth_transmit()
324 …ESP_GOTO_ON_FALSE(eth_driver, ESP_ERR_INVALID_ARG, err, TAG, "ethernet driver handle can't be null… in esp_eth_transmit()
[all …]

12345678910>>...14