Home
last modified time | relevance | path

Searched refs:callback (Results 1 – 25 of 181) sorted by relevance

12345678

/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/common_components/button/
DREADME.md7 * Trigger mode which decides whether to call serial trigger callback during pressing
8 …* Serial threshold seconds which decides that serial trigger callback will be called after how man…
10 * One push event callback
11 * One release event callback
12 * One short-time tap event callback
13 * One serial trigger event callback
14 * Several long-time press event callback
16 Once any of the long press callback is triggered, the short tap event will not be triggered.
25 * Add hardware timer mode(because sometimes soft-timer callback function is limited)
28 > All the event callback function are realized by FreeRTOS soft timer APIs, the callback must follo…
[all …]
/hal_espressif-2.7.6/components/driver/
Dspi_slave_hd.c40 spi_slave_hd_callback_config_t callback; member
210 …memcpy((uint8_t*)&host->callback, (uint8_t*)&config->cb_config, sizeof(spi_slave_hd_callback_confi… in spi_slave_hd_init()
212 if (host->callback.cb_buffer_tx!=NULL) event |= SPI_EV_BUF_TX; in spi_slave_hd_init()
213 if (host->callback.cb_buffer_rx!=NULL) event |= SPI_EV_BUF_RX; in spi_slave_hd_init()
214 if (host->callback.cb_cmd9!=NULL) event |= SPI_EV_CMD9; in spi_slave_hd_init()
215 if (host->callback.cb_cmdA!=NULL) event |= SPI_EV_CMDA; in spi_slave_hd_init()
278 cb(host->callback.arg, &event, &cb_awoken); in intr_check_clear_callback()
286 spi_slave_hd_callback_config_t *callback = &host->callback; in spi_slave_hd_intr_segment() local
291 awoken |= intr_check_clear_callback(host, SPI_EV_BUF_TX, callback->cb_buffer_tx); in spi_slave_hd_intr_segment()
292 awoken |= intr_check_clear_callback(host, SPI_EV_BUF_RX, callback->cb_buffer_rx); in spi_slave_hd_intr_segment()
[all …]
/hal_espressif-2.7.6/components/esp_hid/src/
Desp_hidd.c25 …ce_config_t *config, esp_hid_transport_t transport, esp_event_handler_t callback, esp_hidd_dev_t *… in esp_hidd_dev_init() argument
37 ret = esp_ble_hidd_dev_init(dev, config, callback); in esp_hidd_dev_init()
107 esp_err_t esp_hidd_dev_event_handler_register(esp_hidd_dev_t *dev, esp_event_handler_t callback, es… in esp_hidd_dev_event_handler_register() argument
112 return dev->event_handler_register(dev->dev, callback, event); in esp_hidd_dev_event_handler_register()
115 esp_err_t esp_hidd_dev_event_handler_unregister(esp_hidd_dev_t *dev, esp_event_handler_t callback, … in esp_hidd_dev_event_handler_unregister() argument
120 return dev->event_handler_unregister(dev->dev, callback, event); in esp_hidd_dev_event_handler_unregister()
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/api/models/
Desp_ble_mesh_lighting_model_api.c23 esp_err_t esp_ble_mesh_register_light_client_callback(esp_ble_mesh_light_client_cb_t callback) in esp_ble_mesh_register_light_client_callback() argument
27 return (btc_profile_cb_set(BTC_PID_LIGHTING_CLIENT, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_light_client_callback()
83 esp_err_t esp_ble_mesh_register_lighting_server_callback(esp_ble_mesh_lighting_server_cb_t callback) in esp_ble_mesh_register_lighting_server_callback() argument
87 return (btc_profile_cb_set(BTC_PID_LIGHTING_SERVER, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_lighting_server_callback()
Desp_ble_mesh_sensor_model_api.c23 esp_err_t esp_ble_mesh_register_sensor_client_callback(esp_ble_mesh_sensor_client_cb_t callback) in esp_ble_mesh_register_sensor_client_callback() argument
27 return (btc_profile_cb_set(BTC_PID_SENSOR_CLIENT, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_sensor_client_callback()
82 esp_err_t esp_ble_mesh_register_sensor_server_callback(esp_ble_mesh_sensor_server_cb_t callback) in esp_ble_mesh_register_sensor_server_callback() argument
86 return (btc_profile_cb_set(BTC_PID_SENSOR_SERVER, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_sensor_server_callback()
Desp_ble_mesh_time_scene_model_api.c23 …rr_t esp_ble_mesh_register_time_scene_client_callback(esp_ble_mesh_time_scene_client_cb_t callback) in esp_ble_mesh_register_time_scene_client_callback() argument
27 return (btc_profile_cb_set(BTC_PID_TIME_SCENE_CLIENT, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_time_scene_client_callback()
83 …rr_t esp_ble_mesh_register_time_scene_server_callback(esp_ble_mesh_time_scene_server_cb_t callback) in esp_ble_mesh_register_time_scene_server_callback() argument
87 return (btc_profile_cb_set(BTC_PID_TIME_SCENE_SERVER, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_time_scene_server_callback()
Desp_ble_mesh_config_model_api.c23 esp_err_t esp_ble_mesh_register_config_client_callback(esp_ble_mesh_cfg_client_cb_t callback) in esp_ble_mesh_register_config_client_callback() argument
27 return (btc_profile_cb_set(BTC_PID_CONFIG_CLIENT, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_config_client_callback()
100 esp_err_t esp_ble_mesh_register_config_server_callback(esp_ble_mesh_cfg_server_cb_t callback) in esp_ble_mesh_register_config_server_callback() argument
104 return (btc_profile_cb_set(BTC_PID_CONFIG_SERVER, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_config_server_callback()
Desp_ble_mesh_generic_model_api.c23 esp_err_t esp_ble_mesh_register_generic_client_callback(esp_ble_mesh_generic_client_cb_t callback) in esp_ble_mesh_register_generic_client_callback() argument
27 return (btc_profile_cb_set(BTC_PID_GENERIC_CLIENT, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_generic_client_callback()
96 esp_err_t esp_ble_mesh_register_generic_server_callback(esp_ble_mesh_generic_server_cb_t callback) in esp_ble_mesh_register_generic_server_callback() argument
100 return (btc_profile_cb_set(BTC_PID_GENERIC_SERVER, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_generic_server_callback()
Desp_ble_mesh_health_model_api.c23 esp_err_t esp_ble_mesh_register_health_client_callback(esp_ble_mesh_health_client_cb_t callback) in esp_ble_mesh_register_health_client_callback() argument
27 return (btc_profile_cb_set(BTC_PID_HEALTH_CLIENT, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_health_client_callback()
83 esp_err_t esp_ble_mesh_register_health_server_callback(esp_ble_mesh_health_server_cb_t callback) in esp_ble_mesh_register_health_server_callback() argument
87 return (btc_profile_cb_set(BTC_PID_HEALTH_SERVER, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_health_server_callback()
/hal_espressif-2.7.6/examples/cxx/experimental/esp_event_async_cxx/main/
Desp_event_async_cxx_example.cpp27 static void callback(const ESPEvent &event, void *data) in callback() function
72 reg_2 = loop.register_event(TEMPLATE_EVENT_1, callback); in app_main()
94 callback, in app_main()
103 callback, in app_main()
/hal_espressif-2.7.6/docs/en/api-reference/system/
Desp_timer.rst28 … is recommended to only do the minimal possible amount of work from the callback itself, posting a…
30 If other tasks with priority higher than ``esp_timer`` are running, callback dispatching will be de…
32callback takes some time. Therefore there is a lower limit to the timeout value of one-shot ``esp_…
39 …y :cpp:type:`esp_timer_handle_t` type. Timer has a callback function associated with it. This call…
46 …tart_once`, passing the time interval after which the callback should be called. When the callback
48 …:cpp:func:`esp_timer_start_periodic`, passing the period with which the callback should be called.…
55 During light sleep, the esp_timer counter stops and no callback functions are called.
66 then only one callback is called on wake.
72 If the timer is late then the callback will be called as soon as possible, it will not be lost.
77 the callback will still result in only one callback event once processing is possible.
Dasync_memcpy.rst11 …, it's still possible to know when memcpy is finished by listening in the memcpy callback function.
44 …hould also pass a callback to :cpp:func:`esp_async_memcpy`, if it's necessary to be notified when …
46callback function should reside in IRAM space by applying `IRAM_ATTR` attribute. The prototype of …
/hal_espressif-2.7.6/components/bt/host/bluedroid/api/
Desp_a2dp_api.c60 esp_err_t esp_a2d_sink_register_data_callback(esp_a2d_sink_data_cb_t callback) in esp_a2d_sink_register_data_callback() argument
73 arg.data_cb = callback; in esp_a2d_sink_register_data_callback()
124 esp_err_t esp_a2d_register_callback(esp_a2d_cb_t callback) in esp_a2d_register_callback() argument
130 if (callback == NULL) { in esp_a2d_register_callback()
134 btc_profile_cb_set(BTC_PID_A2DP, callback); in esp_a2d_register_callback()
239 esp_err_t esp_a2d_source_register_data_callback(esp_a2d_source_data_cb_t callback) in esp_a2d_source_register_data_callback() argument
252 arg.src_data_cb = callback; in esp_a2d_source_register_data_callback()
/hal_espressif-2.7.6/components/bt/common/osi/
Dlist.c23 list_t *list_new_internal(list_free_cb callback) in list_new_internal() argument
32 list->free_cb = callback; in list_new_internal()
36 list_t *list_new(list_free_cb callback) in list_new() argument
38 return list_new_internal(callback); in list_new()
245 list_node_t *list_foreach(const list_t *list, list_iter_cb callback, void *context) in list_foreach() argument
248 assert(callback != NULL); in list_foreach()
252 if (!callback(node->data, context)) { in list_foreach()
/hal_espressif-2.7.6/components/esp_hid/include/
Desp_hidd.h125 …ce_config_t *config, esp_hid_transport_t transport, esp_event_handler_t callback, esp_hidd_dev_t *…
192 esp_err_t esp_hidd_dev_event_handler_register(esp_hidd_dev_t *dev, esp_event_handler_t callback, es…
202 esp_err_t esp_hidd_dev_event_handler_unregister(esp_hidd_dev_t *dev, esp_event_handler_t callback, …
/hal_espressif-2.7.6/components/bt/host/bluedroid/api/include/api/
Desp_a2dp_api.h189 esp_err_t esp_a2d_register_callback(esp_a2d_cb_t callback);
206 esp_err_t esp_a2d_sink_register_data_callback(esp_a2d_sink_data_cb_t callback);
335 esp_err_t esp_a2d_source_register_data_callback(esp_a2d_source_data_cb_t callback);
/hal_espressif-2.7.6/components/bt/host/bluedroid/btc/profile/std/hid/
Dhidh_conn.c291 hh_cb.callback( (UINT8) p_tle->param, hh_cb.devices[p_tle->param].addr, in hidh_proc_repage_timeout()
390 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_connect_cfm()
467 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_ind()
486 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, NULL ) ; in hidh_l2cif_config_ind()
523 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_cfm()
538 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_cfm()
557 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, NULL ) ; in hidh_l2cif_config_cfm()
618 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, disc_res, NULL); in hidh_l2cif_disconnect_ind()
637 …hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, hid_close_evt_reason, N… in hidh_l2cif_disconnect_ind()
683 …hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, p_hcon->disc_reason, NUL… in hidh_l2cif_disconnect_cfm()
[all …]
/hal_espressif-2.7.6/examples/peripherals/touch_element/touch_button/main/
DKconfig.projbuild7 Select touch element dispatch method (event task or callback) for this example.
12 bool "Dispatch by callback"
/hal_espressif-2.7.6/examples/peripherals/touch_element/touch_matrix/main/
DKconfig.projbuild7 Select touch element dispatch method (event task or callback) for this example.
12 bool "Dispatch by callback"
/hal_espressif-2.7.6/examples/peripherals/touch_element/touch_slider/main/
DKconfig.projbuild7 Select touch element dispatch method (event task or callback) for this example.
12 bool "Dispatch by callback"
/hal_espressif-2.7.6/docs/en/api-reference/network/
Desp_now.rst73 …egister_send_cb`` to register sending callback function. It will return `ESP_NOW_SEND_SUCCESS` in …
76callback function. So, it is recommended that sending the next ESP-NOW data after the sending call…
81callback function. Call the receiving callback function when receiving ESP-NOW. The receiving cal…
Desp_netif_driver.rst6 and is responsible for providing data path functions, post-attach callback and in most cases also d…
26 Post attach callback
39 * post-attach function callback
52 …tif_attach()` gets called from the initialization code, the post-attach callback from I/O driver's…
54 as well in the post-attach callback. An example of a simple post-attach callback is outlined below:
/hal_espressif-2.7.6/components/perfmon/test/
Dtest_perfmon_ansi.c100 pm_config.callback = test_callback;
159 pm_config.callback = xtensa_perfmon_view_cb;
171 pm_config.callback = xtensa_perfmon_view_cb;
183 pm_config.callback = test_callback;
/hal_espressif-2.7.6/components/esp_timer/src/
Desp_timer.c74 esp_timer_cb_t callback; member
131 if (args == NULL || args->callback == NULL || out_handle == NULL) { in esp_timer_create()
138 result->callback = args->callback; in esp_timer_create()
340 esp_timer_cb_t callback = it->callback; in timer_process_alarm() local
343 (*callback)(arg); in timer_process_alarm()
/hal_espressif-2.7.6/components/esp_timer/test/
Dtest_esp_timer.c73 .callback = &dummy_cb,
160 .callback = &timer_func,
226 .callback = &timer_func,
340 .callback = &timer_func,
393 .callback = &timer_func,
546 .callback = &timer_func,
598 .callback = &timer_delete_test_callback,
643 .callback = &timer_func,
699 .callback = &timer_func,
763 .callback = &timer_callback,
[all …]

12345678