/hal_espressif-3.5.0/components/bt/common/btc/profile/esp/blufi/bluedroid_host/ |
D | esp_blufi.c | 85 static void blufi_profile_cb(tBTA_GATTS_EVT event, tBTA_GATTS *p_data); 106 static void blufi_profile_cb(tBTA_GATTS_EVT event, tBTA_GATTS *p_data) in blufi_profile_cb() argument 113 …G: status %d, app_uuid %04x, gatt_if %d\n", p_data->reg_oper.status, p_data->reg_oper.uuid.uu.uuid… in blufi_profile_cb() 115 if (p_data->reg_oper.status != BTA_GATT_OK) { in blufi_profile_cb() 120 blufi_env.gatt_if = p_data->reg_oper.server_if; in blufi_profile_cb() 124 if (p_data->reg_oper.uuid.uu.uuid16 == BLUFI_APP_UUID) { in blufi_profile_cb() 133 …BLUFI_TRACE_DEBUG("DEREG: status %d, gatt_if %d\n", p_data->reg_oper.status, p_data->reg_oper.serv… in blufi_profile_cb() 135 if (p_data->reg_oper.status != BTA_GATT_OK) { in blufi_profile_cb() 153 rsp.attr_value.handle = p_data->req_data.p_data->read_req.handle; in blufi_profile_cb() 156 BTA_GATTS_SendRsp(p_data->req_data.conn_id, p_data->req_data.trans_id, in blufi_profile_cb() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/stack/rfcomm/ |
D | rfc_ts_frames.c | 47 UINT8 *p_data; in rfc_send_sabme() local 55 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_sabme() 58 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_sabme() 59 *p_data++ = RFCOMM_SABME | RFCOMM_PF; in rfc_send_sabme() 60 *p_data++ = RFCOMM_EA | 0; in rfc_send_sabme() 62 *p_data = RFCOMM_SABME_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme() 80 UINT8 *p_data; in rfc_send_ua() local 88 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_ua() 91 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_ua() 92 *p_data++ = RFCOMM_UA | RFCOMM_PF; in rfc_send_ua() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/stack/avdt/ |
D | avdt_ccb_act.c | 87 void avdt_ccb_chan_open(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_chan_open() argument 89 UNUSED(p_data); in avdt_ccb_chan_open() 106 void avdt_ccb_chan_close(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_chan_close() argument 108 UNUSED(p_data); in avdt_ccb_chan_close() 125 void avdt_ccb_chk_close(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_chk_close() argument 129 UNUSED(p_data); in avdt_ccb_chk_close() 157 void avdt_ccb_hdl_discover_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_hdl_discover_cmd() argument 163 p_data->msg.discover_rsp.p_sep_info = sep_info; in avdt_ccb_hdl_discover_cmd() 164 p_data->msg.discover_rsp.num_seps = 0; in avdt_ccb_hdl_discover_cmd() 170 sep_info[p_data->msg.discover_rsp.num_seps].in_use = p_scb->in_use; in avdt_ccb_hdl_discover_cmd() [all …]
|
D | avdt_scb_act.c | 91 void avdt_scb_hdl_abort_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_abort_cmd() argument 94 avdt_scb_event(p_scb, AVDT_SCB_API_ABORT_RSP_EVT, p_data); in avdt_scb_hdl_abort_cmd() 107 void avdt_scb_hdl_abort_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_abort_rsp() argument 110 UNUSED(p_data); in avdt_scb_hdl_abort_rsp() 124 void avdt_scb_hdl_close_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_close_cmd() argument 127 avdt_scb_event(p_scb, AVDT_SCB_API_CLOSE_RSP_EVT, p_data); in avdt_scb_hdl_close_cmd() 140 void avdt_scb_hdl_close_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_close_rsp() argument 142 p_scb->close_code = p_data->msg.hdr.err_code; in avdt_scb_hdl_close_rsp() 156 void avdt_scb_hdl_getconfig_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_getconfig_cmd() argument 158 p_data->msg.svccap.p_cfg = &p_scb->curr_cfg; in avdt_scb_hdl_getconfig_cmd() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/stack/avrc/ |
D | avrc_bld_tg.c | 45 UINT8 *p_data, *p_start, *p_len, *p_count; in avrc_bld_get_capability_rsp() local 61 p_data = p_len = p_start + 2; /* pdu + rsvd */ in avrc_bld_get_capability_rsp() 63 BE_STREAM_TO_UINT16(len, p_data); in avrc_bld_get_capability_rsp() 64 UINT8_TO_BE_STREAM(p_data, p_rsp->capability_id); in avrc_bld_get_capability_rsp() 65 p_count = p_data; in avrc_bld_get_capability_rsp() 69 p_data++; in avrc_bld_get_capability_rsp() 72 p_data = p_start + p_pkt->len; in avrc_bld_get_capability_rsp() 79 UINT24_TO_BE_STREAM(p_data, p_company_id[xx]); in avrc_bld_get_capability_rsp() 88 UINT8_TO_BE_STREAM(p_data, p_event_id[xx]); in avrc_bld_get_capability_rsp() 94 p_pkt->len = (p_data - p_start); in avrc_bld_get_capability_rsp() [all …]
|
D | avrc_bld_ct.c | 45 UINT8 *p_data, *p_start; in avrc_bld_next_cmd() local 51 p_data = p_start + 2; /* pdu + rsvd */ in avrc_bld_next_cmd() 54 UINT16_TO_BE_STREAM(p_data, 1); in avrc_bld_next_cmd() 55 UINT8_TO_BE_STREAM(p_data, p_cmd->target_pdu); in avrc_bld_next_cmd() 56 p_pkt->len = (p_data - p_start); in avrc_bld_next_cmd() 78 UINT8 *p_data, *p_start; in avrc_bld_set_abs_volume_cmd() local 83 p_data = p_start + 2; /* pdu + rsvd */ in avrc_bld_set_abs_volume_cmd() 85 UINT16_TO_BE_STREAM(p_data, 1); in avrc_bld_set_abs_volume_cmd() 86 UINT8_TO_BE_STREAM(p_data, (AVRC_MAX_VOLUME & p_cmd->volume)); in avrc_bld_set_abs_volume_cmd() 87 p_pkt->len = (p_data - p_start); in avrc_bld_set_abs_volume_cmd() [all …]
|
D | avrc_api.c | 129 UINT8 *p_data = avrc_get_data_ptr(p_pkt); in avrc_copy_packet() local 131 memcpy(p_data_copy, p_data, p_pkt->len); in avrc_copy_packet() 151 UINT8 *p_data, *p_orig_data; in avrc_prep_end_frag() local 166 p_data = (UINT8 *)(p_pkt_new + 1) + p_pkt_new->offset; in avrc_prep_end_frag() 167 *p_data++ = rsp_type; in avrc_prep_end_frag() 168 *p_data++ = (AVRC_SUB_PANEL << AVRC_SUBTYPE_SHIFT); in avrc_prep_end_frag() 169 *p_data++ = AVRC_OP_VENDOR; in avrc_prep_end_frag() 170 AVRC_CO_ID_TO_BE_STREAM(p_data, AVRC_CO_METADATA); in avrc_prep_end_frag() 171 *p_data++ = p_fcb->frag_pdu; in avrc_prep_end_frag() 172 *p_data++ = AVRC_PKT_END; in avrc_prep_end_frag() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/dm/ |
D | bta_dm_act.c | 71 static void bta_dm_bl_change_cback (tBTM_BL_EVENT_DATA *p_data); 78 static UINT8 bta_dm_sp_cback (tBTM_SP_EVT event, tBTM_SP_EVT_DATA *p_data); 107 static UINT8 bta_dm_ble_smp_cback (tBTM_LE_EVT event, BD_ADDR bda, tBTM_LE_EVT_DATA *p_data); 115 static void bta_dm_gattc_callback(tBTA_GATTC_EVT event, tBTA_GATTC *p_data); 263 void bta_dm_enable(tBTA_DM_MSG *p_data) in bta_dm_enable() argument 273 if (p_data->enable.p_sec_cback != NULL) { in bta_dm_enable() 274 p_data->enable.p_sec_cback(BTA_DM_ENABLE_EVT, (tBTA_DM_SEC *)&enable_event); in bta_dm_enable() 284 if ( p_data->enable.p_sec_cback != NULL ) { in bta_dm_enable() 285 bta_dm_cb.p_sec_cback = p_data->enable.p_sec_cback; in bta_dm_enable() 556 void bta_dm_disable (tBTA_DM_MSG *p_data) in bta_dm_disable() argument [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/stack/avdt/include/ |
D | avdt_int.h | 449 typedef void (*tAVDT_CCB_ACTION)(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data); 457 UINT8 *p_data; member 513 typedef void (*tAVDT_SCB_ACTION)(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data); 562 extern void avdt_ccb_event(tAVDT_CCB *p_ccb, UINT8 event, tAVDT_CCB_EVT *p_data); 565 extern void avdt_ccb_dealloc(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data); 570 extern void avdt_ccb_chan_open(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data); 571 extern void avdt_ccb_chan_close(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data); 572 extern void avdt_ccb_chk_close(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data); 573 extern void avdt_ccb_hdl_discover_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data); 574 extern void avdt_ccb_hdl_discover_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data); [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/btc/profile/std/gap/ |
D | btc_gap_bt.c | 35 static void bte_search_devices_evt(tBTA_DM_SEARCH_EVT event, tBTA_DM_SEARCH *p_data); 36 static void bte_dm_search_services_evt(tBTA_DM_SEARCH_EVT event, tBTA_DM_SEARCH *p_data); 37 static void bte_dm_remote_service_record_evt(tBTA_DM_SEARCH_EVT event, tBTA_DM_SEARCH *p_data); 153 p_dest_data->p_data = (void *)osi_malloc(p_dest_data->len); in search_devices_copy_cb() 154 memset(p_dest_data->p_data, 0x00, p_dest_data->len); in search_devices_copy_cb() 155 memcpy(p_dest_data->p_data, p_src_data->p_data, p_dest_data->len); in search_devices_copy_cb() 160 if (p_src_data->p_data->inq_res.p_eir) { in search_devices_copy_cb() 161 … p_dest_data->p_data->inq_res.p_eir = (UINT8 *)(p_dest_data->p_data) + sizeof(tBTA_DM_SEARCH); in search_devices_copy_cb() 162 …memcpy(p_dest_data->p_data->inq_res.p_eir, p_src_data->p_data->inq_res.p_eir, HCI_EXT_INQ_RESPONSE… in search_devices_copy_cb() 168 … if (p_src_data->p_data->disc_res.raw_data_size && p_src_data->p_data->disc_res.p_raw_data) { in search_devices_copy_cb() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/stack/smp/include/ |
D | smp_int.h | 229 UINT8 *p_data; member 233 UINT8 *p_data; /* UINT8 type data pointer */ member 344 typedef void (*tSMP_ACT)(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 367 extern void smp_sm_event(tSMP_CB *p_cb, tSMP_EVENT event, void *p_data); 369 extern void smp_proc_sec_request(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 390 extern void smp_sm_event(tSMP_CB *p_cb, tSMP_EVENT event, void *p_data); 395 extern void smp_br_state_machine_event(tSMP_CB *p_cb, tSMP_BR_EVENT event, void *p_data); 401 extern void smp_send_pair_req(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 402 extern void smp_send_confirm(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 403 extern void smp_send_pair_fail(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/av/include/ |
D | bta_av_int.h | 213 UINT8 *p_data; member 220 UINT8 *p_data; member 494 typedef void (*tBTA_AV_SACT)(tBTA_AV_SCB *p_scb, tBTA_AV_DATA *p_data); 584 extern void bta_av_conn_cback(UINT8 handle, BD_ADDR bd_addr, UINT8 event, tAVDT_CTRL *p_data); 600 extern void bta_av_api_deregister(tBTA_AV_DATA *p_data); 602 extern void bta_av_sm_execute(tBTA_AV_CB *p_cb, UINT16 event, tBTA_AV_DATA *p_data); 603 extern void bta_av_ssm_execute(tBTA_AV_SCB *p_scb, UINT16 event, tBTA_AV_DATA *p_data); 610 extern void bta_av_api_disconnect(tBTA_AV_DATA *p_data); 611 extern void bta_av_sig_chg(tBTA_AV_DATA *p_data); 612 extern void bta_av_sig_timer(tBTA_AV_DATA *p_data); [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/btc/profile/std/gatt/ |
D | btc_gatts.c | 522 p_dest_data->req_data.p_data = osi_malloc(sizeof(tBTA_GATTS_REQ_DATA)); in btc_gatts_cb_param_copy_req() 523 if (p_dest_data->req_data.p_data != NULL) { in btc_gatts_cb_param_copy_req() 524 memcpy(p_dest_data->req_data.p_data, p_src_data->req_data.p_data, in btc_gatts_cb_param_copy_req() 536 static void btc_gatts_cb_param_copy_free(btc_msg_t *msg, tBTA_GATTS *p_data) in btc_gatts_cb_param_copy_free() argument 545 if (p_data && p_data->req_data.p_data) { in btc_gatts_cb_param_copy_free() 546 osi_free(p_data->req_data.p_data); in btc_gatts_cb_param_copy_free() 557 static void btc_gatts_inter_cb(tBTA_GATTS_EVT event, tBTA_GATTS *p_data) in btc_gatts_inter_cb() argument 570 bta_to_btc_uuid(&btc_creat_tab_env.svc_uuid, &p_data->create.uuid); in btc_gatts_inter_cb() 572 btc_creat_tab_env.svc_start_hdl = p_data->create.service_id; in btc_gatts_inter_cb() 573 btc_creat_tab_env.handles[index] = p_data->create.service_id; in btc_gatts_inter_cb() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/dm/include/ |
D | bta_dm_int.h | 737 tBTA_BLE_ADV_DATA *p_data; member 1507 extern void bta_dm_enable (tBTA_DM_MSG *p_data); 1508 extern void bta_dm_disable (tBTA_DM_MSG *p_data); 1509 extern void bta_dm_set_dev_name (tBTA_DM_MSG *p_data); 1511 extern void bta_dm_config_eir (tBTA_DM_MSG *p_data); 1513 extern void bta_dm_set_afh_channels (tBTA_DM_MSG *p_data); 1514 extern void bta_dm_read_rmt_name(tBTA_DM_MSG *p_data); 1515 extern void bta_dm_ble_set_channels (tBTA_DM_MSG *p_data); 1516 extern void bta_dm_update_white_list(tBTA_DM_MSG *p_data); 1517 extern void bta_dm_clear_white_list(tBTA_DM_MSG *p_data); [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/btc/profile/std/battery/ |
D | battery_prf.c | 61 static void bas_gatts_callback(esp_gatts_evt_t event, tBTA_GATTS *p_data) in bas_gatts_callback() argument 65 esp_gatt_status_t status = p_data->reg_oper.status; in bas_gatts_callback() 66 server_if = p_data->reg_oper.server_if; in bas_gatts_callback() 81 BT_BD_ADDR_HEX(p_data->conn.remote_bda), p_data->conn.server_if, in bas_gatts_callback() 82 p_data->conn.reason, p_data->conn.conn_id); in bas_gatts_callback() 84 int is_connected = BTA_DmGetConnectionState(p_data->conn.remote_bda); in bas_gatts_callback() 92 p_data->create.server_if, p_data->create.service_id, in bas_gatts_callback() 93 p_data->create.uuid.uu.uuid16); in bas_gatts_callback() 94 UINT16 service_uuid = p_data->create.uuid.uu.uuid16; in bas_gatts_callback() 95 UINT16 service_id = p_data->create.service_id; in bas_gatts_callback() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/stack/avct/ |
D | avct_lcb_act.c | 177 void avct_lcb_chnl_open(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data) in avct_lcb_chnl_open() argument 180 UNUSED(p_data); in avct_lcb_chnl_open() 201 void avct_lcb_unbind_disc(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data) in avct_lcb_unbind_disc() argument 205 avct_ccb_dealloc(p_data->p_ccb, AVCT_DISCONNECT_CFM_EVT, 0, NULL); in avct_lcb_unbind_disc() 221 void avct_lcb_open_ind(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data) in avct_lcb_open_ind() argument 252 avct_lcb_event(p_lcb, AVCT_LCB_INT_CLOSE_EVT, p_data); in avct_lcb_open_ind() 267 void avct_lcb_open_fail(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data) in avct_lcb_open_fail() argument 275 p_data->result, p_lcb->peer_addr); in avct_lcb_open_fail() 291 void avct_lcb_close_ind(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data) in avct_lcb_close_ind() argument 295 UNUSED(p_data); in avct_lcb_close_ind() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/stack/avct/include/ |
D | avct_int.h | 145 extern void avct_lcb_event(tAVCT_LCB *p_lcb, UINT8 event, tAVCT_LCB_EVT *p_data); 147 extern void avct_bcb_event(tAVCT_BCB *p_bcb, UINT8 event, tAVCT_LCB_EVT *p_data); 148 extern void avct_close_bcb(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data); 156 extern void avct_lcb_dealloc(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data); 162 extern void avct_lcb_chnl_open(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data); 163 extern void avct_lcb_unbind_disc(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data); 164 extern void avct_lcb_open_ind(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data); 165 extern void avct_lcb_open_fail(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data); 166 extern void avct_lcb_close_ind(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data); 167 extern void avct_lcb_close_cfm(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data); [all …]
|
/hal_espressif-3.5.0/examples/bluetooth/bluedroid/ble/gattc_multi_connect/main/ |
D | gattc_multi_connect.c | 140 esp_ble_gattc_cb_param_t *p_data = (esp_ble_gattc_cb_param_t *)param; in gattc_profile_a_event_handler() local 155 if (p_data->open.status != ESP_GATT_OK){ in gattc_profile_a_event_handler() 157 ESP_LOGE(GATTC_TAG, "connect device failed, status %d", p_data->open.status); in gattc_profile_a_event_handler() 162 memcpy(gl_profile_tab[PROFILE_A_APP_ID].remote_bda, p_data->open.remote_bda, 6); in gattc_profile_a_event_handler() 163 gl_profile_tab[PROFILE_A_APP_ID].conn_id = p_data->open.conn_id; in gattc_profile_a_event_handler() 164 …PEN_EVT conn_id %d, if %d, status %d, mtu %d", p_data->open.conn_id, gattc_if, p_data->open.status… in gattc_profile_a_event_handler() 166 esp_log_buffer_hex(GATTC_TAG, p_data->open.remote_bda, sizeof(esp_bd_addr_t)); in gattc_profile_a_event_handler() 167 esp_err_t mtu_ret = esp_ble_gattc_send_mtu_req (gattc_if, p_data->open.conn_id); in gattc_profile_a_event_handler() 180 …TTC_TAG, "SEARCH RES: conn_id = %x is primary service %d", p_data->search_res.conn_id, p_data->sea… in gattc_profile_a_event_handler() 181 … end handle %d current handle value %d", p_data->search_res.start_handle, p_data->search_res.end_h… in gattc_profile_a_event_handler() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/hf_ag/ |
D | bta_ag_act.c | 91 static void bta_ag_cback_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data, tBTA_AG_STATUS status) in bta_ag_cback_open() argument 99 if (p_data) { in bta_ag_cback_open() 101 bdcpy(open.bd_addr, p_data->api_open.bd_addr); in bta_ag_cback_open() 119 void bta_ag_register(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_register() argument 123 p_scb->reg_services = p_data->api_register.services; in bta_ag_register() 124 p_scb->serv_sec_mask = p_data->api_register.sec_mask; in bta_ag_register() 125 p_scb->features = p_data->api_register.features; in bta_ag_register() 126 p_scb->app_id = p_data->api_register.app_id; in bta_ag_register() 128 bta_ag_create_records(p_scb, p_data); in bta_ag_register() 149 void bta_ag_deregister(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_deregister() argument [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/btc/profile/esp/ble_button/ |
D | button_pro.c | 46 static void button_profile_cb(esp_gatts_evt_t event, esp_gatts_t *p_data); 58 static void button_profile_cb(esp_gatts_evt_t event, esp_gatts_t *p_data) in button_profile_cb() argument 75 BTC_TRACE_ERROR("p_data->reg_oper.status = %x\n", p_data->reg_oper.status); in button_profile_cb() 76 BTC_TRACE_ERROR("(p_data->reg_oper.uuid.uu.uuid16=%x\n", p_data->reg_oper.uuid.uu.uuid16); in button_profile_cb() 77 if (p_data->reg_oper.status != BTA_GATT_OK) { in button_profile_cb() 80 button_cb_env.gatt_if = p_data->reg_oper.server_if; in button_profile_cb() 84 if (p_data->reg_oper.uuid.uu.uuid16 == ATT_SVC_BUTTON) { in button_profile_cb() 91 rsp.attr_value.handle = p_data->req_data.p_data->read_req.handle; in button_profile_cb() 93 esp_ble_gatts_send_rsp(p_data->req_data.conn_id, p_data->req_data.trans_id, in button_profile_cb() 94 p_data->req_data.status, &rsp); in button_profile_cb() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/hf_client/ |
D | bta_hf_client_act.c | 57 void bta_hf_client_register(tBTA_HF_CLIENT_DATA *p_data) in bta_hf_client_register() argument 67 bta_hf_client_cb.scb.serv_sec_mask = p_data->api_register.sec_mask; in bta_hf_client_register() 68 bta_hf_client_cb.scb.features = p_data->api_register.features; in bta_hf_client_register() 74 bta_hf_client_create_record(p_data); in bta_hf_client_register() 101 void bta_hf_client_deregister(tBTA_HF_CLIENT_DATA *p_data) in bta_hf_client_deregister() argument 112 bta_hf_client_del_record(p_data); in bta_hf_client_deregister() 131 void bta_hf_client_start_dereg(tBTA_HF_CLIENT_DATA *p_data) in bta_hf_client_start_dereg() argument 136 bta_hf_client_del_record(p_data); in bta_hf_client_start_dereg() 149 void bta_hf_client_start_close(tBTA_HF_CLIENT_DATA *p_data) in bta_hf_client_start_close() argument 161 bta_hf_client_rfc_do_close(p_data); in bta_hf_client_start_close() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/gatt/ |
D | bta_gattc_act.c | 60 tGATT_CL_COMPLETE *p_data); 63 tGATT_CL_COMPLETE *p_data); 69 …d bta_gattc_req_cback (UINT16 conn_id, UINT32 trans_id, tGATTS_REQ_TYPE type, tGATTS_DATA *p_data); 188 void bta_gattc_register(tBTA_GATTC_CB *p_cb, tBTA_GATTC_DATA *p_data) in bta_gattc_register() argument 192 tBT_UUID *p_app_uuid = &p_data->api_reg.app_uuid; in bta_gattc_register() 213 p_cb->cl_rcb[i].p_cback = p_data->api_reg.p_cback; in bta_gattc_register() 237 if (p_data->api_reg.p_cback) { in bta_gattc_register() 242 (*p_data->api_reg.p_cback)(BTA_GATTC_REG_EVT, (tBTA_GATTC *)&cb_data); in bta_gattc_register() 427 void bta_gattc_cancel_open_error(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_cancel_open_error() argument 430 UNUSED(p_data); in bta_gattc_cancel_open_error() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/av/ |
D | bta_av_aact.c | 65 static void bta_av_st_rc_timer(tBTA_AV_SCB *p_scb, tBTA_AV_DATA *p_data); 187 static void bta_av_stream0_cback(UINT8 handle, BD_ADDR bd_addr, UINT8 event, tAVDT_CTRL *p_data); 188 static void bta_av_stream1_cback(UINT8 handle, BD_ADDR bd_addr, UINT8 event, tAVDT_CTRL *p_data); 190 static void bta_av_stream2_cback(UINT8 handle, BD_ADDR bd_addr, UINT8 event, tAVDT_CTRL *p_data); 193 static void bta_av_stream3_cback(UINT8 handle, BD_ADDR bd_addr, UINT8 event, tAVDT_CTRL *p_data); 196 static void bta_av_stream4_cback(UINT8 handle, BD_ADDR bd_addr, UINT8 event, tAVDT_CTRL *p_data); 199 static void bta_av_stream5_cback(UINT8 handle, BD_ADDR bd_addr, UINT8 event, tAVDT_CTRL *p_data); 320 static void bta_av_st_rc_timer(tBTA_AV_SCB *p_scb, tBTA_AV_DATA *p_data) in bta_av_st_rc_timer() argument 322 UNUSED(p_data); in bta_av_st_rc_timer() 349 static BOOLEAN bta_av_next_getcap(tBTA_AV_SCB *p_scb, tBTA_AV_DATA *p_data) in bta_av_next_getcap() argument [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/btc/profile/std/hid/ |
D | btc_hd.c | 101 uint8_t *src_data = p_src_data->set_report.p_data; in bte_hd_arg_deep_copy() 103 p_dst_data->set_report.p_data = osi_malloc(p_src_data->set_report.len); in bte_hd_arg_deep_copy() 104 if (p_dst_data->set_report.p_data == NULL) { in bte_hd_arg_deep_copy() 108 memcpy(p_dst_data->set_report.p_data, src_data, p_src_data->set_report.len); in bte_hd_arg_deep_copy() 113 uint8_t *src_data = p_src_data->intr_data.p_data; in bte_hd_arg_deep_copy() 115 p_dst_data->intr_data.p_data = osi_malloc(p_src_data->intr_data.len); in bte_hd_arg_deep_copy() 116 if (p_dst_data->intr_data.p_data == NULL) { in bte_hd_arg_deep_copy() 120 memcpy(p_dst_data->intr_data.p_data, src_data, p_src_data->intr_data.len); in bte_hd_arg_deep_copy() 153 static void bte_hd_evt(tBTA_HD_EVT event, tBTA_HD *p_data) in bte_hd_evt() argument 181 param_len += sizeof(p_data->set_protocol); in bte_hd_evt() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/btc/profile/esp/wechat_AirSync/ |
D | wx_airsync_prf.c | 41 static void airsync_profile_cb(esp_gatts_evt_t event, esp_gatts_t *p_data); 53 static void airsync_profile_cb(esp_gatts_evt_t event, esp_gatts_t *p_data) in airsync_profile_cb() argument 64 if (p_data->reg_oper.status != BTA_GATT_OK) { in airsync_profile_cb() 67 airsync_cb_env.gatt_if = p_data->reg_oper.server_if; in airsync_profile_cb() 70 if (p_data->reg_oper.uuid.uu.uuid16 == ATT_SVC_AIRSYNC) { in airsync_profile_cb() 79 rsp.attr_value.handle = p_data->req_data.p_data->read_req.handle; in airsync_profile_cb() 81 esp_ble_gatts_send_rsp(p_data->req_data.conn_id, p_data->req_data.trans_id, in airsync_profile_cb() 82 p_data->req_data.status, &rsp); in airsync_profile_cb() 87 esp_ble_gatts_send_rsp(p_data->req_data.conn_id, p_data->req_data.trans_id, in airsync_profile_cb() 88 p_data->req_data.status, NULL); in airsync_profile_cb() [all …]
|