Lines Matching full:uint16
35 #define GATT_CREATE_CONN_ID(tcb_idx, gatt_if) ((UINT16) ((((UINT8)(tcb_idx) ) << 8) | ((UINT8) (gatt_if))))
36 #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;
181 UINT16 handle;
182 UINT16 uuid;
194 UINT16 handle;
207 UINT16 end_handle; /* Last handle number */
208 UINT16 next_handle; /* Next usable handle value */
220 UINT16 service_instance; /* service instance number */
221 UINT16 type; /* service type UUID, primary or secondary */
222 UINT16 s_hdl; /* service starting handle */
223 UINT16 e_hdl; /* service ending handle */
252 UINT16 clcb_idx;
261 typedef UINT16 tGATT_APP_MASK;
273 UINT16 handle;
295 UINT16 gatt_start_hdl;
296 UINT16 gap_start_hdl;
297 UINT16 app_start_hdl;
313 UINT16 count;
321 UINT16 s_hdl;
333 UINT16 count;
343 UINT16 att_lcid; /* L2CAP channel ID for ATT */
344 UINT16 payload_size;
354 UINT16 indicate_handle;
376 UINT16 next_disc_start_hdl; /* starting handle for the next inc srvv discovery */
387 UINT16 conn_id; /* connection handle */
388 UINT16 clcb_idx;
389 UINT16 s_handle; /* starting handle of the active request */
390 UINT16 e_handle; /* ending handle of the active request */
391 UINT16 counter; /* used as offset, attribute length, num of prepare write */
392 UINT16 start_offset;
428 UINT16 clcb_idx;
434 UINT16 handle;
435 UINT16 uuid;
450 UINT16 conn_id;
462 UINT16 next_handle; /* next available handle */
476 UINT16 def_mtu_size;
482 UINT16 handle;
486 UINT16 handle_of_h_r; /* Handle of the handles reused characteristic value */
540 extern UINT16 gatt_profile_find_conn_id_by_bd_addr(BD_ADDR bda);
542 extern BOOLEAN gatt_profile_clcb_dealloc (UINT16 conn_id);
543 extern tGATT_PROFILE_CLCB *gatt_profile_clcb_alloc (UINT16 conn_id, BD_ADDR bda);
547 extern tGATT_STATUS attp_send_cl_msg (tGATT_TCB *p_tcb, UINT16 clcb_idx, UINT8 op_code, tGATT_CL_MSG *p_msg);
554 extern UINT32 gatt_add_sdp_record (tBT_UUID *p_uuid, UINT16 start_hdl, UINT16 end_hdl);
555 extern BOOLEAN gatt_parse_uuid_from_cmd(tBT_UUID *p_uuid, UINT16 len, UINT8 **p_data);
564 extern tGATT_STATUS gatt_send_error_rsp(tGATT_TCB *p_tcb, UINT8 err_code, UINT8 op_code, UINT16 handle, BOOLEAN deq);
568 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);
582 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);
583 extern tGATT_HDL_LIST_ELEM *gatt_find_hdl_buffer_by_handle(UINT16 handle);
605 extern UINT8 gatt_sr_find_i_rcb_by_handle(UINT16 handle);
606 extern UINT8 gatt_sr_find_i_rcb_by_app_id(tBT_UUID *p_app_uuid128, tBT_UUID *p_svc_uuid, UINT16 svc_inst);
610 UINT16 len, UINT8 *p_data);
611 extern void gatt_sr_send_req_callback(UINT16 conn_id, UINT32 trans_id,
613 extern UINT32 gatt_sr_enqueue_cmd (tGATT_TCB *p_tcb, UINT8 op_code, UINT16 handle);
619 extern BOOLEAN gatt_is_clcb_allocated (UINT16 conn_id);
620 extern tGATT_CLCB *gatt_clcb_alloc (UINT16 conn_id);
634 extern tGATT_TCB * gatt_find_tcb_by_cid(UINT16 lcid);
642 extern UINT8 gatt_send_write_msg(tGATT_TCB *p_tcb, UINT16 clcb_idx, UINT8 op_code, UINT16 handle,
643 UINT16 len, UINT16 offset, UINT8 *p_data);
644 extern void gatt_cleanup_upon_disc(BD_ADDR bda, UINT16 reason);
648 extern void gatt_act_read(tGATT_CLCB *p_clcb, UINT16 offset);
650 extern UINT8 gatt_act_send_browse(tGATT_TCB *p_tcb, UINT16 index, UINT8 op, UINT16 s_handle, UINT16 e_handle,
653 extern BOOLEAN gatt_cmd_enq(tGATT_TCB *p_tcb, UINT16 clcb_idx, BOOLEAN to_send, UINT8 op_code, BT_HDR *p_buf);
655 UINT16 len, UINT8 *p_data);
667 extern BOOLEAN gatts_init_service_db (tGATT_SVC_DB *p_db, tBT_UUID service, BOOLEAN is_pri, UINT16 s_hdl, UINT16 num_handle);
668 extern UINT16 gatts_add_included_service (tGATT_SVC_DB *p_db, UINT16 s_handle, UINT16 e_handle, tBT_UUID service);
669 extern UINT16 gatts_add_characteristic (tGATT_SVC_DB *p_db, tGATT_PERM perm, tGATT_CHAR_PROP property, tBT_UUID *p_char_uuid);
670 extern UINT16 gatts_add_char_descr (tGATT_SVC_DB *p_db, tGATT_PERM perm, tBT_UUID *p_dscp_uuid);
671 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,
672 UINT16 e_handle, tBT_UUID type, UINT16 *p_len, tGATT_SEC_FLAG sec_flag, UINT8 key_size,UINT32 trans_id, UINT16 *p_cur_handle);
673 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,
674 UINT8 *p_value, UINT16 *p_len, UINT16 mtu,tGATT_SEC_FLAG sec_flag,UINT8 key_size,UINT32 trans_id);
675 extern tGATT_STATUS gatts_write_attr_perm_check (tGATT_SVC_DB *p_db, UINT8 op_code,UINT16 handle, UINT16 offset, UINT8 *p_data,
676 UINT16 len, tGATT_SEC_FLAG sec_flag, UINT8 key_size);
677 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);
678 extern void gatts_update_srv_list_elem(UINT8 i_sreg, UINT16 handle, BOOLEAN is_primary);