Home
last modified time | relevance | path

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

12345678910

/hal_espressif-3.4.0/examples/bluetooth/hci/controller_hci_uart_esp32c3_and_esp32s3/main/
Dmain.c37 static void hci_uart_tl_recv_async(uint8_t *buf, uint32_t size, esp_bt_hci_tl_callback_t callback, …
38 static void hci_uart_tl_send_async(uint8_t *buf, uint32_t size, esp_bt_hci_tl_callback_t callback, …
44 esp_bt_hci_tl_callback_t callback; member
82 …d hci_uart_tl_recv_async(uint8_t *buf, uint32_t size, esp_bt_hci_tl_callback_t callback, void *arg) in hci_uart_tl_recv_async() argument
86 assert(callback != NULL); in hci_uart_tl_recv_async()
87 uart_env.rx.callback = callback; in hci_uart_tl_recv_async()
99 …d hci_uart_tl_send_async(uint8_t *buf, uint32_t size, esp_bt_hci_tl_callback_t callback, void *arg) in hci_uart_tl_send_async() argument
103 assert(callback != NULL); in hci_uart_tl_send_async()
105 uart_env.tx.callback = callback; in hci_uart_tl_send_async()
132 assert(uart_env.rx.callback != NULL); in hci_uart_tl_rx_eof_callback()
[all …]
/hal_espressif-3.4.0/docs/en/api-reference/system/
Dipc.rst10 Due to the dual core nature of the {IDF_TARGET_NAME}, there are instances where a certain callback
16callback function on another CPU (the target CPU). The IPC feature allows execution of a callback
21callback execution in a task context by creating an IPC task for each CPU during application start…
25 - IPC callbacks should ideally be simple and short. **An IPC callback should avoid attempting to bl…
26callback should also run at that priority as a result. However, :ref:`CONFIG_ESP_IPC_USES_CALLERS_…
27 - Depending on the complexity of the callback, users may need to configure the stack size of the IP…
35 - The callback must be of type ``void func(void *arg)``
36 - The callback should avoid attempting to block or yield as this will result in the target CPU's IP…
37 - The callback must avoid changing any aspect of the IPC task (e.g., by calling ``vTaskPrioritySet(…
39callback in a task context on a target CPU. The API allows the calling CPU to block until the call…
[all …]
Desp_timer.rst35 … is recommended to only do the minimal possible amount of work from the callback itself, posting a…
37 If other tasks with priority higher than ``esp_timer`` are running, callback dispatching will be de…
41callback takes some time. Therefore there is a lower limit to the timeout value of one-shot ``esp_…
48 …y :cpp:type:`esp_timer_handle_t` type. Timer has a callback function associated with it. This call…
55 …tart_once`, passing the time interval after which the callback should be called. When the callback
57 …:cpp:func:`esp_timer_start_periodic`, passing the period with which the callback should be called.…
64 .. note: Keep the callback functions as short as possible otherwise it will affect all timers.
72 During light sleep, the esp_timer counter stops and no callback functions are called.
83 then only one callback is called on wake.
91 If the timer is late then the callback will be called as soon as possible, it will not be lost.
[all …]
/hal_espressif-3.4.0/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-3.4.0/components/driver/
Dspi_slave_hd.c32 spi_slave_hd_callback_config_t callback; member
202 …memcpy((uint8_t*)&host->callback, (uint8_t*)&config->cb_config, sizeof(spi_slave_hd_callback_confi… in spi_slave_hd_init()
204 if (host->callback.cb_buffer_tx!=NULL) event |= SPI_EV_BUF_TX; in spi_slave_hd_init()
205 if (host->callback.cb_buffer_rx!=NULL) event |= SPI_EV_BUF_RX; in spi_slave_hd_init()
206 if (host->callback.cb_cmd9!=NULL) event |= SPI_EV_CMD9; in spi_slave_hd_init()
207 if (host->callback.cb_cmdA!=NULL) event |= SPI_EV_CMDA; in spi_slave_hd_init()
270 cb(host->callback.arg, &event, &cb_awoken); in intr_check_clear_callback()
278 spi_slave_hd_callback_config_t *callback = &host->callback; in spi_slave_hd_intr_segment() local
283 awoken |= intr_check_clear_callback(host, SPI_EV_BUF_TX, callback->cb_buffer_tx); in spi_slave_hd_intr_segment()
284 awoken |= intr_check_clear_callback(host, SPI_EV_BUF_RX, callback->cb_buffer_rx); in spi_slave_hd_intr_segment()
[all …]
/hal_espressif-3.4.0/examples/system/ipc/ipc_isr/
DREADME.md6 …ipc.html)). The `asm_funcs.S` file contains the callback that will be run on the other core. The c…
8 The first assembly callback `get_ps_other_cpu()` demonstrates a callback that simply returns the `P…
10callback `extended_ipc_isr_asm()` demonstrates a more complex callback that uses a buffer (provide…
11 …t32_t regs[];` that gives the callback an area to save some of the CPUs registers. Saving the regi…
12 - `uint32_t in[];` that gives the callback multiple input arguments
13 - `uint32_t out[];` that gives the callback multiple output arguments
15 The `extended_ipc_isr_asm()` callback will simply save/restore registers to/from `regs[]`, then use…
/hal_espressif-3.4.0/components/esp_hid/src/
Desp_hidd.c29 …ce_config_t *config, esp_hid_transport_t transport, esp_event_handler_t callback, esp_hidd_dev_t *… in esp_hidd_dev_init() argument
40 ret = esp_ble_hidd_dev_init(dev, config, callback); in esp_hidd_dev_init()
45 ret = esp_bt_hidd_dev_init(dev, config, callback); in esp_hidd_dev_init()
115 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
120 return dev->event_handler_register(dev->dev, callback, event); in esp_hidd_dev_event_handler_register()
123 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
128 return dev->event_handler_unregister(dev->dev, callback, event); in esp_hidd_dev_event_handler_unregister()
/hal_espressif-3.4.0/components/esp_timer/test/
Dtest_esp_timer.c75 .callback = &dummy_cb,
167 .callback = &test_correct_delay_timer_func,
233 .callback = &test_periodic_correct_delays_timer_func,
347 .callback = &test_timers_ordered_correctly_timer_func,
400 .callback = &test_short_intervals_timer_func,
553 .callback = &test_delete_from_callback_timer_func,
605 .callback = &timer_delete_test_callback,
649 .callback = &test_run_when_expected_timer_func,
705 .callback = &test_start_stop_timer_func,
769 .callback = &timer_callback,
[all …]
/hal_espressif-3.4.0/components/bt/host/bluedroid/api/
Desp_a2dp_api.c68 esp_err_t esp_a2d_sink_register_data_callback(esp_a2d_sink_data_cb_t callback) in esp_a2d_sink_register_data_callback() argument
85 arg.data_cb = callback; in esp_a2d_sink_register_data_callback()
144 esp_err_t esp_a2d_register_callback(esp_a2d_cb_t callback) in esp_a2d_register_callback() argument
154 if (callback == NULL) { in esp_a2d_register_callback()
158 btc_profile_cb_set(BTC_PID_A2DP, callback); in esp_a2d_register_callback()
283 esp_err_t esp_a2d_source_register_data_callback(esp_a2d_source_data_cb_t callback) in esp_a2d_source_register_data_callback() argument
300 arg.src_data_cb = callback; in esp_a2d_source_register_data_callback()
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/hid/
Dhidd_conn.c78 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_OPEN, 0, NULL); in hidd_check_config_done()
251 …hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_CLOSE, HID_L2CAP_CONN_FAIL | (uint32_t)result, NUL… in hidd_l2cif_connect_cfm()
306 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_CLOSE, HID_ERR_L2CAP_FAILED, NULL); in hidd_l2cif_config_ind()
354 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_CLOSE, reason, NULL); in hidd_l2cif_config_cfm()
366 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_CLOSE, HID_ERR_L2CAP_FAILED, NULL); in hidd_l2cif_config_cfm()
413 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_CLOSE, p_hcon->disc_reason, NULL); in hidd_l2cif_disconnect_ind()
446 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_VC_UNPLUG, p_hcon->disc_reason, NULL); in hidd_l2cif_disconnect_cfm()
449 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_CLOSE, p_hcon->disc_reason, NULL); in hidd_l2cif_disconnect_cfm()
505 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_INTR_DATA, 0, p_msg); in hidd_l2cif_data_ind()
512 …hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_GET_REPORT, !!(param & HID_PAR_GET_REP_BUFSIZE_FOL… in hidd_l2cif_data_ind()
[all …]
Dhidh_conn.c292 hh_cb.callback( (UINT8) p_tle->param, hh_cb.devices[p_tle->param].addr, in hidh_proc_repage_timeout()
391 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_connect_cfm()
468 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_ind()
487 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, NULL ) ; in hidh_l2cif_config_ind()
524 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_cfm()
539 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_cfm()
558 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, NULL ) ; in hidh_l2cif_config_cfm()
619 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, disc_res, NULL); in hidh_l2cif_disconnect_ind()
638 …hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, hid_close_evt_reason, N… in hidh_l2cif_disconnect_ind()
684 …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-3.4.0/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-3.4.0/components/bt/esp_ble_mesh/api/models/
Desp_ble_mesh_lighting_model_api.c15 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
19 return (btc_profile_cb_set(BTC_PID_LIGHTING_CLIENT, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_light_client_callback()
75 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
79 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.c15 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
19 return (btc_profile_cb_set(BTC_PID_SENSOR_CLIENT, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_sensor_client_callback()
74 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
78 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.c15 …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
19 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()
75 …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
79 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.c15 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
19 return (btc_profile_cb_set(BTC_PID_CONFIG_CLIENT, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_config_client_callback()
92 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
96 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.c15 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
19 return (btc_profile_cb_set(BTC_PID_GENERIC_CLIENT, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_generic_client_callback()
88 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
92 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.c15 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
19 return (btc_profile_cb_set(BTC_PID_HEALTH_CLIENT, callback) == 0 ? ESP_OK : ESP_FAIL); in esp_ble_mesh_register_health_client_callback()
75 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
79 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-3.4.0/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-3.4.0/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-3.4.0/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-3.4.0/tools/
Didf.py205 def __init__(self, callback, name, aliases, dependencies, order_dependencies, action_args): argument
206 self.callback = callback
217 self.callback(self.name, context, global_args, **action_args)
231 self.name = self.name or self.callback.__name__
239 self.help = self.help or self.callback.__doc__
264 self.unwrapped_callback = self.callback
265 if self.callback is not None:
269 callback=self.unwrapped_callback,
277 self.callback = wrapped_callback
455 return Action(name=name, callback=self._actions.get('fallback').unwrapped_callback)
/hal_espressif-3.4.0/components/esp_hid/include/
Desp_hidd.h145 …ce_config_t *config, esp_hid_transport_t transport, esp_event_handler_t callback, esp_hidd_dev_t *…
212 esp_err_t esp_hidd_dev_event_handler_register(esp_hidd_dev_t *dev, esp_event_handler_t callback, es…
222 esp_err_t esp_hidd_dev_event_handler_unregister(esp_hidd_dev_t *dev, esp_event_handler_t callback, …
/hal_espressif-3.4.0/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);

12345678910