Lines Matching refs:global_config
76 #define TE_PROCESSING_PERIOD(obj) ((obj)->global_config->software.processing_period)
77 #define TE_WATERPROOF_DIVIDER(obj) ((obj)->global_config->software.waterproof_thresh…
95 touch_elem_global_config_t *global_config; //Global initialization member
144 esp_err_t touch_element_install(const touch_elem_global_config_t *global_config) in touch_element_install() argument
147 TE_CHECK(global_config != NULL, ESP_ERR_INVALID_ARG); in touch_element_install()
153 …s_te_obj->global_config = (touch_elem_global_config_t *)calloc(1, sizeof(touch_elem_global_config_… in touch_element_install()
155 TE_CHECK_GOTO(s_te_obj->global_config != NULL && s_te_obj->mutex != NULL, cleanup); in touch_element_install()
158 ret = te_hw_init(&global_config->hardware); in touch_element_install()
162 ret = te_sw_init(&global_config->software); in touch_element_install()
171 TE_FREE_AND_NULL(s_te_obj->global_config); in touch_element_install()
270 free(s_te_obj->global_config); in touch_element_uninstall()
271 s_te_obj->global_config = NULL; in touch_element_uninstall()
637 memcpy(&s_te_obj->global_config->hardware, hardware_init, sizeof(touch_elem_hw_config_t)); in te_hw_init()
660 memcpy(&s_te_obj->global_config->software, software_init, sizeof(touch_elem_sw_config_t)); in te_sw_init()