Lines Matching full:uint16
33 #define GATT_CREATE_CONN_ID(tcb_idx, gatt_if) ((UINT16) ((((UINT8)(tcb_idx) ) << 8) | ((UINT8) (gatt_if))))
34 #define GATT_GET_TCB_IDX(conn_id) ((UINT8) (((UINT16) (conn_id)) >> 8))
106 UINT16 s_handle; /* starting handle */
107 UINT16 e_handle; /* ending handle */
108 UINT16 value_len; /* length of the attribute value */
123 UINT16 handle; /* read, handle value confirmation */
124 UINT16 mtu;
131 UINT16 handle;
144 UINT16 handle; /* WRITE, WRITE_BLOB */
145 UINT16 mtu; /* exchange MTU request */
153 UINT16 char_val_handle;
182 UINT16 handle;
183 UINT16 uuid;
195 UINT16 handle;
209 UINT16 handle;
222 UINT16 end_handle; /* Last handle number */
223 UINT16 next_handle; /* Next usable handle value */
235 UINT16 service_instance; /* service instance number */
236 UINT16 type; /* service type UUID, primary or secondary */
237 UINT16 s_hdl; /* service starting handle */
238 UINT16 e_hdl; /* service ending handle */
267 UINT16 clcb_idx;
276 typedef UINT16 tGATT_APP_MASK;
288 UINT16 handle;
310 UINT16 gatt_start_hdl;
311 UINT16 gap_start_hdl;
312 UINT16 app_start_hdl;
328 UINT16 count;
336 UINT16 s_hdl;
348 UINT16 count;
359 UINT16 att_lcid; /* L2CAP channel ID for ATT */
360 UINT16 payload_size;
370 UINT16 indicate_handle;
391 UINT16 next_disc_start_hdl; /* starting handle for the next inc srvv discovery */
402 UINT16 conn_id; /* connection handle */
403 UINT16 clcb_idx;
404 UINT16 s_handle; /* starting handle of the active request */
405 UINT16 e_handle; /* ending handle of the active request */
406 UINT16 counter; /* used as offset, attribute length, num of prepare write */
407 UINT16 start_offset;
446 UINT16 clcb_idx;
452 UINT16 handle;
453 UINT16 uuid;
468 UINT16 conn_id;
481 UINT16 next_handle; /* next available handle */
495 UINT16 def_mtu_size;
501 UINT16 handle;
505 UINT16 handle_of_h_r; /* Handle of the handles reused characteristic value */
559 extern UINT16 gatt_profile_find_conn_id_by_bd_addr(BD_ADDR bda);
560 extern BOOLEAN gatt_profile_clcb_dealloc (UINT16 conn_id);
561 extern tGATT_PROFILE_CLCB *gatt_profile_clcb_alloc (UINT16 conn_id, BD_ADDR bda, tBT_TRANSPORT transport);
565 extern tGATT_STATUS attp_send_cl_msg (tGATT_TCB *p_tcb, UINT16 clcb_idx, UINT8 op_code, tGATT_CL_MSG *p_msg);
572 extern UINT32 gatt_add_sdp_record (tBT_UUID *p_uuid, UINT16 start_hdl, UINT16 end_hdl);
573 extern BOOLEAN gatt_parse_uuid_from_cmd(tBT_UUID *p_uuid, UINT16 len, UINT8 **p_data);
578 extern void gatt_start_rsp_timer(UINT16 clcb_idx);
583 extern tGATT_STATUS gatt_send_error_rsp(tGATT_TCB *p_tcb, UINT8 err_code, UINT8 op_code, UINT16 handle, BOOLEAN deq);
587 extern tGATTS_PENDING_NEW_SRV_START *gatt_sr_is_new_srv_chg(tBT_UUID *p_app_uuid128, tBT_UUID *p_svc_uuid, UINT16 svc_inst);
602 extern tGATT_HDL_LIST_ELEM *gatt_find_hdl_buffer_by_app_id (tBT_UUID *p_app_uuid128, tBT_UUID *p_svc_uuid, UINT16 svc_inst);
603 extern tGATT_HDL_LIST_ELEM *gatt_find_hdl_buffer_by_handle(UINT16 handle);
625 extern UINT8 gatt_sr_find_i_rcb_by_handle(UINT16 handle);
626 extern UINT8 gatt_sr_find_i_rcb_by_app_id(tBT_UUID *p_app_uuid128, tBT_UUID *p_svc_uuid, UINT16 svc_inst);
630 UINT16 len, UINT8 *p_data);
631 extern void gatt_sr_send_req_callback(UINT16 conn_id, UINT32 trans_id,
633 extern UINT32 gatt_sr_enqueue_cmd (tGATT_TCB *p_tcb, UINT8 op_code, UINT16 handle);
639 extern BOOLEAN gatt_is_clcb_allocated (UINT16 conn_id);
640 extern tGATT_CLCB *gatt_clcb_alloc (UINT16 conn_id);
654 extern tGATT_TCB * gatt_find_tcb_by_cid(UINT16 lcid);
662 extern UINT8 gatt_send_write_msg(tGATT_TCB *p_tcb, UINT16 clcb_idx, UINT8 op_code, UINT16 handle,
663 UINT16 len, UINT16 offset, UINT8 *p_data);
664 extern void gatt_cleanup_upon_disc(BD_ADDR bda, UINT16 reason, tBT_TRANSPORT transport);
668 extern void gatt_act_read(tGATT_CLCB *p_clcb, UINT16 offset);
670 extern UINT8 gatt_act_send_browse(tGATT_TCB *p_tcb, UINT16 index, UINT8 op, UINT16 s_handle, UINT16 e_handle,
673 extern BOOLEAN gatt_cmd_enq(tGATT_TCB *p_tcb, UINT16 clcb_idx, BOOLEAN to_send, UINT8 op_code, BT_HDR *p_buf);
675 UINT16 len, UINT8 *p_data);
687 extern BOOLEAN gatts_init_service_db (tGATT_SVC_DB *p_db, tBT_UUID *p_service, BOOLEAN is_pri, UINT16 s_hdl, UINT16 num_handle);
688 extern UINT16 gatts_add_included_service (tGATT_SVC_DB *p_db, UINT16 s_handle, UINT16 e_handle, tBT_UUID service);
689 extern UINT16 gatts_add_characteristic (tGATT_SVC_DB *p_db, tGATT_PERM perm, tGATT_CHAR_PROP property, tBT_UUID *p_char_uuid);
690 extern UINT16 gatts_add_char_descr (tGATT_SVC_DB *p_db, tGATT_PERM perm, tBT_UUID *p_dscp_uuid);
691 extern tGATT_STATUS gatts_db_read_attr_value_by_type (tGATT_TCB *p_tcb, tGATT_SVC_DB *p_db, UINT8 op_code, BT_HDR *p_rsp, UINT16 s_handle,
692 UINT16 e_handle, tBT_UUID type, UINT16 *p_len, tGATT_SEC_FLAG sec_flag, UINT8 key_size,UINT32 trans_id, UINT16 *p_cur_handle);
693 extern tGATT_STATUS gatts_read_attr_value_by_handle(tGATT_TCB *p_tcb,tGATT_SVC_DB *p_db, UINT8 op_code, UINT16 handle, UINT16 offset,
694 UINT8 *p_value, UINT16 *p_len, UINT16 mtu,tGATT_SEC_FLAG sec_flag,UINT8 key_size,UINT32 trans_id);
695 extern tGATT_STATUS gatts_write_attr_perm_check (tGATT_SVC_DB *p_db, UINT8 op_code,UINT16 handle, UINT16 offset, UINT8 *p_data,
696 UINT16 len, tGATT_SEC_FLAG sec_flag, UINT8 key_size);
697 extern tGATT_STATUS gatts_read_attr_perm_check(tGATT_SVC_DB *p_db, BOOLEAN is_long, UINT16 handle, tGATT_SEC_FLAG sec_flag,UINT8 key_size);
698 extern void gatts_update_srv_list_elem(UINT8 i_sreg, UINT16 handle, BOOLEAN is_primary);