Lines Matching refs:conn_id
57 static void gap_ble_s_attr_request_cback (UINT16 conn_id, UINT32 trans_id, tGATTS_REQ_TYPE op_code, tGATTS_DATA *p_data);
60 static void gap_ble_c_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected,
62 static void gap_ble_c_cmpl_cback (UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, tGATT_CL_COMPLETE *p_data);
111 tGAP_CLCB *gap_ble_find_clcb_by_conn_id(UINT16 conn_id)
118 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id)
136 tGAP_CLCB *gap_clcb_alloc (UINT16 conn_id, BD_ADDR bda)
146 p_clcb->conn_id = conn_id;
164 tGAP_CLCB *gap_find_alloc_clcb (UINT16 conn_id, BD_ADDR bda)
174 p_clcb->conn_id = conn_id;
209 return(p_clcb->conn_id);
329 void gap_ble_s_attr_request_cback (UINT16 conn_id, UINT32 trans_id,
369 GATTS_SendRsp (conn_id, trans_id, status, &rsp_msg);
528 static void gap_ble_c_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id,
538 GAP_TRACE_EVENT ("gap_ble_c_connect_cback: from %08x%04x connected:%d conn_id=%d reason = 0x%04x",
540 (bda[4]<<8)+bda[5], connected, conn_id, reason);
547 if ((p_clcb = gap_clcb_alloc(conn_id, bda))== NULL)
553 p_clcb->conn_id = conn_id;
600 static void gap_ble_c_cmpl_cback (UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, tGATT_CL_COMPLETE *p_data)
603 tGAP_CLCB *p_clcb = gap_ble_find_clcb_by_conn_id(conn_id);
676 if (GATTC_Read(p_clcb->conn_id, GATT_READ_BY_TYPE, ¶m) != GATT_SUCCESS)
680 GATT_Disconnect(p_clcb->conn_id);