/hal_espressif-3.4.0/examples/bluetooth/bluedroid/ble/gatt_server/main/ |
D | gatts_demo.c | 41 …event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param); 42 …event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param); 182 …nv(esp_gatt_if_t gatts_if, prepare_type_env_t *prepare_write_env, esp_ble_gatts_cb_param_t *param); 183 …ample_exec_write_event_env(prepare_type_env_t *prepare_write_env, esp_ble_gatts_cb_param_t *param); 185 static void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) in gap_event_handler() argument 217 if (param->adv_start_cmpl.status != ESP_BT_STATUS_SUCCESS) { in gap_event_handler() 222 if (param->adv_stop_cmpl.status != ESP_BT_STATUS_SUCCESS) { in gap_event_handler() 230 param->update_conn_params.status, in gap_event_handler() 231 param->update_conn_params.min_int, in gap_event_handler() 232 param->update_conn_params.max_int, in gap_event_handler() [all …]
|
/hal_espressif-3.4.0/examples/system/ota/advanced_https_ota/main/ble_helper/ |
D | bluedroid_gatts.c | 91 …xample_exec_write_event_env(prepare_type_env_t *prepare_write_env, esp_ble_gatts_cb_param_t *param) in example_exec_write_event_env() argument 93 if (param->exec_write.exec_write_flag == ESP_GATT_PREP_WRITE_EXEC) { in example_exec_write_event_env() 105 …env(esp_gatt_if_t gatts_if, prepare_type_env_t *prepare_write_env, esp_ble_gatts_cb_param_t *param) in example_write_event_env() argument 108 if (param->write.need_rsp) { in example_write_event_env() 109 if (param->write.is_prep) { in example_write_event_env() 118 if (param->write.offset > PREPARE_BUF_MAX_SIZE) { in example_write_event_env() 120 } else if ((param->write.offset + param->write.len) > PREPARE_BUF_MAX_SIZE) { in example_write_event_env() 126 gatt_rsp->attr_value.len = param->write.len; in example_write_event_env() 127 gatt_rsp->attr_value.handle = param->write.handle; in example_write_event_env() 128 gatt_rsp->attr_value.offset = param->write.offset; in example_write_event_env() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/ |
D | main.c | 76 …event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param); 77 …event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param); 78 …nv(esp_gatt_if_t gatts_if, prepare_type_env_t *prepare_write_env, esp_ble_gatts_cb_param_t *param); 79 …ample_exec_write_event_env(prepare_type_env_t *prepare_write_env, esp_ble_gatts_cb_param_t *param); 156 static void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) in gap_event_handler() argument 167 if (param->adv_start_cmpl.status != ESP_BT_STATUS_SUCCESS) { in gap_event_handler() 174 if (param->adv_stop_cmpl.status != ESP_BT_STATUS_SUCCESS) { in gap_event_handler() 183 param->update_conn_params.status, in gap_event_handler() 184 param->update_conn_params.min_int, in gap_event_handler() 185 param->update_conn_params.max_int, in gap_event_handler() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/ |
D | gattc_gatts_coex.c | 93 …event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param); 94 …event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param); 96 … esp_gattc_cb(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if, esp_ble_gattc_cb_param_t *param); 97 …event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if, esp_ble_gattc_cb_param_t *param); 98 …nv(esp_gatt_if_t gatts_if, prepare_type_env_t *prepare_write_env, esp_ble_gatts_cb_param_t *param); 99 …ample_exec_write_event_env(prepare_type_env_t *prepare_write_env, esp_ble_gatts_cb_param_t *param); 212 static void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) in gap_event_handler() argument 234 if (param->adv_start_cmpl.status != ESP_BT_STATUS_SUCCESS) { in gap_event_handler() 240 if (param->adv_stop_cmpl.status != ESP_BT_STATUS_SUCCESS) { in gap_event_handler() 248 param->update_conn_params.status, in gap_event_handler() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/ |
D | example_ble_server_throughput.c | 66 …event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param); 199 …nv(esp_gatt_if_t gatts_if, prepare_type_env_t *prepare_write_env, esp_ble_gatts_cb_param_t *param); 200 …ample_exec_write_event_env(prepare_type_env_t *prepare_write_env, esp_ble_gatts_cb_param_t *param); 222 static void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) in gap_event_handler() argument 254 if (param->adv_start_cmpl.status != ESP_BT_STATUS_SUCCESS) { in gap_event_handler() 259 if (param->adv_stop_cmpl.status != ESP_BT_STATUS_SUCCESS) { in gap_event_handler() 268 param->update_conn_params.status, in gap_event_handler() 269 param->update_conn_params.min_int, in gap_event_handler() 270 param->update_conn_params.max_int, in gap_event_handler() 271 param->update_conn_params.conn_int, in gap_event_handler() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/ |
D | bt_app_hf.c | 230 void bt_app_hf_client_cb(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_t *param) in bt_app_hf_client_cb() argument 242 c_connection_state_str[param->conn_stat.state], in bt_app_hf_client_cb() 243 param->conn_stat.peer_feat, in bt_app_hf_client_cb() 244 param->conn_stat.chld_feat); in bt_app_hf_client_cb() 245 memcpy(peer_addr,param->conn_stat.remote_bda,ESP_BD_ADDR_LEN); in bt_app_hf_client_cb() 252 c_audio_state_str[param->audio_stat.state]); in bt_app_hf_client_cb() 254 if (param->audio_stat.state == ESP_HF_CLIENT_AUDIO_STATE_CONNECTED || in bt_app_hf_client_cb() 255 param->audio_stat.state == ESP_HF_CLIENT_AUDIO_STATE_CONNECTED_MSBC) { in bt_app_hf_client_cb() 259 } else if (param->audio_stat.state == ESP_HF_CLIENT_AUDIO_STATE_DISCONNECTED) { in bt_app_hf_client_cb() 269 c_vr_state_str[param->bvra.value]); in bt_app_hf_client_cb() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_client/main/ |
D | main.c | 178 esp_ble_mesh_prov_cb_param_t *param) in example_ble_mesh_provisioning_cb() argument 182 …ESP_LOGI(TAG, "ESP_BLE_MESH_PROV_REGISTER_COMP_EVT, err_code %d", param->prov_register_comp.err_co… in example_ble_mesh_provisioning_cb() 185 …ESP_LOGI(TAG, "ESP_BLE_MESH_PROVISIONER_PROV_ENABLE_COMP_EVT, err_code %d", param->provisioner_pro… in example_ble_mesh_provisioning_cb() 188 …ESP_LOGI(TAG, "ESP_BLE_MESH_PROVISIONER_PROV_DISABLE_COMP_EVT, err_code %d", param->provisioner_pr… in example_ble_mesh_provisioning_cb() 192 …recv_unprov_adv_pkt(param->provisioner_recv_unprov_adv_pkt.dev_uuid, param->provisioner_recv_unpro… in example_ble_mesh_provisioning_cb() 193 … param->provisioner_recv_unprov_adv_pkt.addr_type, param->provisioner_recv_unprov_adv_pkt.oob_info, in example_ble_mesh_provisioning_cb() 194 … param->provisioner_recv_unprov_adv_pkt.adv_type, param->provisioner_recv_unprov_adv_pkt.bearer); in example_ble_mesh_provisioning_cb() 198 … param->provisioner_prov_link_open.bearer == ESP_BLE_MESH_PROV_ADV ? "PB-ADV" : "PB-GATT"); in example_ble_mesh_provisioning_cb() 202 …param->provisioner_prov_link_close.bearer == ESP_BLE_MESH_PROV_ADV ? "PB-ADV" : "PB-GATT", param->… in example_ble_mesh_provisioning_cb() 205 …prov_complete(param->provisioner_prov_complete.node_idx, param->provisioner_prov_complete.device_u… in example_ble_mesh_provisioning_cb() [all …]
|
/hal_espressif-3.4.0/components/bt/host/bluedroid/btc/profile/std/hf_client/ |
D | btc_hf_client.c | 93 …nline void btc_hf_client_cb_to_app(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_t *param) in btc_hf_client_cb_to_app() argument 97 btc_hf_client_callback(event, param); in btc_hf_client_cb_to_app() 274 esp_hf_client_cb_param_t param; in btc_hf_client_connect_audio() local 275 memset(¶m, 0, sizeof(esp_hf_client_cb_param_t)); in btc_hf_client_connect_audio() 276 param.audio_stat.state = ESP_HF_CLIENT_AUDIO_STATE_CONNECTING; in btc_hf_client_connect_audio() 277 …memcpy(param.audio_stat.remote_bda, &hf_client_local_param.btc_hf_client_cb.connected_bda, sizeof(… in btc_hf_client_connect_audio() 278 btc_hf_client_cb_to_app(ESP_HF_CLIENT_AUDIO_STATE_EVT, ¶m); in btc_hf_client_connect_audio() 727 esp_hf_client_cb_param_t param; in process_ind_evt() local 728 memset(¶m, 0, sizeof(esp_hf_client_cb_param_t)); in process_ind_evt() 733 param.call.status = ind->value; in process_ind_evt() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ |
D | ble_mesh_reg_cfg_client_cmd.c | 32 esp_ble_mesh_cfg_client_cb_param_t *param); 40 esp_ble_mesh_cfg_client_cb_param_t *param) in ble_mesh_configuration_client_model_cb() argument 43 ESP_LOGD(TAG, "enter %s, event = %x\n, error_code = %x\n", __func__, event, param->error_code); in ble_mesh_configuration_client_model_cb() 45 if (!param->error_code) { in ble_mesh_configuration_client_model_cb() 46 opcode = param->params->opcode; in ble_mesh_configuration_client_model_cb() 51 ESP_LOGI(TAG, "CfgClient:beacon,0x%x", param->status_cb.beacon_status.beacon); in ble_mesh_configuration_client_model_cb() 54 …ESP_LOGI(TAG, "CfgClient:page,0x%x,len,0x%x", param->status_cb.comp_data_status.page, param->statu… in ble_mesh_configuration_client_model_cb() 57 … ESP_LOGI(TAG, "CfgClient:ttl,0x%x", param->status_cb.default_ttl_status.default_ttl); in ble_mesh_configuration_client_model_cb() 60 … ESP_LOGI(TAG, "CfgClient:proxy,0x%x", param->status_cb.gatt_proxy_status.gatt_proxy); in ble_mesh_configuration_client_model_cb() 63 …ESP_LOGI(TAG, "CfgClient:relay,0x%x,retransmit,0x%x", param->status_cb.relay_status.relay, param->… in ble_mesh_configuration_client_model_cb() [all …]
|
/hal_espressif-3.4.0/components/bt/host/bluedroid/btc/profile/std/hid/ |
D | btc_hd.c | 78 static inline void btc_hd_cb_to_app(esp_hidd_cb_event_t event, esp_hidd_cb_param_t *param) in btc_hd_cb_to_app() argument 82 btc_hd_cb(event, param); in btc_hd_cb_to_app() 230 esp_hidd_cb_param_t param; in btc_hd_init() local 231 param.init.status = ret; in btc_hd_init() 232 btc_hd_cb_to_app(ESP_HIDD_INIT_EVT, ¶m); in btc_hd_init() 270 esp_hidd_cb_param_t param; in btc_hd_deinit() local 271 param.deinit.status = ret; in btc_hd_deinit() 272 btc_hd_cb_to_app(ESP_HIDD_DEINIT_EVT, ¶m); in btc_hd_deinit() 338 esp_hidd_cb_param_t param; in btc_hd_register_app() local 339 param.register_app.status = ret; in btc_hd_register_app() [all …]
|
D | btc_hh.c | 67 static inline void btc_hh_cb_to_app(esp_hidh_cb_event_t event, esp_hidh_cb_param_t *param) in btc_hh_cb_to_app() argument 71 btc_hh_cb(event, param); in btc_hh_cb_to_app() 468 esp_hidh_cb_param_t param; in btc_hh_init() local 469 param.init.status = ret; in btc_hh_init() 470 btc_hh_cb_to_app(ESP_HIDH_INIT_EVT, ¶m); in btc_hh_init() 506 esp_hidh_cb_param_t param; in btc_hh_deinit() local 507 param.deinit.status = ret; in btc_hh_deinit() 508 btc_hh_cb_to_app(ESP_HIDH_DEINIT_EVT, ¶m); in btc_hh_deinit() 527 esp_hidh_cb_param_t param; in btc_hh_connect() local 574 param.open.conn_status = ESP_HIDH_CONN_STATE_CONNECTING; in btc_hh_connect() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_server/main/ |
D | main.c | 322 esp_ble_mesh_prov_cb_param_t *param) in example_ble_mesh_provisioning_cb() argument 329 param->prov_register_comp.err_code); in example_ble_mesh_provisioning_cb() 333 param->node_prov_enable_comp.err_code); in example_ble_mesh_provisioning_cb() 337 param->node_prov_link_open.bearer == ESP_BLE_MESH_PROV_ADV ? "PB-ADV" : "PB-GATT"); in example_ble_mesh_provisioning_cb() 341 … param->node_prov_link_close.bearer == ESP_BLE_MESH_PROV_ADV ? "PB-ADV" : "PB-GATT"); in example_ble_mesh_provisioning_cb() 345 node_prov_complete(param->node_prov_complete.net_idx, param->node_prov_complete.addr, in example_ble_mesh_provisioning_cb() 346 param->node_prov_complete.flags, param->node_prov_complete.iv_index); in example_ble_mesh_provisioning_cb() 356 …example_recv_unprov_adv_pkt(param->provisioner_recv_unprov_adv_pkt.dev_uuid, param->provisioner_re… in example_ble_mesh_provisioning_cb() 357 … param->provisioner_recv_unprov_adv_pkt.addr_type, param->provisioner_recv_unprov_adv_pkt.oob_info, in example_ble_mesh_provisioning_cb() 358 … param->provisioner_recv_unprov_adv_pkt.adv_type, param->provisioner_recv_unprov_adv_pkt.bearer); in example_ble_mesh_provisioning_cb() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/ |
D | main.c | 115 static void esp_spp_cb(esp_spp_cb_event_t event, esp_spp_cb_param_t *param) in esp_spp_cb() argument 122 if (param->init.status == ESP_SPP_SUCCESS) { in esp_spp_cb() 128 ESP_LOGE(SPP_TAG, "ESP_SPP_INIT_EVT status:%d", param->init.status); in esp_spp_cb() 132 if (param->disc_comp.status == ESP_SPP_SUCCESS) { in esp_spp_cb() 133 ESP_LOGI(SPP_TAG, "ESP_SPP_DISCOVERY_COMP_EVT scn_num:%d", param->disc_comp.scn_num); in esp_spp_cb() 134 for (i = 0; i < param->disc_comp.scn_num; i++) { in esp_spp_cb() 135 ESP_LOGI(SPP_TAG, "-- [%d] scn:%d service_name:%s", i, param->disc_comp.scn[i], in esp_spp_cb() 136 param->disc_comp.service_name[i]); in esp_spp_cb() 139 esp_spp_connect(sec_mask, role_master, param->disc_comp.scn[0], peer_bd_addr); in esp_spp_cb() 141 ESP_LOGE(SPP_TAG, "ESP_SPP_DISCOVERY_COMP_EVT status=%d", param->disc_comp.status); in esp_spp_cb() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/ble/gatt_server_service_table/main/ |
D | gatts_table_creat_demo.c | 151 esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param); 222 static void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) in gap_event_handler() argument 254 if (param->adv_start_cmpl.status != ESP_BT_STATUS_SUCCESS) { in gap_event_handler() 261 if (param->adv_stop_cmpl.status != ESP_BT_STATUS_SUCCESS) { in gap_event_handler() 270 param->update_conn_params.status, in gap_event_handler() 271 param->update_conn_params.min_int, in gap_event_handler() 272 param->update_conn_params.max_int, in gap_event_handler() 273 param->update_conn_params.conn_int, in gap_event_handler() 274 param->update_conn_params.latency, in gap_event_handler() 275 param->update_conn_params.timeout); in gap_event_handler() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_server/main/ |
D | main.c | 162 esp_ble_mesh_prov_cb_param_t *param) in example_ble_mesh_provisioning_cb() argument 166 …ESP_LOGI(TAG, "ESP_BLE_MESH_PROV_REGISTER_COMP_EVT, err_code %d", param->prov_register_comp.err_co… in example_ble_mesh_provisioning_cb() 169 …ESP_LOGI(TAG, "ESP_BLE_MESH_NODE_PROV_ENABLE_COMP_EVT, err_code %d", param->node_prov_enable_comp.… in example_ble_mesh_provisioning_cb() 173 param->node_prov_link_open.bearer == ESP_BLE_MESH_PROV_ADV ? "PB-ADV" : "PB-GATT"); in example_ble_mesh_provisioning_cb() 177 param->node_prov_link_close.bearer == ESP_BLE_MESH_PROV_ADV ? "PB-ADV" : "PB-GATT"); in example_ble_mesh_provisioning_cb() 181 prov_complete(param->node_prov_complete.net_idx, param->node_prov_complete.addr, in example_ble_mesh_provisioning_cb() 182 param->node_prov_complete.flags, param->node_prov_complete.iv_index); in example_ble_mesh_provisioning_cb() 188 …ESP_LOGI(TAG, "ESP_BLE_MESH_NODE_SET_UNPROV_DEV_NAME_COMP_EVT, err_code %d", param->node_set_unpro… in example_ble_mesh_provisioning_cb() 196 esp_ble_mesh_cfg_server_cb_param_t *param) in example_ble_mesh_config_server_cb() argument 199 switch (param->ctx.recv_op) { in example_ble_mesh_config_server_cb() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/ble/ble_compatibility_test/main/ |
D | ble_compatibility_test.c | 159 esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param); 279 static void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) in gap_event_handler() argument 311 if (param->adv_start_cmpl.status != ESP_BT_STATUS_SUCCESS) { in gap_event_handler() 318 if (param->adv_stop_cmpl.status != ESP_BT_STATUS_SUCCESS) { in gap_event_handler() 327 param->update_conn_params.status, in gap_event_handler() 328 param->update_conn_params.min_int, in gap_event_handler() 329 param->update_conn_params.max_int, in gap_event_handler() 330 param->update_conn_params.conn_int, in gap_event_handler() 331 param->update_conn_params.latency, in gap_event_handler() 332 param->update_conn_params.timeout); in gap_event_handler() [all …]
|
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/mesh_core/include/ |
D | cfg_cli.h | 38 int bt_mesh_cfg_comp_data_get(bt_mesh_client_common_param_t *param, uint8_t page); 40 int bt_mesh_cfg_beacon_get(bt_mesh_client_common_param_t *param); 42 int bt_mesh_cfg_beacon_set(bt_mesh_client_common_param_t *param, uint8_t val); 44 int bt_mesh_cfg_ttl_get(bt_mesh_client_common_param_t *param); 46 int bt_mesh_cfg_ttl_set(bt_mesh_client_common_param_t *param, uint8_t val); 48 int bt_mesh_cfg_friend_get(bt_mesh_client_common_param_t *param); 50 int bt_mesh_cfg_friend_set(bt_mesh_client_common_param_t *param, uint8_t val); 52 int bt_mesh_cfg_gatt_proxy_get(bt_mesh_client_common_param_t *param); 54 int bt_mesh_cfg_gatt_proxy_set(bt_mesh_client_common_param_t *param, uint8_t val); 56 int bt_mesh_cfg_relay_get(bt_mesh_client_common_param_t *param); [all …]
|
/hal_espressif-3.4.0/components/esp_hid/src/ |
D | bt_hidh.c | 203 static void esp_hh_cb(esp_hidh_cb_event_t event, esp_hidh_cb_param_t *param) in esp_hh_cb() argument 217 p.start.status = bt_hidh_get_status(param->init.status); in esp_hh_cb() 220 if (param->init.status != ESP_HIDH_OK) { in esp_hh_cb() 221 ESP_LOGE(TAG, "ENABLE ERROR: %s", s_esp_hh_status_names[param->init.status]); in esp_hh_cb() 227 p.stop.status = bt_hidh_get_status(param->deinit.status); in esp_hh_cb() 230 if (param->deinit.status != ESP_HIDH_OK) { in esp_hh_cb() 231 ESP_LOGE(TAG, "DISABLE ERROR: %s", s_esp_hh_status_names[param->deinit.status]); in esp_hh_cb() 238 if (param->open.conn_status == ESP_HIDH_CONN_STATE_CONNECTING) { in esp_hh_cb() 244 dev = esp_hidh_dev_get_by_bda(param->open.bd_addr); in esp_hh_cb() 246 if (param->open.is_orig) { in esp_hh_cb() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_server/main/ |
D | main.c | 177 esp_ble_mesh_prov_cb_param_t *param) in example_ble_mesh_provisioning_cb() argument 181 …ESP_LOGI(TAG, "ESP_BLE_MESH_PROV_REGISTER_COMP_EVT, err_code %d", param->prov_register_comp.err_co… in example_ble_mesh_provisioning_cb() 184 …ESP_LOGI(TAG, "ESP_BLE_MESH_NODE_PROV_ENABLE_COMP_EVT, err_code %d", param->node_prov_enable_comp.… in example_ble_mesh_provisioning_cb() 188 param->node_prov_link_open.bearer == ESP_BLE_MESH_PROV_ADV ? "PB-ADV" : "PB-GATT"); in example_ble_mesh_provisioning_cb() 192 param->node_prov_link_close.bearer == ESP_BLE_MESH_PROV_ADV ? "PB-ADV" : "PB-GATT"); in example_ble_mesh_provisioning_cb() 196 prov_complete(param->node_prov_complete.net_idx, param->node_prov_complete.addr, in example_ble_mesh_provisioning_cb() 197 param->node_prov_complete.flags, param->node_prov_complete.iv_index); in example_ble_mesh_provisioning_cb() 203 …ESP_LOGI(TAG, "ESP_BLE_MESH_NODE_SET_UNPROV_DEV_NAME_COMP_EVT, err_code %d", param->node_set_unpro… in example_ble_mesh_provisioning_cb() 211 esp_ble_mesh_generic_server_cb_param_t *param) in example_ble_mesh_generic_server_cb() argument 215 event, param->ctx.recv_op, param->ctx.addr, param->ctx.recv_dst); in example_ble_mesh_generic_server_cb() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/ |
D | main.c | 69 static void spp_write_handle(void * param) in spp_write_handle() argument 72 int fd = (int)param; in spp_write_handle() 144 esp_spp_cb_param_t *param = p; in esp_spp_cb() local 150 if (param->init.status == ESP_SPP_SUCCESS) { in esp_spp_cb() 158 ESP_LOGE(SPP_TAG, "ESP_SPP_INIT_EVT status:%d", param->init.status); in esp_spp_cb() 162 if (param->disc_comp.status == ESP_SPP_SUCCESS) { in esp_spp_cb() 163 ESP_LOGI(SPP_TAG, "ESP_SPP_DISCOVERY_COMP_EVT scn_num:%d", param->disc_comp.scn_num); in esp_spp_cb() 164 for (i = 0; i < param->disc_comp.scn_num; i++) { in esp_spp_cb() 165 ESP_LOGI(SPP_TAG, "-- [%d] scn:%d service_name:%s", i, param->disc_comp.scn[i], in esp_spp_cb() 166 param->disc_comp.service_name[i]); in esp_spp_cb() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_wifi_coexist/main/ |
D | main.c | 334 esp_ble_mesh_prov_cb_param_t *param) in example_ble_mesh_provisioning_cb() argument 341 param->prov_register_comp.err_code); in example_ble_mesh_provisioning_cb() 345 param->node_prov_enable_comp.err_code); in example_ble_mesh_provisioning_cb() 349 param->node_prov_link_open.bearer == ESP_BLE_MESH_PROV_ADV ? "PB-ADV" : "PB-GATT"); in example_ble_mesh_provisioning_cb() 353 … param->node_prov_link_close.bearer == ESP_BLE_MESH_PROV_ADV ? "PB-ADV" : "PB-GATT"); in example_ble_mesh_provisioning_cb() 357 node_prov_complete(param->node_prov_complete.net_idx, param->node_prov_complete.addr, in example_ble_mesh_provisioning_cb() 358 param->node_prov_complete.flags, param->node_prov_complete.iv_index); in example_ble_mesh_provisioning_cb() 368 …example_recv_unprov_adv_pkt(param->provisioner_recv_unprov_adv_pkt.dev_uuid, param->provisioner_re… in example_ble_mesh_provisioning_cb() 369 … param->provisioner_recv_unprov_adv_pkt.addr_type, param->provisioner_recv_unprov_adv_pkt.oob_info, in example_ble_mesh_provisioning_cb() 370 … param->provisioner_recv_unprov_adv_pkt.adv_type, param->provisioner_recv_unprov_adv_pkt.bearer); in example_ble_mesh_provisioning_cb() [all …]
|
/hal_espressif-3.4.0/components/bt/common/btc/profile/esp/blufi/ |
D | blufi_protocol.c | 34 esp_blufi_cb_param_t param; in btc_blufi_protocol_handler() local 52 param.wifi_mode.op_mode = data[0]; in btc_blufi_protocol_handler() 54 btc_transfer_context(&msg, ¶m, sizeof(esp_blufi_cb_param_t), NULL); in btc_blufi_protocol_handler() 126 memcpy(param.sta_bssid.bssid, &data[0], 6); in btc_blufi_protocol_handler() 128 btc_transfer_context(&msg, ¶m, sizeof(esp_blufi_cb_param_t), NULL); in btc_blufi_protocol_handler() 134 param.sta_ssid.ssid = &data[0]; in btc_blufi_protocol_handler() 135 param.sta_ssid.ssid_len = len; in btc_blufi_protocol_handler() 137 … btc_transfer_context(&msg, ¶m, sizeof(esp_blufi_cb_param_t), btc_blufi_cb_deep_copy); in btc_blufi_protocol_handler() 143 param.sta_passwd.passwd = &data[0]; in btc_blufi_protocol_handler() 144 param.sta_passwd.passwd_len = len; in btc_blufi_protocol_handler() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/ |
D | main.c | 63 static void spp_read_handle(void * param) in spp_read_handle() argument 66 int fd = (int)param; in spp_read_handle() 100 esp_spp_cb_param_t *param = p; in esp_spp_cb() local 105 if (param->init.status == ESP_SPP_SUCCESS) { in esp_spp_cb() 111 ESP_LOGE(SPP_TAG, "ESP_SPP_INIT_EVT status:%d", param->init.status); in esp_spp_cb() 121 … ESP_LOGI(SPP_TAG, "ESP_SPP_CLOSE_EVT status:%d handle:%d close_by_remote:%d", param->close.status, in esp_spp_cb() 122 param->close.handle, param->close.async); in esp_spp_cb() 125 if (param->start.status == ESP_SPP_SUCCESS) { in esp_spp_cb() 126 …_LOGI(SPP_TAG, "ESP_SPP_START_EVT handle:%d sec_id:%d scn:%d", param->start.handle, param->start.s… in esp_spp_cb() 127 param->start.scn); in esp_spp_cb() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/classic_bt/bt_hid_mouse_device/main/ |
D | main.c | 148 void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param) in esp_bt_gap_cb() argument 153 if (param->auth_cmpl.stat == ESP_BT_STATUS_SUCCESS) { in esp_bt_gap_cb() 154 ESP_LOGI(TAG, "authentication success: %s", param->auth_cmpl.device_name); in esp_bt_gap_cb() 155 esp_log_buffer_hex(TAG, param->auth_cmpl.bda, ESP_BD_ADDR_LEN); in esp_bt_gap_cb() 157 ESP_LOGE(TAG, "authentication failed, status:%d", param->auth_cmpl.stat); in esp_bt_gap_cb() 162 ESP_LOGI(TAG, "ESP_BT_GAP_PIN_REQ_EVT min_16_digit:%d", param->pin_req.min_16_digit); in esp_bt_gap_cb() 163 if (param->pin_req.min_16_digit) { in esp_bt_gap_cb() 166 esp_bt_gap_pin_reply(param->pin_req.bda, true, 16, pin_code); in esp_bt_gap_cb() 174 esp_bt_gap_pin_reply(param->pin_req.bda, true, 4, pin_code); in esp_bt_gap_cb() 181 …ESP_LOGI(TAG, "ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: %d", param->cfm_req.num_va… in esp_bt_gap_cb() [all …]
|
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/btc/ |
D | btc_ble_mesh_health_model.c | 20 … esp_ble_mesh_health_client_cb_param_t *param) in btc_ble_mesh_health_client_cb_to_app() argument 25 btc_ble_mesh_cb(event, param); in btc_ble_mesh_health_client_cb_to_app() 309 bt_mesh_client_common_param_t param = {0}; in btc_ble_mesh_health_client_get_state() local 321 param.opcode = params->opcode; in btc_ble_mesh_health_client_get_state() 322 param.model = (struct bt_mesh_model *)params->model; in btc_ble_mesh_health_client_get_state() 323 param.ctx.net_idx = params->ctx.net_idx; in btc_ble_mesh_health_client_get_state() 324 param.ctx.app_idx = params->ctx.app_idx; in btc_ble_mesh_health_client_get_state() 325 param.ctx.addr = params->ctx.addr; in btc_ble_mesh_health_client_get_state() 326 param.ctx.send_rel = params->ctx.send_rel; in btc_ble_mesh_health_client_get_state() 327 param.ctx.send_ttl = params->ctx.send_ttl; in btc_ble_mesh_health_client_get_state() [all …]
|