Home
last modified time | relevance | path

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

12345

/hal_espressif-latest/components/driver/spi/gpspi/
Dspi_slave_hd.c37 spi_slave_hd_callback_config_t callback; member
208 …memcpy((uint8_t *)&host->callback, (uint8_t *)&config->cb_config, sizeof(spi_slave_hd_callback_con… in spi_slave_hd_init()
210 if (host->callback.cb_buffer_tx != NULL) event |= SPI_EV_BUF_TX; in spi_slave_hd_init()
211 if (host->callback.cb_buffer_rx != NULL) event |= SPI_EV_BUF_RX; in spi_slave_hd_init()
212 if (host->callback.cb_cmd9 != NULL) event |= SPI_EV_CMD9; in spi_slave_hd_init()
213 if (host->callback.cb_cmdA != NULL) event |= SPI_EV_CMDA; in spi_slave_hd_init()
276 cb(host->callback.arg, &event, &cb_awoken); in intr_check_clear_callback()
284 spi_slave_hd_callback_config_t *callback = &host->callback; in spi_slave_hd_intr_segment() local
289 awoken |= intr_check_clear_callback(host, SPI_EV_BUF_TX, callback->cb_buffer_tx); in spi_slave_hd_intr_segment()
290 awoken |= intr_check_clear_callback(host, SPI_EV_BUF_RX, callback->cb_buffer_rx); in spi_slave_hd_intr_segment()
[all …]
/hal_espressif-latest/zephyr/port/coex/
Dcoex_stubs.c162 void coex_wifi_register_update_lpclk_callback(coex_set_lpclk_source_callback_t callback) in coex_wifi_register_update_lpclk_callback() argument
164 (void)callback; in coex_wifi_register_update_lpclk_callback()
202 int coex_register_bt_cb(coex_func_cb_t callback) in coex_register_bt_cb() argument
204 (void)callback; in coex_register_bt_cb()
235 int coex_register_wifi_channel_change_callback(coex_wifi_channel_change_cb_t callback) in coex_register_wifi_channel_change_callback() argument
237 (void)callback; in coex_register_wifi_channel_change_callback()
399 int coex_schm_register_callback(coex_schm_callback_type_t type, void *callback) in coex_schm_register_callback() argument
402 (void)callback; in coex_schm_register_callback()
/hal_espressif-latest/components/bt/porting/transport/driver/uart/
Dhci_driver_uart_dma.c94 esp_bt_hci_tl_callback_t callback; member
110 …ver_uart_dma_recv_async(uint8_t *buf, uint32_t size, esp_bt_hci_tl_callback_t callback, void *arg);
112 int hci_driver_uart_dma_tx_start(esp_bt_hci_tl_callback_t callback, void *arg);
227 esp_bt_hci_tl_callback_t callback = uart_env.rx.callback; in hci_uart_tl_rx_eof_callback() local
230 assert(uart_env.rx.callback != NULL); in hci_uart_tl_rx_eof_callback()
232 uart_env.rx.callback = NULL; in hci_uart_tl_rx_eof_callback()
235 callback(arg, ESP_BT_HCI_TL_STATUS_OK); in hci_uart_tl_rx_eof_callback()
241 esp_bt_hci_tl_callback_t callback = uart_env.tx.callback; in hci_uart_tl_tx_eof_callback() local
243 assert(uart_env.tx.callback != NULL); in hci_uart_tl_tx_eof_callback()
245 uart_env.tx.callback = NULL; in hci_uart_tl_tx_eof_callback()
[all …]
/hal_espressif-latest/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-latest/components/esp_coex/include/private/
Desp_coexist_internal.h154 void coex_wifi_register_update_lpclk_callback(coex_set_lpclk_source_callback_t callback);
182 int coex_register_bt_cb(coex_func_cb_t callback);
207 int coex_register_wifi_channel_change_callback(coex_wifi_channel_change_cb_t callback);
316 int coex_schm_register_callback(coex_schm_callback_type_t type, void *callback);
/hal_espressif-latest/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
77 arg.data_cb = callback; in esp_a2d_sink_register_data_callback()
183 esp_err_t esp_a2d_register_callback(esp_a2d_cb_t callback) in esp_a2d_register_callback() argument
193 if (callback == NULL) { in esp_a2d_register_callback()
197 btc_profile_cb_set(BTC_PID_A2DP, callback); in esp_a2d_register_callback()
322 esp_err_t esp_a2d_source_register_data_callback(esp_a2d_source_data_cb_t callback) in esp_a2d_source_register_data_callback() argument
339 arg.src_data_cb = callback; in esp_a2d_source_register_data_callback()
Desp_l2cap_bt_api.c18 esp_err_t esp_bt_l2cap_register_callback(esp_bt_l2cap_cb_t callback) in esp_bt_l2cap_register_callback() argument
22 if (callback == NULL) { in esp_bt_l2cap_register_callback()
26 btc_profile_cb_set(BTC_PID_L2CAP, callback); in esp_bt_l2cap_register_callback()
Desp_sdp_api.c36 esp_err_t esp_sdp_register_callback(esp_sdp_cb_t callback) in esp_sdp_register_callback() argument
40 if (callback == NULL) { in esp_sdp_register_callback()
44 btc_profile_cb_set(BTC_PID_SDP, callback); in esp_sdp_register_callback()
/hal_espressif-latest/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()
Dhash_map.c41 list_t *list_new_internal(list_free_cb callback);
213 void hash_map_foreach(hash_map_t *hash_map, hash_map_iter_cb callback, void *context) in hash_map_foreach() argument
216 assert(callback != NULL); in hash_map_foreach()
226 if (!callback(hash_map_entry, context)) { in hash_map_foreach()
/hal_espressif-latest/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()
253 …hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_CLOSE, HID_L2CAP_CONN_FAIL | (uint32_t)result, NUL… in hidd_l2cif_connect_cfm()
309 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_CLOSE, HID_ERR_L2CAP_FAILED, NULL); in hidd_l2cif_config_ind()
357 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_CLOSE, reason, NULL); in hidd_l2cif_config_cfm()
370 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_CLOSE, HID_ERR_L2CAP_FAILED, NULL); in hidd_l2cif_config_cfm()
420 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_CLOSE, p_hcon->disc_reason, NULL); in hidd_l2cif_disconnect_ind()
453 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_VC_UNPLUG, p_hcon->disc_reason, NULL); in hidd_l2cif_disconnect_cfm()
456 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_CLOSE, p_hcon->disc_reason, NULL); in hidd_l2cif_disconnect_cfm()
512 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_INTR_DATA, 0, p_msg); in hidd_l2cif_data_ind()
519 …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.c293 hh_cb.callback( (UINT8) p_tle->param, hh_cb.devices[p_tle->param].addr, in hidh_proc_repage_timeout()
392 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_connect_cfm()
469 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_ind()
488 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, NULL ) ; in hidh_l2cif_config_ind()
525 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_cfm()
540 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_cfm()
559 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, NULL ) ; in hidh_l2cif_config_cfm()
620 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, disc_res, NULL); in hidh_l2cif_disconnect_ind()
639 …hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, hid_close_evt_reason, N… in hidh_l2cif_disconnect_ind()
691 …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-latest/components/esp_system/task_wdt/
Dtask_wdt_impl_esp_timer.c38 twdt_isr_callback callback, in esp_task_wdt_impl_timer_allocate() argument
43 .callback = callback, in esp_task_wdt_impl_timer_allocate()
/hal_espressif-latest/components/bt/host/bluedroid/api/include/api/
Desp_a2dp_api.h248 esp_err_t esp_a2d_register_callback(esp_a2d_cb_t callback);
265 esp_err_t esp_a2d_sink_register_data_callback(esp_a2d_sink_data_cb_t callback);
424 esp_err_t esp_a2d_source_register_data_callback(esp_a2d_source_data_cb_t callback);
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/include/
Dbtc_av.h112 void btc_a2dp_sink_reg_data_cb(esp_a2d_sink_data_cb_t callback);
114 void btc_a2dp_src_reg_data_cb(esp_a2d_source_data_cb_t callback);
/hal_espressif-latest/zephyr/port/bluetooth/
Dbt_stubs.c45 int btdm_dispatch_work_to_controller(workitem_handler_t callback, void *arg, bool blocking) in btdm_dispatch_work_to_controller() argument
128 int API_vhci_host_register_callback(const esp_vhci_host_callback_t *callback) in API_vhci_host_register_callback() argument
/hal_espressif-latest/components/bt/common/osi/include/osi/
Dlist.h21 list_t *list_new(list_free_cb callback);
98 list_node_t *list_foreach(const list_t *list, list_iter_cb callback, void *context);
/hal_espressif-latest/components/bt/host/bluedroid/stack/include/stack/
Dbtu.h37 void (*callback)(BT_HDR *); member
41 void (*callback)(BT_HDR *); member
47 void (*callback)(BT_HDR *); member
/hal_espressif-latest/zephyr/port/heap/
Dheap_caps_zephyr.c27 esp_err_t heap_caps_register_failed_alloc_callback(esp_alloc_failed_hook_t callback) in heap_caps_register_failed_alloc_callback() argument
29 if (callback == NULL) { in heap_caps_register_failed_alloc_callback()
33 alloc_failed_callback = callback; in heap_caps_register_failed_alloc_callback()
/hal_espressif-latest/components/heap/
Dheap_caps_linux.c20 esp_err_t heap_caps_register_failed_alloc_callback(esp_alloc_failed_hook_t callback) in heap_caps_register_failed_alloc_callback() argument
22 if (callback == NULL) { in heap_caps_register_failed_alloc_callback()
26 alloc_failed_callback = callback; in heap_caps_register_failed_alloc_callback()

12345