Home
last modified time | relevance | path

Searched refs:event_handler (Results 1 – 25 of 43) sorted by relevance

12

/hal_espressif-2.7.6/examples/cxx/experimental/esp_event_cxx/main/
Desp_event_cxx_example.cpp42 ESPEventHandlerSync event_handler(make_shared<ESPEventLoop>()); in app_main() local
43 event_handler.listen_to(TEMPLATE_EVENT_0); in app_main()
44 event_handler.listen_to(TEMPLATE_EVENT_1); in app_main()
54 …ESPEventHandlerSync::EventResultTimed result = event_handler.wait_event_for(std::chrono::milliseco… in app_main()
70 ESPEventHandlerSync::EventResult result = event_handler.wait_event(); in app_main()
79 cout << "Missed: " << event_handler.get_send_queue_errors() << " events" << endl; in app_main()
/hal_espressif-2.7.6/components/esp_event/
Ddefault_event_loop.c26 esp_event_handler_t event_handler, void* event_handler_arg) in esp_event_handler_register() argument
33 event_handler, event_handler_arg); in esp_event_handler_register()
38 esp_event_handler_t event_handler, in esp_event_handler_instance_register() argument
49 event_handler, in esp_event_handler_instance_register()
55 esp_event_handler_t event_handler) in esp_event_handler_unregister() argument
62 event_handler); in esp_event_handler_unregister()
Desp_event_private.c20 …dle_t event_loop, esp_event_base_t event_base, int32_t event_id, esp_event_handler_t event_handler) in esp_event_is_handler_registered() argument
33 …P_EVENT_ANY_BASE && event_id == ESP_EVENT_ANY_ID && handler->handler_ctx->handler == event_handler) in esp_event_is_handler_registered()
43 … if(event_id == ESP_EVENT_ANY_ID && handler->handler_ctx->handler == event_handler) in esp_event_is_handler_registered()
53 if(handler->handler_ctx->handler == event_handler) in esp_event_is_handler_registered()
Desp_event.c162 …nstances_add(esp_event_handler_nodes_t* handlers, esp_event_handler_t event_handler, void* event_h… in handler_instances_add() argument
175 context->handler = event_handler; in handler_instances_add()
187 if(event_handler == it->handler_ctx->handler) { in handler_instances_add()
212 esp_event_handler_t event_handler, in base_node_add_handler() argument
218 …return handler_instances_add(&(base_node->handlers), event_handler, event_handler_arg, handler_ctx… in base_node_add_handler()
243 …err = handler_instances_add(&(id_node->handlers), event_handler, event_handler_arg, handler_ctx, l… in base_node_add_handler()
259 …return handler_instances_add(&(id_node->handlers), event_handler, event_handler_arg, handler_ctx, … in base_node_add_handler()
267 esp_event_handler_t event_handler, in loop_node_add_handler() argument
273 …return handler_instances_add(&(loop_node->handlers), event_handler, event_handler_arg, handler_ctx… in loop_node_add_handler()
302 … err = base_node_add_handler(base_node, id, event_handler, event_handler_arg, handler_ctx, legacy); in loop_node_add_handler()
[all …]
/hal_espressif-2.7.6/components/esp_event/include/
Desp_event.h149 esp_event_handler_t event_handler,
179 esp_event_handler_t event_handler,
224 esp_event_handler_t event_handler,
256 esp_event_handler_t event_handler,
286 esp_event_handler_t event_handler);
310 esp_event_handler_t event_handler);
/hal_espressif-2.7.6/examples/protocols/esp_local_ctrl/main/
Dapp_main.c46 static void event_handler(void* arg, esp_event_base_t event_base, in event_handler() function
82 ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, &event_handler, NULL)); in wifi_init_sta()
83 … ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &event_handler, NULL)); in wifi_init_sta()
119 ESP_ERROR_CHECK(esp_event_handler_unregister(IP_EVENT, IP_EVENT_STA_GOT_IP, &event_handler)); in wifi_init_sta()
120 ESP_ERROR_CHECK(esp_event_handler_unregister(WIFI_EVENT, ESP_EVENT_ANY_ID, &event_handler)); in wifi_init_sta()
/hal_espressif-2.7.6/examples/wifi/wifi_easy_connect/dpp-enrollee/main/
Ddpp_enrollee_main.c51 static void event_handler(void *arg, esp_event_base_t event_base, in event_handler() function
116 ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, &event_handler, NULL)); in dpp_enrollee_init()
117 … ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &event_handler, NULL)); in dpp_enrollee_init()
153 ESP_ERROR_CHECK(esp_event_handler_unregister(IP_EVENT, IP_EVENT_STA_GOT_IP, &event_handler)); in dpp_enrollee_init()
154 ESP_ERROR_CHECK(esp_event_handler_unregister(WIFI_EVENT, ESP_EVENT_ANY_ID, &event_handler)); in dpp_enrollee_init()
/hal_espressif-2.7.6/examples/cxx/experimental/experimental_cpp_component/
Desp_event_api.cpp26 esp_event_handler_t event_handler, in handler_register() argument
32 event_handler, in handler_register()
73 esp_event_handler_t event_handler, in handler_register() argument
80 event_handler, in handler_register()
/hal_espressif-2.7.6/examples/protocols/esp_http_client/main/
Desp_http_client_example.c125 .event_handler = _http_event_handler, in http_rest_with_url()
215 .event_handler = _http_event_handler, in http_rest_with_hostname_path()
307 .event_handler = _http_event_handler, in http_auth_basic()
328 .event_handler = _http_event_handler, in http_auth_basic_redirect()
348 .event_handler = _http_event_handler, in http_auth_digest()
367 .event_handler = _http_event_handler, in https_with_url()
389 .event_handler = _http_event_handler, in https_with_hostname_path()
409 .event_handler = _http_event_handler, in http_relative_redirect()
428 .event_handler = _http_event_handler, in http_absolute_redirect()
447 .event_handler = _http_event_handler, in http_redirect_to_https()
[all …]
/hal_espressif-2.7.6/examples/provisioning/legacy/console_prov/main/
Dapp_main.c28 static void event_handler(void* arg, esp_event_base_t event_base, in event_handler() function
52 ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, event_handler, NULL)); in wifi_init_sta()
53 ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, event_handler, NULL)); in wifi_init_sta()
/hal_espressif-2.7.6/examples/provisioning/legacy/custom_config/main/
Dapp_main.c28 static void event_handler(void* arg, esp_event_base_t event_base, in event_handler() function
52 ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, event_handler, NULL)); in wifi_init_sta()
53 ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, event_handler, NULL)); in wifi_init_sta()
/hal_espressif-2.7.6/examples/wifi/smart_config/main/
Dsmartconfig_main.c36 static void event_handler(void* arg, esp_event_base_t event_base, in event_handler() function
99 … ESP_ERROR_CHECK( esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, &event_handler, NULL) ); in initialise_wifi()
100 …ESP_ERROR_CHECK( esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &event_handler, NULL) ); in initialise_wifi()
101 ESP_ERROR_CHECK( esp_event_handler_register(SC_EVENT, ESP_EVENT_ANY_ID, &event_handler, NULL) ); in initialise_wifi()
/hal_espressif-2.7.6/examples/cxx/experimental/experimental_cpp_component/include/
Desp_event_api.hpp23 esp_event_handler_t event_handler,
56 esp_event_handler_t event_handler,
95 esp_event_handler_t event_handler,
/hal_espressif-2.7.6/examples/wifi/power_save/main/
Dpower_save.c42 static void event_handler(void* arg, esp_event_base_t event_base, in event_handler() function
66 …ECK(esp_event_handler_instance_register(WIFI_EVENT, ESP_EVENT_ANY_ID, &event_handler, NULL, NULL)); in wifi_power_save()
67 …CK(esp_event_handler_instance_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &event_handler, NULL, NULL)); in wifi_power_save()
/hal_espressif-2.7.6/examples/wifi/fast_scan/main/
Dfast_scan.c71 static void event_handler(void* arg, esp_event_base_t event_base, in event_handler() function
94 …ECK(esp_event_handler_instance_register(WIFI_EVENT, ESP_EVENT_ANY_ID, &event_handler, NULL, NULL)); in fast_scan()
95 …CK(esp_event_handler_instance_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &event_handler, NULL, NULL)); in fast_scan()
/hal_espressif-2.7.6/components/mdns/test_afl_fuzz_host/
Desp32_mock.h21 esp_err_t esp_event_handler_register(const char * event_base, int32_t event_id, void* event_handler
23 …err_t esp_event_handler_unregister(const char * event_base, int32_t event_id, void* event_handler);
Desp32_mock.c17 void* event_handler, in esp_event_handler_register() argument
23 …_err_t esp_event_handler_unregister(const char * event_base, int32_t event_id, void* event_handler) in esp_event_handler_unregister() argument
/hal_espressif-2.7.6/examples/provisioning/wifi_prov_mgr/main/
Dapp_main.c45 static void event_handler(void* arg, esp_event_base_t event_base, in event_handler() function
174 …ESP_ERROR_CHECK(esp_event_handler_register(WIFI_PROV_EVENT, ESP_EVENT_ANY_ID, &event_handler, NULL… in app_main()
175 ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, &event_handler, NULL)); in app_main()
176 … ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &event_handler, NULL)); in app_main()
/hal_espressif-2.7.6/examples/wifi/getting_started/station/main/
Dstation_example_main.c44 static void event_handler(void* arg, esp_event_base_t event_base, in event_handler() function
82 &event_handler, in wifi_init_sta()
87 &event_handler, in wifi_init_sta()
/hal_espressif-2.7.6/examples/provisioning/legacy/softap_prov/main/
Dapp_main.c32 static void event_handler(void* arg, esp_event_base_t event_base, in event_handler() function
56 ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, event_handler, NULL)); in wifi_init_sta()
57 ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, event_handler, NULL)); in wifi_init_sta()
/hal_espressif-2.7.6/examples/system/console/main/
Dcmd_wifi.c29 static void event_handler(void* arg, esp_event_base_t event_base, in event_handler() function
56 …CHECK( esp_event_handler_register(WIFI_EVENT, WIFI_EVENT_STA_DISCONNECTED, &event_handler, NULL) ); in initialise_wifi()
57 …ESP_ERROR_CHECK( esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &event_handler, NULL) ); in initialise_wifi()
/hal_espressif-2.7.6/examples/provisioning/legacy/ble_prov/main/
Dapp_main.c34 static void event_handler(void* arg, esp_event_base_t event_base, in event_handler() function
85 ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, event_handler, NULL)); in wifi_init_sta()
86 ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, event_handler, NULL)); in wifi_init_sta()
/hal_espressif-2.7.6/examples/wifi/wpa2_enterprise/main/
Dwpa2_enterprise_main.c87 static void event_handler(void* arg, esp_event_base_t event_base, in event_handler() function
119 … ESP_ERROR_CHECK( esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, &event_handler, NULL) ); in initialise_wifi()
120 …ESP_ERROR_CHECK( esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &event_handler, NULL) ); in initialise_wifi()
/hal_espressif-2.7.6/examples/peripherals/uart/nmea0183_parser/main/
Dnmea_parser.h202 esp_err_t nmea_parser_add_handler(nmea_parser_handle_t nmea_hdl, esp_event_handler_t event_handler,…
214 …err_t nmea_parser_remove_handler(nmea_parser_handle_t nmea_hdl, esp_event_handler_t event_handler);
/hal_espressif-2.7.6/examples/peripherals/gpio/matrix_keyboard/components/matrix_keyboard/src/
Dmatrix_keyboard.c44 matrix_kbd_event_handler event_handler; member
82 … mkbd->event_handler(mkbd, MATRIX_KBD_EVENT_UP, (void *)key_code, mkbd->event_handler_args); in matrix_kbd_debounce_timer_callback()
84 … mkbd->event_handler(mkbd, MATRIX_KBD_EVENT_DOWN, (void *)key_code, mkbd->event_handler_args); in matrix_kbd_debounce_timer_callback()
240 mkbd_handle->event_handler = handler; in matrix_kbd_register_event_handler()

12