Home
last modified time | relevance | path

Searched refs:te_matrix (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-3.6.0/components/touch_element/
Dtouch_matrix.c123 te_matrix_handle_t te_matrix = (te_matrix_handle_t)calloc(1, sizeof(struct te_slider_s)); in touch_matrix_create() local
124 TE_CHECK(te_matrix != NULL, ESP_ERR_NO_MEM); in touch_matrix_create()
127 te_matrix->config = (te_matrix_handle_config_t *)calloc(1, sizeof(te_matrix_handle_config_t)); in touch_matrix_create()
128te_matrix->device = (te_dev_t **)calloc(matrix_config->x_channel_num + matrix_config->y_channel_nu… in touch_matrix_create()
129 TE_CHECK_GOTO(te_matrix->config != NULL && te_matrix->device != NULL, cleanup); in touch_matrix_create()
131 te_matrix->device[idx] = (te_dev_t *)calloc(1, sizeof(te_dev_t)); in touch_matrix_create()
132 if (te_matrix->device[idx] == NULL) { in touch_matrix_create()
138 ret = te_dev_init(&te_matrix->device[0], matrix_config->x_channel_num, TOUCH_ELEM_TYPE_MATRIX, in touch_matrix_create()
143 … ret = te_dev_init(&te_matrix->device[matrix_config->x_channel_num], matrix_config->y_channel_num, in touch_matrix_create()
148 te_matrix->config->event_mask = TOUCH_ELEM_EVENT_NONE; in touch_matrix_create()
[all …]
/hal_espressif-3.6.0/components/touch_element/test/
Dtest_touch_matrix.c89 te_matrix_handle_t te_matrix = (te_matrix_handle_t) matrix_handle; in test_matrix_event_simulator() local
90 touch_pad_t x_channel = te_matrix->device[pos_index / te_matrix->y_channel_num]->channel; in test_matrix_event_simulator()
91 …touch_pad_t y_channel = te_matrix->device[te_matrix->x_channel_num + (pos_index % te_matrix->y_cha… in test_matrix_event_simulator()
154 te_matrix_handle_t te_matrix = handle; in test_matrix_event_trigger_and_check() local
155 …esp_err_t ret = touch_element_message_receive(&current_message, pdMS_TO_TICKS(2 * te_matrix->trigg… in test_matrix_event_trigger_and_check()
181 te_matrix_handle_t te_matrix = handle; in test_matrix_callback_trigger_and_check() local
183 …os_ret = xSemaphoreTake(monitor->response_sig_handle, pdMS_TO_TICKS(2 * te_matrix->trigger_thr * 1… in test_matrix_callback_trigger_and_check()
/hal_espressif-3.6.0/docs/en/api-reference/peripherals/
Dtouch_element.rst193 .. figure:: /../_static/touch_element/te_matrix.svg