Home
last modified time | relevance | path

Searched refs:gatt_if (Results 1 – 25 of 33) sorted by relevance

12

/hal_espressif-latest/components/bt/host/bluedroid/stack/gatt/
Dgatt_api.c157 UINT16 GATTS_CreateService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid, in GATTS_CreateService() argument
166 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in GATTS_CreateService()
173 GATT_TRACE_ERROR ("Inavlid gatt_if=%d\n", gatt_if); in GATTS_CreateService()
389 BOOLEAN GATTS_DeleteService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid, UINT16 svc_inst) in GATTS_DeleteService() argument
396 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in GATTS_DeleteService()
460 tGATT_STATUS GATTS_StartService (tGATT_IF gatt_if, UINT16 service_handle, in GATTS_StartService() argument
469 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in GATTS_StartService()
501 p_sreg->gatt_if = gatt_if; in GATTS_StartService()
599 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueIndication() local
601 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in GATTS_HandleValueIndication()
[all …]
Dgatt_utils.c1525 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in gatt_sr_send_req_callback() local
1526 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in gatt_sr_send_req_callback()
1673 tGATT_REG *gatt_get_regcb (tGATT_IF gatt_if) in gatt_get_regcb() argument
1675 UINT8 ii = (UINT8)gatt_if; in gatt_get_regcb()
1778 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in gatt_clcb_alloc() local
1781 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in gatt_clcb_alloc()
2023 void gatt_sr_update_cback_cnt(tGATT_TCB *p_tcb, tGATT_IF gatt_if, BOOLEAN is_inc, BOOLEAN is_reset_… in gatt_sr_update_cback_cnt() argument
2026 UINT8 idx = ((UINT8) gatt_if) - 1 ; in gatt_sr_update_cback_cnt()
2053 void gatt_sr_update_prep_cnt(tGATT_TCB *p_tcb, tGATT_IF gatt_if, BOOLEAN is_inc, BOOLEAN is_reset_f… in gatt_sr_update_prep_cnt() argument
2055 UINT8 idx = ((UINT8) gatt_if) - 1 ; in gatt_sr_update_prep_cnt()
[all …]
Dgatt_attr.c58 static void gatt_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected,
91 GATT_GetConnIdIfConnected (gatt_cb.gatt_if, remote_bda, &conn_id, BT_TRANSPORT_LE); in gatt_profile_find_conn_id_by_bd_addr()
395 static void gatt_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, in gatt_connect_cback() argument
399 UNUSED(gatt_if); in gatt_connect_cback()
414 if (GATT_GetConnIdIfConnected (gatt_cb.gatt_if, bda, &p_clcb->conn_id, transport)) { in gatt_connect_cback()
453 gatt_cb.gatt_if = GATT_Register(&app_uuid, &gatt_profile_cback); in gatt_profile_db_init()
454 GATT_StartIf(gatt_cb.gatt_if); in gatt_profile_db_init()
456 service_handle = GATTS_CreateService (gatt_cb.gatt_if , &uuid, 0, GATTP_MAX_ATTR_NUM, TRUE); in gatt_profile_db_init()
495 status = GATTS_StartService (gatt_cb.gatt_if, service_handle, GATTP_TRANSPORT_SUPPORTED ); in gatt_profile_db_init()
502 gatt_cb.gatt_if, status); in gatt_profile_db_init()
[all …]
Dgatt_main.c297 void gatt_update_app_hold_link_status (tGATT_IF gatt_if, tGATT_TCB *p_tcb, BOOLEAN is_add) in gatt_update_app_hold_link_status() argument
309 if (p_tcb->app_hold_link[i] == gatt_if) { in gatt_update_app_hold_link_status()
321 p_tcb->app_hold_link[i] = gatt_if; in gatt_update_app_hold_link_status()
328 …te_app_hold_link_status found=%d[1-found] idx=%d gatt_if=%d is_add=%d", found, i, gatt_if, is_add); in gatt_update_app_hold_link_status()
342 void gatt_update_app_use_link_flag (tGATT_IF gatt_if, tGATT_TCB *p_tcb, BOOLEAN is_add, BOOLEAN che… in gatt_update_app_use_link_flag() argument
347 gatt_update_app_hold_link_status(gatt_if, p_tcb, is_add); in gatt_update_app_use_link_flag()
426 GATT_TRACE_ERROR("Max TCB for gatt_if [%d] reached.", p_reg->gatt_if); in gatt_act_connect()
431 gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, TRUE, FALSE); in gatt_act_connect()
539 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_channel_congestion()
940 if (p_bg_dev && gatt_is_bg_dev_for_app(p_bg_dev, p_reg->gatt_if)) { in gatt_send_conn_cback()
[all …]
Dgatt_sr.c401 tGATT_STATUS gatt_sr_process_app_rsp (tGATT_TCB *p_tcb, tGATT_IF gatt_if, in gatt_sr_process_app_rsp() argument
408 GATT_TRACE_DEBUG("gatt_sr_process_app_rsp gatt_if=%d\n", gatt_if); in gatt_sr_process_app_rsp()
410 gatt_sr_update_cback_cnt(p_tcb, gatt_if, FALSE, FALSE); in gatt_sr_process_app_rsp()
423 gatt_sr_update_prep_cnt(p_tcb, gatt_if, TRUE, FALSE); in gatt_sr_process_app_rsp()
474 tGATT_IF gatt_if; in gatt_process_exec_write_req() local
565 gatt_if = (tGATT_IF) (i + 1); in gatt_process_exec_write_req()
566 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_if); in gatt_process_exec_write_req()
679 …gatt_sr_process_app_rsp(p_tcb, gatt_cb.sr_reg[i_rcb].gatt_if , trans_id, op_code, GATT_SUCCESS, p_… in gatt_process_read_multi_req()
1088 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_cb.cl_rcb[i].gatt_if); in gatts_process_mtu_req()
1270 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_sreg->gatt_if); in gatts_process_write_req()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/bta/gatt/
Dbta_gatts_act.c44 static void bta_gatts_conn_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id,
154 GATT_Deregister(p_cb->rcb[i].gatt_if); in bta_gatts_api_disable()
212 p_cb->rcb[first_unuse].gatt_if = in bta_gatts_register()
214 if ( !p_cb->rcb[first_unuse].gatt_if) { in bta_gatts_register()
220 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if; in bta_gatts_register()
280 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) { in bta_gatts_deregister()
285 GATT_Deregister(p_cb->rcb[i].gatt_if); in bta_gatts_deregister()
325 service_id = GATTS_CreateService (p_cb->rcb[rcb_idx].gatt_if, in bta_gatts_create_srvc()
343 cb_data.create.server_if = p_cb->rcb[rcb_idx].gatt_if; in bta_gatts_create_srvc()
379 cb_data.add_result.server_if = p_rcb->gatt_if; in bta_gatts_add_include_srvc()
[all …]
Dbta_gatts_utils.c93 if (p_reg->in_use && p_reg->gatt_if == server_if) { in bta_gatts_find_app_rcb_by_app_if()
115 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if) { in bta_gatts_find_app_rcb_idx_by_app_if()
Dbta_gattc_api.c1174 uint8_t BTA_GATTC_Discover(uint8_t gatt_if, uint16_t conn_id, void *uuid, uint8_t disc_type, uint16… in BTA_GATTC_Discover() argument
1180 conn_id = (UINT16)((((UINT8)conn_id) << 8) | gatt_if); in BTA_GATTC_Discover()
1213 uint8_t BTA_GATTC_ReadLongChar(uint8_t gatt_if, uint16_t conn_id, uint16_t handle, uint16_t offset,… in BTA_GATTC_ReadLongChar() argument
1218 conn_id = (UINT16)((((UINT8)conn_id) << 8) | gatt_if); in BTA_GATTC_ReadLongChar()
Dbta_gatts_api.c657 uint8_t BTA_GATTS_SendMultiNotification(uint8_t gatt_if, uint16_t conn_id, void *tuples, uint16_t n… in BTA_GATTS_SendMultiNotification() argument
660 conn_id = (UINT16)((((UINT8)conn_id) << 8) | gatt_if); in BTA_GATTS_SendMultiNotification()
Dbta_gattc_utils.c590 tBTA_GATTC_IF gatt_if; in bta_gattc_clear_notif_registration() local
596 if (GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda, &transport)) { in bta_gattc_clear_notif_registration()
597 if ((p_clrcb = bta_gattc_cl_get_regcb(gatt_if)) != NULL) { in bta_gattc_clear_notif_registration()
/hal_espressif-latest/components/bt/host/bluedroid/stack/include/stack/
Dgatt_api.h582 typedef void (tGATT_CONN_CBACK) (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected,
593 typedef void (tGATT_ENC_CMPL_CB)(tGATT_IF gatt_if, BD_ADDR bda);
748 extern UINT16 GATTS_CreateService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid,
827 extern BOOLEAN GATTS_DeleteService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid,
843 extern tGATT_STATUS GATTS_StartService (tGATT_IF gatt_if, UINT16 service_handle,
1105 extern void GATT_Deregister (tGATT_IF gatt_if);
1120 extern void GATT_StartIf (tGATT_IF gatt_if);
1138 extern BOOLEAN GATT_Connect (tGATT_IF gatt_if, BD_ADDR bd_addr, tBLE_ADDR_TYPE bd_addr_type,
1157 extern BOOLEAN GATT_CancelConnect (tGATT_IF gatt_if, BD_ADDR bd_addr,
1221 extern BOOLEAN GATT_GetConnIdIfConnected(tGATT_IF gatt_if, BD_ADDR bd_addr,
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/stack/gatt/include/
Dgatt_int.h32 #define GATT_CREATE_CONN_ID(tcb_idx, gatt_if) ((UINT16) ((((UINT8)(tcb_idx) ) << 8) | ((UINT8) (ga… argument
247 tGATT_IF gatt_if; /* this service is belong to which application */ member
262 tGATT_IF gatt_if; /* one based */ member
484 tGATT_IF gatt_if[GATT_MAX_APPS]; member
517 tGATT_IF gatt_if; member
600 extern void gatt_update_app_use_link_flag ( tGATT_IF gatt_if, tGATT_TCB *p_tcb, BOOLEAN is_add, BOO…
671 extern BOOLEAN gatt_update_auto_connect_dev (tGATT_IF gatt_if, BOOLEAN add, BD_ADDR bd_addr, BOOLEA…
672 extern BOOLEAN gatt_is_bg_dev_for_app(tGATT_BG_CONN_DEV *p_dev, tGATT_IF gatt_if);
673 extern BOOLEAN gatt_remove_bg_dev_for_app(tGATT_IF gatt_if, BD_ADDR bd_addr);
677 extern void gatt_deregister_bgdev_list(tGATT_IF gatt_if);
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/include/
Dbtc_gatt_util.h17 #define BTC_GATT_CREATE_CONN_ID(gatt_if, conn_id) ((uint16_t) ((((uint8_t)(conn_id)) << 8) | ((uin… argument
Ddis_api.h216 extern void DIS_Init (tBTA_GATTS_IF gatt_if, tDIS_ATTR_MASK dis_attr_mask);
274 extern void bas_init(tBTA_GATTS_IF gatt_if, UINT16 app_id);
/hal_espressif-latest/components/bt/host/bluedroid/stack/gap/
Dgap_ble.c48 static void gap_ble_c_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connec…
405 gap_cb.gatt_if = GATT_Register(&app_uuid, &gap_cback); in gap_attr_db_init()
407 GATT_StartIf(gap_cb.gatt_if); in gap_attr_db_init()
410 service_handle = GATTS_CreateService (gap_cb.gatt_if, &uuid, 0, GAP_MAX_ATTR_NUM, TRUE); in gap_attr_db_init()
470 status = GATTS_StartService(gap_cb.gatt_if, service_handle, GAP_TRANSPORT_SUPPORTED ); in gap_attr_db_init()
476 gap_cb.gatt_if, service_handle, status); in gap_attr_db_init()
604 static void gap_ble_c_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, in gap_ble_c_connect_cback() argument
610 UNUSED(gatt_if); in gap_ble_c_connect_cback()
726 if (GATT_GetConnIdIfConnected(gap_cb.gatt_if, peer_bda, &p_clcb->conn_id, BT_TRANSPORT_LE)) { in gap_ble_accept_cl_operation()
731 …if (!GATT_Connect(gap_cb.gatt_if, p_clcb->bda, BLE_ADDR_UNKNOWN_TYPE, TRUE, BT_TRANSPORT_LE, FALSE… in gap_ble_accept_cl_operation()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/esp/include/
Dwx_airsync_prf.h81 tGATT_IF gatt_if; member
Dbutton_pro.h89 esp_gatt_if_t gatt_if; member
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/esp/wechat_AirSync/
Dwx_airsync_prf.c59 airsync_cb_env.gatt_if = p_data->reg_oper.server_if; in airsync_profile_cb()
174 server_if = airsync_cb_env.gatt_if; in AirSync_CreateService()
/hal_espressif-latest/components/bt/host/bluedroid/bta/hh/
Dbta_hh_le.c212 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_enable()
242 bta_hh_cb.gatt_if = p_reg->client_if; in bta_hh_le_register_cmpl()
245 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_register_cmpl()
264 return (bta_hh_cb.gatt_if == client_if); in bta_hh_le_is_hh_gatt_if()
279 BTA_GATTC_AppDeregister(bta_hh_cb.gatt_if); in bta_hh_le_deregister()
337 BTA_GATTC_Enh_Open(bta_hh_cb.gatt_if, remote_bda, BLE_ADDR_UNKNOWN_TYPE, TRUE, in bta_hh_le_open_conn()
806 BTA_GATTC_RegisterForNotifications(bta_hh_cb.gatt_if, in bta_hh_le_register_input_notif()
815 BTA_GATTC_DeregisterForNotifications(bta_hh_cb.gatt_if, in bta_hh_le_register_input_notif()
823 BTA_GATTC_RegisterForNotifications(bta_hh_cb.gatt_if, in bta_hh_le_register_input_notif()
833 BTA_GATTC_DeregisterForNotifications(bta_hh_cb.gatt_if, in bta_hh_le_register_input_notif()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/dis/
Ddis_profile.c204 void DIS_Init (esp_gatts_if_t gatt_if, tDIS_ATTR_MASK dis_attr_mask) in DIS_Init() argument
216 esp_ble_gatts_create_srvc (gatt_if , &uuid, 0, DIS_MAX_ATTR_NUM, TRUE); in DIS_Init()
/hal_espressif-latest/components/bt/common/btc/profile/esp/blufi/bluedroid_host/
Desp_blufi.c95 …BTA_GATTS_CreateService(blufi_env.gatt_if, &blufi_srvc_uuid, blufi_env.srvc_inst, BLUFI_HDL_NUM, t… in blufi_create_service()
120 blufi_env.gatt_if = p_data->reg_oper.server_if; in blufi_profile_cb()
379 BTA_GATTS_AppDeregister(blufi_env.gatt_if); in esp_blufi_deinit()
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/esp/ble_button/
Dbutton_pro.c72 button_cb_env.gatt_if = p_data->reg_oper.server_if; in button_profile_cb()
196 server_if = button_cb_env.gatt_if; in Button_CreateService()
/hal_espressif-latest/components/bt/host/bluedroid/stack/gap/include/
Dgap_int.h141 tGATT_IF gatt_if; member
/hal_espressif-latest/components/bt/host/bluedroid/bta/gatt/include/
Dbta_gatts_int.h190 tBTA_GATTS_IF gatt_if; member
/hal_espressif-latest/components/bt/common/btc/profile/esp/blufi/include/
Dblufi_int.h27 tGATT_IF gatt_if; member

12