/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/common_components/button/ |
D | button.c | 52 button_cb cb; member 91 if (btn_cb->cb) { in button_press_cb() 92 btn_cb->cb(btn_cb->arg); in button_press_cb() 124 if (btn->tap_psh_cb.cb) { in button_tap_psh_cb() 125 btn->tap_psh_cb.cb(btn->tap_psh_cb.arg); in button_tap_psh_cb() 164 if (btn->tap_short_cb.cb && btn->state == BUTTON_STATE_PUSH) { in button_tap_rls_cb() 165 btn->tap_short_cb.cb(btn->tap_short_cb.arg); in button_tap_rls_cb() 167 if(btn->tap_rls_cb.cb && btn->state != BUTTON_STATE_IDLE) { in button_tap_rls_cb() 168 btn->tap_rls_cb.cb(btn->tap_rls_cb.arg); in button_tap_rls_cb() 182 if (btn->press_serial_cb.cb) { in button_press_serial_cb() [all …]
|
D | button_obj.cpp | 30 esp_err_t CButton::set_evt_cb(button_cb_type_t type, button_cb cb, void* arg) in set_evt_cb() argument 32 return iot_button_set_evt_cb(m_btn_handle, type, cb, arg); in set_evt_cb() 35 esp_err_t CButton::set_serial_cb(button_cb cb, void* arg, TickType_t interval_tick, uint32_t start_… in set_serial_cb() argument 37 return iot_button_set_serial_cb(m_btn_handle, start_after_sec, interval_tick, cb, arg); in set_serial_cb() 40 esp_err_t CButton::add_custom_cb(uint32_t press_sec, button_cb cb, void* arg) in add_custom_cb() argument 42 return iot_button_add_custom_cb(m_btn_handle, press_sec, cb, arg); in add_custom_cb()
|
/hal_espressif-2.7.6/examples/cxx/experimental/experimental_cpp_component/ |
D | esp_event_cxx.cpp | 28 ESPEventReg::ESPEventReg(std::function<void(const ESPEvent &, void*)> cb, in ESPEventReg() argument 31 : cb(cb), event(ev), api(api) in ESPEventReg() 33 if (!cb) throw EventException(ESP_ERR_INVALID_ARG); in ESPEventReg() 49 cb(event, event_data); in dispatch_event_handling() 61 ESPEventRegTimed::ESPEventRegTimed(std::function<void(const ESPEvent &, void*)> cb, in ESPEventRegTimed() argument 66 : ESPEventReg(cb, ev, api), timeout_cb(timeout_cb) in ESPEventRegTimed() 104 cb(event, event_data); in dispatch_event_handling() 126 function<void(const ESPEvent &, void*)> cb) in register_event() argument 128 return unique_ptr<ESPEventReg>(new ESPEventReg(cb, event, api)); in register_event() 132 std::function<void(const ESPEvent &, void*)> cb, in register_event_timed() argument [all …]
|
/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/common_components/button/include/ |
D | iot_button.h | 67 …_handle_t btn_handle, uint32_t start_after_sec, TickType_t interval_tick, button_cb cb, void* arg); 85 esp_err_t iot_button_set_evt_cb(button_handle_t btn_handle, button_cb_type_t type, button_cb cb, vo… 104 esp_err_t iot_button_add_custom_cb(button_handle_t btn_handle, uint32_t press_sec, button_cb cb, vo… 180 esp_err_t set_evt_cb(button_cb_type_t type, button_cb cb, void* arg); 199 …esp_err_t set_serial_cb(button_cb cb, void* arg, TickType_t interval_tick, uint32_t start_after_se… 217 esp_err_t add_custom_cb(uint32_t press_sec, button_cb cb, void* arg);
|
/hal_espressif-2.7.6/components/esp_pm/include/esp_private/ |
D | pm_impl.h | 138 esp_err_t esp_pm_register_skip_light_sleep_callback(skip_light_sleep_cb_t cb); 150 esp_err_t esp_pm_unregister_skip_light_sleep_callback(skip_light_sleep_cb_t cb); 168 … esp_pm_register_inform_out_light_sleep_overhead_callback(inform_out_light_sleep_overhead_cb_t cb); 180 …sp_pm_unregister_inform_out_light_sleep_overhead_callback(inform_out_light_sleep_overhead_cb_t cb); 194 …ister_light_sleep_default_params_config_callback(update_light_sleep_default_params_config_cb_t cb);
|
/hal_espressif-2.7.6/components/tinyusb/additions/src/ |
D | tusb_cdc_acm.c | 76 tusb_cdcacm_callback_t cb = acm->callback_line_state_changed; in tud_cdc_line_state_cb() local 77 if (cb) { in tud_cdc_line_state_cb() 85 cb(itf, &event); in tud_cdc_line_state_cb() 118 tusb_cdcacm_callback_t cb = acm->callback_rx; in tud_cdc_rx_cb() local 119 if (cb) { in tud_cdc_rx_cb() 123 cb(itf, &event); in tud_cdc_rx_cb() 133 tusb_cdcacm_callback_t cb = acm->callback_line_coding_changed; in tud_cdc_line_coding_cb() local 134 if (cb) { in tud_cdc_line_coding_cb() 141 cb(itf, &event); in tud_cdc_line_coding_cb() 153 tusb_cdcacm_callback_t cb = acm->callback_rx_wanted_char; in tud_cdc_rx_wanted_cb() local [all …]
|
/hal_espressif-2.7.6/components/esp_event/ |
D | event_loop_legacy.c | 38 system_event_cb_t esp_event_loop_set_cb(system_event_cb_t cb, void *ctx) in esp_event_loop_set_cb() argument 41 s_event_handler_cb = cb; in esp_event_loop_set_cb() 56 esp_err_t esp_event_loop_init(system_event_cb_t cb, void *ctx) in esp_event_loop_init() argument 74 s_event_handler_cb = cb; in esp_event_loop_init()
|
/hal_espressif-2.7.6/components/esp_pm/ |
D | pm_locks.c | 180 size_t cb; in esp_pm_dump_locks() local 184 cb = snprintf(buf, len, "lock@%p ", it); in esp_pm_dump_locks() 186 cb = snprintf(buf, len, "%-15.15s ", it->name); in esp_pm_dump_locks() 188 assert(cb <= len); // above formats should fit into sizeof(line) in esp_pm_dump_locks() 189 buf += cb; in esp_pm_dump_locks() 190 len -= cb; in esp_pm_dump_locks()
|
D | pm_impl.c | 557 esp_err_t esp_pm_register_skip_light_sleep_callback(skip_light_sleep_cb_t cb) in esp_pm_register_skip_light_sleep_callback() argument 560 if (s_periph_skip_light_sleep_cb[i] == cb) { in esp_pm_register_skip_light_sleep_callback() 563 s_periph_skip_light_sleep_cb[i] = cb; in esp_pm_register_skip_light_sleep_callback() 570 esp_err_t esp_pm_unregister_skip_light_sleep_callback(skip_light_sleep_cb_t cb) in esp_pm_unregister_skip_light_sleep_callback() argument 573 if (s_periph_skip_light_sleep_cb[i] == cb) { in esp_pm_unregister_skip_light_sleep_callback() 836 …t esp_pm_register_inform_out_light_sleep_overhead_callback(inform_out_light_sleep_overhead_cb_t cb) argument 839 if (s_periph_inform_out_light_sleep_overhead_cb[i] == cb) { 842 s_periph_inform_out_light_sleep_overhead_cb[i] = cb; 849 …esp_pm_unregister_inform_out_light_sleep_overhead_callback(inform_out_light_sleep_overhead_cb_t cb) argument 852 if (s_periph_inform_out_light_sleep_overhead_cb[i] == cb) { [all …]
|
/hal_espressif-2.7.6/components/esp_system/include/ |
D | esp_sleep.h | 480 esp_err_t esp_register_mac_bb_pd_callback(mac_bb_power_down_cb_t cb); 488 esp_err_t esp_unregister_mac_bb_pd_callback(mac_bb_power_down_cb_t cb); 496 esp_err_t esp_register_mac_bb_pu_callback(mac_bb_power_up_cb_t cb); 504 esp_err_t esp_unregister_mac_bb_pu_callback(mac_bb_power_up_cb_t cb);
|
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_core/ |
D | proxy_client.h | 95 void bt_mesh_proxy_client_set_adv_recv_cb(proxy_client_recv_adv_cb_t cb); 96 void bt_mesh_proxy_client_set_conn_cb(proxy_client_connect_cb_t cb); 97 void bt_mesh_proxy_client_set_disconn_cb(proxy_client_disconnect_cb_t cb); 98 void bt_mesh_proxy_client_set_filter_status_cb(proxy_client_recv_filter_status_cb_t cb);
|
D | net.h | 354 const struct bt_mesh_send_cb *cb, void *cb_data); 357 bool new_key, const struct bt_mesh_send_cb *cb, 404 static inline void send_cb_finalize(const struct bt_mesh_send_cb *cb, in send_cb_finalize() argument 407 if (!cb) { in send_cb_finalize() 411 if (cb->start) { in send_cb_finalize() 412 cb->start(0, 0, cb_data); in send_cb_finalize() 415 if (cb->end) { in send_cb_finalize() 416 cb->end(0, cb_data); in send_cb_finalize()
|
D | adv.c | 128 const struct bt_mesh_send_cb *cb, in adv_send_start() argument 131 if (cb && cb->start) { in adv_send_start() 132 cb->start(duration, err, cb_data); in adv_send_start() 136 static inline void adv_send_end(int err, const struct bt_mesh_send_cb *cb, in adv_send_end() argument 139 if (cb && cb->end) { in adv_send_end() 140 cb->end(err, cb_data); in adv_send_end() 148 const struct bt_mesh_send_cb *cb = BLE_MESH_ADV(buf)->cb; in adv_send() local 213 adv_send_start(duration, err, cb, cb_data); in adv_send() 224 adv_send_end(err, cb, cb_data); in adv_send() 462 void bt_mesh_adv_send(struct net_buf *buf, const struct bt_mesh_send_cb *cb, in bt_mesh_adv_send() argument [all …]
|
D | health_srv.c | 168 if (srv->cb.fault_clear) { in health_fault_clear() 169 srv->cb.fault_clear(model, company_id); in health_fault_clear() 208 if (srv->cb.fault_test) { in health_fault_test() 209 srv->cb.fault_test(model, test_id, company_id); in health_fault_test() 426 if (srv->cb.attn_off) { in attention_off() 427 srv->cb.attn_off(srv->model); in attention_off() 533 if (srv->cb.attn_on) { in bt_mesh_attention() 534 srv->cb.attn_on(model, time); in bt_mesh_attention() 543 if (srv->cb.attn_off) { in bt_mesh_attention() 544 srv->cb.attn_off(model); in bt_mesh_attention()
|
D | adv.h | 45 const struct bt_mesh_send_cb *cb; member 75 void bt_mesh_adv_send(struct net_buf *buf, const struct bt_mesh_send_cb *cb, 81 void bt_mesh_relay_adv_send(struct net_buf *buf, const struct bt_mesh_send_cb *cb,
|
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/btc/ |
D | btc_ble_mesh_prov.c | 1235 model->cb = (esp_ble_mesh_model_cbs_t *)&bt_mesh_cfg_srv_cb; in btc_ble_mesh_model_op_set() 1245 model->cb = (esp_ble_mesh_model_cbs_t *)&bt_mesh_cfg_cli_cb; in btc_ble_mesh_model_op_set() 1256 model->cb = (esp_ble_mesh_model_cbs_t *)&bt_mesh_health_srv_cb; in btc_ble_mesh_model_op_set() 1259 srv->cb.fault_clear = btc_ble_mesh_health_server_fault_clear; in btc_ble_mesh_model_op_set() 1260 srv->cb.fault_test = btc_ble_mesh_health_server_fault_test; in btc_ble_mesh_model_op_set() 1261 srv->cb.attn_on = btc_ble_mesh_health_server_attention_on; in btc_ble_mesh_model_op_set() 1262 srv->cb.attn_off = btc_ble_mesh_health_server_attention_off; in btc_ble_mesh_model_op_set() 1270 model->cb = (esp_ble_mesh_model_cbs_t *)&bt_mesh_health_cli_cb; in btc_ble_mesh_model_op_set() 1281 model->cb = (esp_ble_mesh_model_cbs_t *)&bt_mesh_generic_client_cb; in btc_ble_mesh_model_op_set() 1290 model->cb = (esp_ble_mesh_model_cbs_t *)&bt_mesh_generic_client_cb; in btc_ble_mesh_model_op_set() [all …]
|
/hal_espressif-2.7.6/components/esp_timer/src/ |
D | esp_timer.c | 453 size_t cb; in print_timer_info() local 456 cb = snprintf(*dst, *dst_size, "%-12s ", t->name); in print_timer_info() 458 cb = snprintf(*dst, *dst_size, "timer@%p ", t); in print_timer_info() 460 cb += snprintf(*dst + cb, *dst_size + cb, "%12lld %12lld %9d %9d %6d %12lld\n", in print_timer_info() 466 …size_t cb = snprintf(*dst, *dst_size, "timer@%p %12lld %12lld\n", t, (uint64_t)t->period, t->ala… in print_timer_info() 469 *dst += cb; in print_timer_info() 470 *dst_size -= cb; in print_timer_info()
|
/hal_espressif-2.7.6/components/bt/common/btc/core/ |
D | btc_alarm.c | 25 if (arg->cb) { in btc_alarm_handler() 26 arg->cb(arg->cb_data); in btc_alarm_handler()
|
D | btc_manage.c | 34 int btc_profile_cb_set(btc_pid_t profile_id, void *cb) in btc_profile_cb_set() argument 40 btc_profile_cb_tab[profile_id] = cb; in btc_profile_cb_set()
|
/hal_espressif-2.7.6/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/ |
D | bt_app_core.c | 36 msg.cb = p_cback; in bt_app_work_dispatch() 68 if (msg->cb) { in bt_app_work_dispatched() 69 msg->cb(msg->event, msg->param); in bt_app_work_dispatched()
|
/hal_espressif-2.7.6/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/ |
D | bt_app_core.c | 36 msg.cb = p_cback; in bt_app_work_dispatch() 69 if (msg->cb) { in bt_app_work_dispatched() 70 msg->cb(msg->event, msg->param); in bt_app_work_dispatched()
|
/hal_espressif-2.7.6/examples/bluetooth/bluedroid/classic_bt/a2dp_source/main/ |
D | bt_app_core.c | 36 msg.cb = p_cback; in bt_app_work_dispatch() 69 if (msg->cb) { in bt_app_work_dispatched() 70 msg->cb(msg->event, msg->param); in bt_app_work_dispatched()
|
/hal_espressif-2.7.6/examples/cxx/experimental/experimental_cpp_component/include/ |
D | esp_event_cxx.hpp | 150 ESPEventReg(std::function<void(const ESPEvent &, void*)> cb, 171 std::function<void(const ESPEvent &, void*)> cb; member in idf::event::ESPEventReg 221 ESPEventRegTimed(std::function<void(const ESPEvent &, void*)> cb, 288 std::function<void(const ESPEvent &, void*)> cb); 299 std::function<void(const ESPEvent &, void*)> cb,
|
/hal_espressif-2.7.6/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/ |
D | spp_task.c | 42 msg.cb = p_cback; in spp_task_work_dispatch() 75 if (msg->cb) { in spp_task_work_dispatched() 76 msg->cb(msg->event, msg->param); in spp_task_work_dispatched()
|
/hal_espressif-2.7.6/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/ |
D | spp_task.c | 42 msg.cb = p_cback; in spp_task_work_dispatch() 75 if (msg->cb) { in spp_task_work_dispatched() 76 msg->cb(msg->event, msg->param); in spp_task_work_dispatched()
|