Lines Matching refs:gatt_if
132 ** Parameter gatt_if : application if
141 UINT16 GATTS_CreateService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid,
150 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
158 GATT_TRACE_ERROR ("Inavlid gatt_if=%d", gatt_if);
387 ** Parameter gatt_if : application interface
394 BOOLEAN GATTS_DeleteService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid, UINT16 svc_inst)
401 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
457 ** Parameter gatt_if : service handle.
464 tGATT_STATUS GATTS_StartService (tGATT_IF gatt_if, UINT16 service_handle,
471 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
507 p_sreg->gatt_if = gatt_if;
603 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
605 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
674 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
676 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
723 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
725 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
745 cmd_sent = gatt_sr_process_app_rsp (p_tcb, gatt_if, trans_id, p_tcb->sr_cmd.op_code, status, p_msg);
776 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id);
779 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
831 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id);
834 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
900 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id);
903 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
988 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id);
991 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
1062 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id);
1065 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
1199 tGATT_IF gatt_if=0;
1220 gatt_if =
1221 p_reg->gatt_if = (tGATT_IF)i_gatt_if;
1228 GATT_TRACE_API ("allocated gatt_if=%d", gatt_if);
1229 return gatt_if;
1239 ** Parameters gatt_if: applicaiton interface.
1244 void GATT_Deregister (tGATT_IF gatt_if)
1246 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
1252 GATT_TRACE_API ("GATT_Deregister gatt_if=%d", gatt_if);
1254 if ( (gatt_if == 0) || (p_reg == NULL) )
1256 GATT_TRACE_ERROR ("GATT_Deregister with invalid gatt_if: %u", gatt_if);
1267 if (p_sreg->in_use && (p_sreg->gatt_if == gatt_if))
1284 gatt_update_app_use_link_flag(gatt_if, p_tcb, FALSE, FALSE);
1295 (p_clcb->p_reg->gatt_if == gatt_if) &&
1306 gatt_deregister_bgdev_list(gatt_if);
1309 GATT_Listen(gatt_if, FALSE, NULL);
1324 ** Parameter gatt_if: applicaiton interface.
1329 void GATT_StartIf (tGATT_IF gatt_if)
1338 GATT_TRACE_API ("GATT_StartIf gatt_if=%d", gatt_if);
1339 if ((p_reg = gatt_get_regcb(gatt_if)) != NULL)
1341 p_reg = &gatt_cb.cl_rcb[gatt_if - 1];
1348 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_if);
1349 (*p_reg->app_cb.p_conn_cb)(gatt_if, bda, conn_id, TRUE, 0, transport);
1364 ** Parameters gatt_if: applicaiton interface
1371 BOOLEAN GATT_Connect (tGATT_IF gatt_if, BD_ADDR bd_addr, BOOLEAN is_direct, tBT_TRANSPORT transport)
1376 GATT_TRACE_API ("GATT_Connect gatt_if=%d", gatt_if);
1379 if ((p_reg = gatt_get_regcb(gatt_if)) == NULL)
1381 GATT_TRACE_ERROR("GATT_Connect - gatt_if =%d is not registered", gatt_if);
1390 status = gatt_update_auto_connect_dev(gatt_if,TRUE, bd_addr, TRUE);
1408 ** Parameters gatt_if: client interface. If 0 used as unconditionally disconnect,
1415 BOOLEAN GATT_CancelConnect (tGATT_IF gatt_if, BD_ADDR bd_addr, BOOLEAN is_direct){
1422 GATT_TRACE_API ("GATT_CancelConnect gatt_if=%d", gatt_if);
1424 if ((gatt_if != 0) && ((p_reg = gatt_get_regcb(gatt_if)) == NULL))
1426 GATT_TRACE_ERROR("GATT_CancelConnect - gatt_if =%d is not registered", gatt_if);
1432 if (!gatt_if)
1454 status = gatt_cancel_open(gatt_if, bd_addr);
1459 if (!gatt_if)
1474 status = gatt_remove_bg_dev_for_app(gatt_if, bd_addr);
1497 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id);
1506 gatt_update_app_use_link_flag(gatt_if, p_tcb, FALSE, FALSE);
1535 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
1536 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
1546 *p_gatt_if = gatt_if;
1561 ** Parameters gatt_if: applicaiton interface (input)
1569 BOOLEAN GATT_GetConnIdIfConnected(tGATT_IF gatt_if, BD_ADDR bd_addr, UINT16 *p_conn_id,
1572 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
1578 *p_conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_if);
1594 ** Parameters gatt_if: applicaiton interface
1602 BOOLEAN GATT_Listen (tGATT_IF gatt_if, BOOLEAN start, BD_ADDR_PTR bd_addr)
1607 GATT_TRACE_API ("GATT_Listen gatt_if=%d", gatt_if);
1610 if ((p_reg = gatt_get_regcb(gatt_if)) == NULL)
1612 GATT_TRACE_ERROR("GATT_Listen - gatt_if =%d is not registered", gatt_if);
1618 status = gatt_update_auto_connect_dev(gatt_if,start, bd_addr, FALSE);