Home
last modified time | relevance | path

Searched refs:element_message (Results 1 – 14 of 14) sorted by relevance

/hal_espressif-3.6.0/examples/peripherals/touch_sensor/touch_element/touch_elements_combination/main/
Dtouch_elements_example_main.c52 static void button_handler(touch_elem_message_t element_message) in button_handler() argument
54 const touch_button_message_t *button_message = touch_button_get_message(&element_message); in button_handler()
56 ESP_LOGI(TAG, "Button[%d] Press", (uint32_t)element_message.arg); in button_handler()
58 ESP_LOGI(TAG, "Button[%d] Release", (uint32_t)element_message.arg); in button_handler()
60 ESP_LOGI(TAG, "Button[%d] LongPress", (uint32_t)element_message.arg); in button_handler()
64 static void slider_handler(touch_elem_message_t element_message) in slider_handler() argument
66 const touch_slider_message_t *slider_message = touch_slider_get_message(&element_message); in slider_handler()
79 touch_elem_message_t element_message; in event_handler_task() local
82 touch_element_message_receive(&element_message, portMAX_DELAY); in event_handler_task()
83 switch (element_message.element_type) { in event_handler_task()
[all …]
/hal_espressif-3.6.0/examples/peripherals/touch_sensor/touch_element/touch_button/main/
Dtouch_button_example_main.c59 touch_elem_message_t element_message; in button_handler_task() local
62 touch_element_message_receive(&element_message, portMAX_DELAY); in button_handler_task()
63 if (element_message.element_type != TOUCH_ELEM_TYPE_BUTTON) { in button_handler_task()
67 const touch_button_message_t *button_message = touch_button_get_message(&element_message); in button_handler_task()
69 ESP_LOGI(TAG, "Button[%d] Press", (uint32_t)element_message.arg); in button_handler_task()
71 ESP_LOGI(TAG, "Button[%d] Release", (uint32_t)element_message.arg); in button_handler_task()
73 ESP_LOGI(TAG, "Button[%d] LongPress", (uint32_t)element_message.arg); in button_handler_task()
/hal_espressif-3.6.0/examples/peripherals/touch_sensor/touch_element/touch_element_waterproof/main/
Dwaterproof_example_main.c34 touch_elem_message_t element_message; in button_handler_task() local
36 touch_element_message_receive(&element_message, portMAX_DELAY); //Block take in button_handler_task()
37 const touch_button_message_t *button_message = touch_button_get_message(&element_message); in button_handler_task()
39 ESP_LOGI(TAG, "Button[%d] Press", (uint32_t)element_message.arg); in button_handler_task()
41 ESP_LOGI(TAG, "Button[%d] Release", (uint32_t)element_message.arg); in button_handler_task()
43 ESP_LOGI(TAG, "Button[%d] LongPress", (uint32_t)element_message.arg); in button_handler_task()
/hal_espressif-3.6.0/examples/peripherals/touch_sensor/touch_element/touch_slider/main/
Dtouch_slider_example_main.c44 touch_elem_message_t element_message; in slider_handler_task() local
47 if (touch_element_message_receive(&element_message, portMAX_DELAY) == ESP_OK) { in slider_handler_task()
48 if (element_message.element_type != TOUCH_ELEM_TYPE_SLIDER) { in slider_handler_task()
52 … const touch_slider_message_t *slider_message = touch_slider_get_message(&element_message); in slider_handler_task()
/hal_espressif-3.6.0/examples/peripherals/touch_sensor/touch_element/touch_matrix/main/
Dtouch_matrix_example_main.c51 touch_elem_message_t element_message; in matrix_handler_task() local
54 touch_element_message_receive(&element_message, portMAX_DELAY); //Block take in matrix_handler_task()
55 if (element_message.element_type != TOUCH_ELEM_TYPE_MATRIX) { in matrix_handler_task()
59 const touch_matrix_message_t *matrix_message = touch_matrix_get_message(&element_message); in matrix_handler_task()
/hal_espressif-3.6.0/components/touch_element/
Dtouch_button.c223 const touch_button_message_t* touch_button_get_message(const touch_elem_message_t* element_message) in touch_button_get_message() argument
225 return (touch_button_message_t*)&element_message->child_msg; in touch_button_get_message()
226 …_Static_assert(sizeof(element_message->child_msg) >= sizeof(touch_button_message_t), "Message size… in touch_button_get_message()
332 touch_elem_message_t element_message; in button_event_give() local
336 element_message.handle = (touch_elem_handle_t)button_handle; in button_event_give()
337 element_message.element_type = TOUCH_ELEM_TYPE_BUTTON; in button_event_give()
338 element_message.arg = button_handle->config->arg; in button_event_give()
339 memcpy(element_message.child_msg, &button_message, sizeof(button_message)); in button_event_give()
340 te_event_give(element_message); in button_event_give()
Dtouch_slider.c253 const touch_slider_message_t* touch_slider_get_message(const touch_elem_message_t* element_message) in touch_slider_get_message() argument
255 return (touch_slider_message_t*)&element_message->child_msg; in touch_slider_get_message()
256 …_Static_assert(sizeof(element_message->child_msg) >= sizeof(touch_slider_message_t), "Message size… in touch_slider_get_message()
388 touch_elem_message_t element_message; in slider_event_give() local
393 element_message.handle = (touch_elem_handle_t)slider_handle; in slider_event_give()
394 element_message.element_type = TOUCH_ELEM_TYPE_SLIDER; in slider_event_give()
395 element_message.arg = slider_handle->config->arg; in slider_event_give()
396 memcpy(element_message.child_msg, &slider_message, sizeof(slider_message)); in slider_event_give()
397 te_event_give(element_message); in slider_event_give()
Dtouch_matrix.c262 const touch_matrix_message_t* touch_matrix_get_message(const touch_elem_message_t* element_message) in touch_matrix_get_message() argument
264 return (touch_matrix_message_t*)&element_message->child_msg; in touch_matrix_get_message()
265 …_Static_assert(sizeof(element_message->child_msg) >= sizeof(touch_matrix_message_t), "Message size… in touch_matrix_get_message()
386 touch_elem_message_t element_message; in matrix_event_give() local
391 element_message.handle = (touch_elem_handle_t)matrix_handle; in matrix_event_give()
392 element_message.element_type = TOUCH_ELEM_TYPE_MATRIX; in matrix_event_give()
393 element_message.arg = matrix_handle->config->arg; in matrix_event_give()
394 memcpy(element_message.child_msg, &matrix_message, sizeof(matrix_message)); in matrix_event_give()
395 te_event_give(element_message); in matrix_event_give()
Dtouch_element.c276 esp_err_t touch_element_message_receive(touch_elem_message_t *element_message, uint32_t ticks_to_wa… in touch_element_message_receive() argument
280 TE_CHECK(element_message != NULL, ESP_ERR_INVALID_ARG); in touch_element_message_receive()
282 int ret = xQueueReceive(s_te_obj->event_msg_queue, element_message, ticks_to_wait); in touch_element_message_receive()
/hal_espressif-3.6.0/components/touch_element/include/touch_element/
Dtouch_button.h201 const touch_button_message_t* touch_button_get_message(const touch_elem_message_t* element_message);
Dtouch_matrix.h219 const touch_matrix_message_t* touch_matrix_get_message(const touch_elem_message_t* element_message);
Dtouch_slider.h203 const touch_slider_message_t* touch_slider_get_message(const touch_elem_message_t* element_message);
Dtouch_element.h204 esp_err_t touch_element_message_receive(touch_elem_message_t *element_message, uint32_t ticks_to_wa…
/hal_espressif-3.6.0/docs/en/api-reference/peripherals/
Dtouch_element.rst292 touch_elem_message_t element_message;
294 if (touch_element_message_receive(&element_message, Timeout) == ESP_OK) {
295 …st touch_xxxx_message_t *extracted_message = touch_xxxx_get_message(&element_message); //Decode me…