Home | History | Annotate | Download | only in gatt

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_ERROR1 ("Inavlid gatt_if=%d", gatt_if);
386 ** Parameter gatt_if : application interface
393 BOOLEAN GATTS_DeleteService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid, UINT16 svc_inst)
400 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
456 ** Parameter gatt_if
463 tGATT_STATUS GATTS_StartService (tGATT_IF gatt_if, UINT16 service_handle,
470 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
506 p_sreg->gatt_if = gatt_if;
602 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
604 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
672 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
674 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
716 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
718 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
738 cmd_sent = gatt_sr_process_app_rsp (p_tcb, gatt_if, trans_id, p_tcb->sr_cmd.op_code, status, p_msg);
769 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id);
772 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
821 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id);
824 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
890 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id);
893 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
978 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id);
981 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
1052 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id);
1055 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
1189 tGATT_IF gatt_if=0;
1210 gatt_if =
1211 p_reg->gatt_if = (tGATT_IF)i_gatt_if;
1218 GATT_TRACE_API1 ("allocated gatt_if=%d", gatt_if);
1219 return gatt_if;
1229 ** Parameters gatt_if: applicaiton interface.
1234 void GATT_Deregister (tGATT_IF gatt_if)
1236 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
1242 GATT_TRACE_API1 ("GATT_Deregister gatt_if=%d", gatt_if);
1244 if ( (gatt_if == 0) || (p_reg == NULL) )
1246 GATT_TRACE_ERROR1 ("GATT_Deregister with invalid gatt_if: %u", gatt_if);
1257 if (p_sreg->in_use && (p_sreg->gatt_if == gatt_if))
1274 gatt_update_app_use_link_flag(gatt_if, p_tcb, FALSE, FALSE);
1285 (p_clcb->p_reg->gatt_if == gatt_if) &&
1295 gatt_deregister_bgdev_list(gatt_if);
1308 ** Parameter gatt_if: applicaiton interface.
1313 void GATT_StartIf (tGATT_IF gatt_if)
1321 GATT_TRACE_API1 ("GATT_StartIf gatt_if=%d", gatt_if);
1322 if ((p_reg = gatt_get_regcb(gatt_if)) != NULL)
1324 p_reg = &gatt_cb.cl_rcb[gatt_if - 1];
1331 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_if);
1332 (*p_reg->app_cb.p_conn_cb)(gatt_if, bda, conn_id, TRUE, 0);
1347 ** Parameters gatt_if: applicaiton interface
1354 BOOLEAN GATT_Connect (tGATT_IF gatt_if, BD_ADDR bd_addr, BOOLEAN is_direct){
1358 GATT_TRACE_API1 ("GATT_Connect gatt_if=%d", gatt_if);
1361 if ((p_reg = gatt_get_regcb(gatt_if)) == NULL)
1363 GATT_TRACE_ERROR1("GATT_Connect - gatt_if =%d is not registered", gatt_if);
1370 status = gatt_update_auto_connect_dev(gatt_if,TRUE, bd_addr, TRUE);
1383 ** Parameters gatt_if: client interface. If 0 used as unconditionally disconnect,
1390 BOOLEAN GATT_CancelConnect (tGATT_IF gatt_if, BD_ADDR bd_addr, BOOLEAN is_direct){
1397 GATT_TRACE_API1 ("GATT_CancelConnect gatt_if=%d", gatt_if);
1399 if ((gatt_ifgatt_if)) == NULL))
1401 GATT_TRACE_ERROR1("GATT_CancelConnect - gatt_if =%d is not registered", gatt_if);
1407 if (!gatt_if)
1428 status = gatt_cancel_open(gatt_if, bd_addr);
1433 if (!gatt_if)
1448 status = gatt_remove_bg_dev_for_app(gatt_if, bd_addr);
1471 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id);
1480 gatt_update_app_use_link_flag(gatt_if, p_tcb, FALSE, FALSE);
1508 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
1509 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
1519 *p_gatt_if = gatt_if;
1533 ** Parameters gatt_if: applicaiton interface (input)
1540 BOOLEAN GATT_GetConnIdIfConnected(tGATT_IF gatt_if, BD_ADDR bd_addr, UINT16 *p_conn_id)
1542 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
1548 *p_conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_if);
1564 ** Parameters gatt_if: applicaiton interface
1572 BOOLEAN GATT_Listen (tGATT_IF gatt_if, BOOLEAN start, BD_ADDR_PTR bd_addr)
1577 GATT_TRACE_API1 ("GATT_Listen gatt_if=%d", gatt_if);
1580 if ((p_reg = gatt_get_regcb(gatt_if)) == NULL)
1582 GATT_TRACE_ERROR1("GATT_Listen - gatt_if =%d is not registered", gatt_if);
1588 status = gatt_update_auto_connect_dev(gatt_if,start, bd_addr, FALSE);