Home | History | Annotate | Download | only in gatt

Lines Matching full:handle

46 UINT32 gatt_sr_enqueue_cmd (tGATT_TCB *p_tcb, UINT8 op_code, UINT16 handle)
65 p_cmd->handle = handle;
196 if (p_rsp->attr_value.handle == p_cmd->multi_req.handles[ii])
242 else /* any handle read exception occurs, return error */
310 ret_code = gatt_send_error_rsp (p_tcb, status, op_code, p_tcb->sr_cmd.handle, FALSE);
346 gatt_send_error_rsp (p_tcb, gatt_cb.err_status, gatt_cb.req_op_code, gatt_cb.handle, FALSE);
398 UINT16 handle = 0, ll = len;
417 STREAM_TO_UINT16(handle, p);
419 gatt_send_error_rsp (p_tcb, gatt_cb.err_status, gatt_cb.req_op_code, handle, FALSE);
427 STREAM_TO_UINT16(handle, p);
429 if ((i_rcb = gatt_sr_find_i_rcb_by_handle(handle)) < GATT_MAX_SR_PROFILES)
431 p_tcb->sr_cmd.multi_req.handles[p_tcb->sr_cmd.multi_req.num_handles++] = handle;
436 handle,
447 /* invalid handle */
456 GATT_TRACE_ERROR("max attribute handle reached in ReadMultiple Request.");
474 handle = p_tcb->sr_cmd.multi_req.handles[ll];
475 i_rcb = gatt_sr_find_i_rcb_by_handle(handle);
477 p_msg->attr_value.handle = handle;
481 handle,
511 gatt_send_error_rsp(p_tcb, err, op_code, handle, FALSE);
636 if (p_attr->handle > e_hdl)
641 if (p_attr->handle >= s_hdl)
650 UINT16_TO_STREAM(p, p_attr->handle);
655 UINT16_TO_STREAM(p, p_attr->handle);
660 UINT16_TO_STREAM(p, p_attr->handle);
709 /* obtain starting handle, and ending handle */
1092 void gatts_process_write_req (tGATT_TCB *p_tcb, UINT8 i_rcb, UINT16 handle,
1122 sr_data.write_req.handle = handle;
1138 handle,
1147 if ((trans_id = gatt_sr_enqueue_cmd(p_tcb, op_code, handle)) != 0)
1169 gatt_send_error_rsp (p_tcb, status, op_code, handle, FALSE);
1185 UINT16 handle, UINT16 len, UINT8 *p_data)
1219 handle,
1237 gatt_send_error_rsp (p_tcb, reason, op_code, handle, FALSE);
1248 ** Description This function is called to process the per attribute handle request
1257 UINT16 handle = 0;
1270 STREAM_TO_UINT16(handle, p);
1275 gatt_cb.handle = handle;
1280 gatt_send_error_rsp (p_tcb, gatt_cb.err_status, gatt_cb.req_op_code, handle, FALSE);
1286 if (GATT_HANDLE_IS_VALID(handle))
1290 if (p_rcb->in_use && p_rcb->s_hdl <= handle && p_rcb->e_hdl >= handle)
1296 if (p_attr->handle == handle)
1302 gatts_process_read_req(p_tcb, p_rcb, op_code, handle, len, p);
1309 gatts_process_write_req(p_tcb, i, handle, op_code, len, p);
1325 gatt_send_error_rsp (p_tcb, status, op_code, handle, FALSE);
1372 p_buf->handle,
1393 GATT_TRACE_DEBUG ("gatts_proc_ind_ack ack handle=%d", ack_handle);
1410 ** Description This function is called to process the handle value confirmation.
1417 UINT16 handle = p_tcb->indicate_handle;
1425 handle))
1428 continue_processing = gatts_proc_ind_ack(p_tcb, handle);
1434 if (p_rcb->in_use && p_rcb->s_hdl <= handle && p_rcb->e_hdl >= handle)
1436 trans_id = gatt_sr_enqueue_cmd(p_tcb, op_code, handle);
1439 trans_id, GATTS_REQ_TYPE_CONF, (tGATTS_DATA *)&handle);
1446 GATT_TRACE_ERROR("unexpected handle value confirmation");
1454 ** Description This function is called to handle the client requests to