Lines Matching refs:ret

39     bool ret = false;                                                         \
43 ret |= TE_CLASS_ITEM(cls, cls_method, check_channel(channel)); \
46 ret; \
152 esp_err_t ret = ESP_ERR_NO_MEM; in touch_element_install() local
158 ret = te_hw_init(&global_config->hardware); in touch_element_install()
159 if (ret != ESP_OK) { in touch_element_install()
162 ret = te_sw_init(&global_config->software); in touch_element_install()
163 if (ret != ESP_OK) { in touch_element_install()
176 return ret; in touch_element_install()
182 esp_err_t ret; in touch_element_start() local
186 ret = touch_pad_get_channel_mask(&inited_channel_mask); in touch_element_start()
189 ret = ESP_ERR_INVALID_STATE; in touch_element_start()
192 if (ret != ESP_OK) { in touch_element_start()
196 ret = esp_timer_start_periodic(s_te_obj->proc_timer, TE_PROCESSING_PERIOD(s_te_obj) * 1000); in touch_element_start()
197 if (ret != ESP_OK) { in touch_element_start()
200ret = touch_pad_intr_enable(TOUCH_PAD_INTR_MASK_SCAN_DONE); //Use scan done interrupt to set thres… in touch_element_start()
201 if (ret != ESP_OK) { in touch_element_start()
204 ret = touch_pad_fsm_start(); in touch_element_start()
205 if (ret != ESP_OK) { in touch_element_start()
216 return ret; in touch_element_start()
222 esp_err_t ret; in touch_element_stop() local
224 ret = touch_pad_fsm_stop(); in touch_element_stop()
225 if (ret != ESP_OK) { in touch_element_stop()
226 return ret; in touch_element_stop()
228 ret = touch_pad_intr_disable(TOUCH_PAD_INTR_MASK_SCAN_DONE); in touch_element_stop()
229 if (ret != ESP_OK) { in touch_element_stop()
230 return ret; in touch_element_stop()
232 ret = esp_timer_stop(s_te_obj->proc_timer); in touch_element_stop()
233 if (ret != ESP_OK) { in touch_element_stop()
234 return ret; in touch_element_stop()
249 esp_err_t ret; in touch_element_uninstall() local
250 ret = touch_pad_deinit(); in touch_element_uninstall()
251 if (ret != ESP_OK) { in touch_element_uninstall()
254 ret = esp_timer_delete(s_te_obj->proc_timer); in touch_element_uninstall()
255 if (ret != ESP_OK) { in touch_element_uninstall()
258ret = touch_pad_intr_disable(TOUCH_PAD_INTR_MASK_ACTIVE | TOUCH_PAD_INTR_MASK_INACTIVE | TOUCH_PAD… in touch_element_uninstall()
259 if (ret != ESP_OK) { in touch_element_uninstall()
262 ret = touch_pad_isr_deregister(te_intr_cb, NULL); in touch_element_uninstall()
263 if (ret != ESP_OK) { in touch_element_uninstall()
282 int ret = xQueueReceive(s_te_obj->event_msg_queue, element_message, ticks_to_wait); in touch_element_message_receive() local
283 return (ret == pdTRUE) ? ESP_OK : ESP_ERR_TIMEOUT; in touch_element_message_receive()
315 int ret = xQueueSend(s_te_obj->event_msg_queue, &te_message, 0); in te_event_give() local
316 if (ret != pdTRUE) { in te_event_give()
387 BaseType_t ret = xSemaphoreTake(s_te_obj->mutex, 0); in te_proc_timer_cb() local
388 if (ret != pdPASS) { in te_proc_timer_cb()
391 ret = xQueueReceive(s_te_obj->intr_msg_queue, &te_intr_msg, 0); in te_proc_timer_cb()
392 if (ret == pdPASS) { in te_proc_timer_cb()
510 esp_err_t ret = touch_pad_config(device[idx]->channel); in te_dev_init() local
511 TE_CHECK(ret == ESP_OK, ret); in te_dev_init()
526 esp_err_t ret = touch_pad_set_thresh(device->channel, device->sens * smo_val); in te_dev_set_threshold() local
528 return ret; in te_dev_set_threshold()
597 esp_err_t ret; in te_hw_init() local
598 ret = touch_pad_init(); in te_hw_init()
599 TE_CHECK(ret == ESP_OK, ret); in te_hw_init()
600 ret = touch_pad_set_fsm_mode(TOUCH_FSM_MODE_TIMER); in te_hw_init()
601 TE_CHECK(ret == ESP_OK, ret); in te_hw_init()
602 ret = touch_pad_set_meas_time(hardware_init->sleep_cycle, hardware_init->sample_count); in te_hw_init()
603 TE_CHECK(ret == ESP_OK, ret); in te_hw_init()
604 ret = touch_pad_set_voltage(hardware_init->upper_voltage, hardware_init->lower_voltage, in te_hw_init()
606 TE_CHECK(ret == ESP_OK, ret); in te_hw_init()
607 ret = touch_pad_set_idle_channel_connect(hardware_init->suspend_channel_polarity); in te_hw_init()
608 TE_CHECK(ret == ESP_OK, ret); in te_hw_init()
609 ret = touch_pad_isr_register(te_intr_cb, NULL, in te_hw_init()
612 TE_CHECK(ret == ESP_OK, ret); in te_hw_init()
613 ret = touch_pad_intr_enable(TOUCH_PAD_INTR_MASK_ACTIVE | in te_hw_init()
615 TE_CHECK(ret == ESP_OK, ret); in te_hw_init()
621 ret = touch_pad_denoise_set_config(&denoise_config); in te_hw_init()
622 TE_CHECK(ret == ESP_OK, ret); in te_hw_init()
623 ret = touch_pad_denoise_enable(); in te_hw_init()
624 TE_CHECK(ret == ESP_OK, ret); in te_hw_init()
633 ret = touch_pad_filter_set_config(&filter_config); in te_hw_init()
634 TE_CHECK(ret == ESP_OK, ret); in te_hw_init()
635 ret = touch_pad_filter_enable(); in te_hw_init()
636 TE_CHECK(ret == ESP_OK, ret); in te_hw_init()
648 esp_err_t ret = ESP_ERR_NO_MEM; in te_sw_init() local
658 ret = esp_timer_create(&te_proc_timer_args, &s_te_obj->proc_timer); in te_sw_init()
659 TE_CHECK_GOTO(ret == ESP_OK, cleanup); in te_sw_init()
661 return ret; in te_sw_init()
670 return ret; in te_sw_init()
685 esp_err_t ret; in touch_element_waterproof_install() local
688 ret = ESP_ERR_INVALID_ARG; in touch_element_waterproof_install()
691 ret = ESP_ERR_NO_MEM; in touch_element_waterproof_install()
696 ret = te_dev_init(&waterproof_handle->guard_device, 1, TOUCH_ELEM_TYPE_BUTTON, in touch_element_waterproof_install()
699 TE_CHECK_GOTO(ret == ESP_OK, cleanup); in touch_element_waterproof_install()
712 ret = touch_pad_waterproof_set_config(&wp_conf); in touch_element_waterproof_install()
713 TE_CHECK_GOTO(ret == ESP_OK, cleanup); in touch_element_waterproof_install()
714 ret = touch_pad_waterproof_enable(); in touch_element_waterproof_install()
715 TE_CHECK_GOTO(ret == ESP_OK, cleanup); in touch_element_waterproof_install()
723 return ret; in touch_element_waterproof_install()
747 esp_err_t ret = ESP_ERR_NOT_FOUND; in touch_element_waterproof_remove() local
753 ret = ESP_OK; in touch_element_waterproof_remove()
758 return ret; in touch_element_waterproof_remove()
865 bool ret = false; in waterproof_check_mask_handle() local
872 ret = true; in waterproof_check_mask_handle()
876 return ret; in waterproof_check_mask_handle()