Home | History | Annotate | Download | only in srvc

Lines Matching full:conn_id

32 static void srvc_eng_s_request_cback (UINT16 conn_id, UINT32 trans_id, UINT8 op_code, tGATTS_DATA *p_data);
33 static void srvc_eng_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason);
34 static void srvc_eng_c_cmpl_cback (UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, tGATT_CL_COMPLETE *p_data);
74 return p_clcb->conn_id;
114 tSRVC_CLCB *srvc_eng_find_clcb_by_conn_id(UINT16 conn_id)
121 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id)
138 UINT8 srvc_eng_find_clcb_idx_by_conn_id(UINT16 conn_id)
145 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id)
162 tSRVC_CLCB *srvc_eng_clcb_alloc (UINT16 conn_id, BD_ADDR bda)
172 p_clcb->conn_id = conn_id;
189 BOOLEAN srvc_eng_clcb_dealloc (UINT16 conn_id)
196 if (p_clcb->in_use && p_clcb->connected && (p_clcb->conn_id == conn_id))
257 static void srvc_eng_s_request_cback (UINT16 conn_id, UINT32 trans_id, tGATTS_REQ_TYPE type,
263 UINT8 clcb_idx = srvc_eng_find_clcb_idx_by_conn_id(conn_id);
299 GATTS_SendRsp (conn_id, trans_id, status, &rsp_msg);
314 static void srvc_eng_c_cmpl_cback (UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status,
317 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id);
342 static void srvc_eng_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id,
345 GATT_TRACE_EVENT5 ("srvc_eng_connect_cback: from %08x%04x connected:%d conn_id=%d reason = 0x%04x",
347 (bda[4]<<8)+bda[5], connected, conn_id, reason);
351 if (srvc_eng_clcb_alloc(conn_id, bda) == NULL)
359 srvc_eng_clcb_dealloc(conn_id);
396 void srvc_eng_release_channel (UINT16 conn_id)
398 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id);
404 GATT_Disconnect(p_clcb->conn_id);
443 GATTS_SendRsp(srvc_eng_cb.clcb[clcb_idx].conn_id,
453 UINT16 conn_id = srvc_eng_find_conn_id_by_bd_addr(remote_bda);
455 if (conn_id != GATT_INVALID_CONN_ID)
457 GATTS_HandleValueNotification( conn_id, handle, len, p_value);