Lines Matching refs:uint16_t
37 ((uint16_t)((((uint8_t)(tcb_idx)) << 8) | ((uint8_t)(gatt_if))))
38 #define GATT_GET_TCB_IDX(conn_id) ((uint8_t)(((uint16_t)(conn_id)) >> 8))
103 uint16_t s_handle; /* starting handle */
104 uint16_t e_handle; /* ending handle */
105 uint16_t value_len; /* length of the attribute value */
120 uint16_t handle; /* read, handle value confirmation */
121 uint16_t mtu;
127 uint16_t handle;
139 uint16_t handle; /* WRITE, WRITE_BLOB */
140 uint16_t mtu; /* exchange MTU request */
147 uint16_t char_val_handle;
156 uint16_t char_ext_prop; /* Characteristic Extended Properties */
171 uint16_t handle;
180 uint16_t end_handle; /* Last handle number */
181 uint16_t next_handle; /* Next usable handle value */
207 uint16_t cid;
213 typedef uint16_t tGATT_APP_MASK;
224 uint16_t handle;
228 uint16_t cid;
261 uint16_t gatt_start_hdl;
262 uint16_t gap_start_hdl;
263 uint16_t app_start_hdl;
279 uint16_t type; /* service type UUID, primary or secondary */
280 uint16_t s_hdl; /* service starting handle */
281 uint16_t e_hdl; /* service ending handle */
296 uint16_t att_lcid; /* L2CAP channel ID for ATT */
297 uint16_t payload_size;
306 uint16_t indicate_handle;
331 uint16_t
342 uint16_t conn_id; /* connection handle */
343 uint16_t s_handle; /* starting handle of the active request */
344 uint16_t e_handle; /* ending handle of the active request */
345 uint16_t counter; /* used as offset, attribute length, num of prepare write */
346 uint16_t start_offset;
356 uint16_t read_req_current_mtu; /* This is the MTU value that the read was
358 uint16_t cid;
362 uint16_t handle;
363 uint16_t uuid;
374 uint16_t conn_id;
383 uint16_t s_handle;
384 uint16_t e_handle;
391 uint16_t next_handle; /* next available handle */
392 uint16_t last_service_handle; /* handle of last service */
406 uint16_t handle;
410 uint16_t
412 uint16_t handle_cl_supported_feat;
413 uint16_t handle_sr_supported_feat;
423 uint16_t handle_of_database_hash;
448 extern void gatt_data_process(tGATT_TCB& p_tcb, uint16_t cid, BT_HDR* p_buf);
462 extern uint16_t gatt_profile_find_conn_id_by_bd_addr(const RawAddress& bda);
475 extern tGATT_STATUS attp_send_cl_confirmation_msg(tGATT_TCB& tcb, uint16_t cid);
480 extern tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, uint16_t cid,
482 extern tGATT_STATUS attp_send_msg_to_l2cap(tGATT_TCB& tcb, uint16_t cid,
488 uint16_t start_hdl, uint16_t end_hdl);
489 extern bool gatt_parse_uuid_from_cmd(bluetooth::Uuid* p_uuid, uint16_t len,
499 extern void gatt_start_conf_timer(tGATT_TCB* p_tcb, uint16_t cid);
500 extern void gatt_stop_conf_timer(tGATT_TCB& tcb, uint16_t cid);
504 extern void gatt_start_ind_ack_timer(tGATT_TCB& tcb, uint16_t cid);
505 extern void gatt_stop_ind_ack_timer(tGATT_TCB* p_tcb, uint16_t cid);
506 extern tGATT_STATUS gatt_send_error_rsp(tGATT_TCB& tcb, uint16_t cid,
508 uint16_t handle, bool deq);
526 uint16_t svc_inst);
527 extern tGATT_HDL_LIST_ELEM* gatt_find_hdl_buffer_by_handle(uint16_t handle);
536 uint16_t handle);
542 extern void gatt_server_handle_client_req(tGATT_TCB& p_tcb, uint16_t cid,
543 uint8_t op_code, uint16_t len,
545 extern void gatt_sr_send_req_callback(uint16_t conn_id, uint32_t trans_id,
547 extern uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& tcb, uint16_t cid,
548 uint8_t op_code, uint16_t handle);
550 extern void gatt_notify_phy_updated(tGATT_STATUS status, uint16_t handle,
554 extern bool gatt_tcb_is_cid_busy(tGATT_TCB& tcb, uint16_t cid);
557 extern bool gatt_is_clcb_allocated(uint16_t conn_id);
558 extern tGATT_CLCB* gatt_clcb_alloc(uint16_t conn_id);
561 tGATT_TCB* p_tcb, bool eatt_support, uint16_t** indicate_handle_p,
562 uint16_t* cid_p);
563 extern bool gatt_tcb_find_indicate_handle(tGATT_TCB& tcb, uint16_t cid,
564 uint16_t* indicated_handle_p);
565 extern uint16_t gatt_tcb_get_att_cid(tGATT_TCB& tcb, bool eatt_support);
566 extern uint16_t gatt_tcb_get_payload_size_tx(tGATT_TCB& tcb, uint16_t cid);
567 extern uint16_t gatt_tcb_get_payload_size_rx(tGATT_TCB& tcb, uint16_t cid);
573 extern void gatt_sr_reset_cback_cnt(tGATT_TCB& p_tcb, uint16_t cid);
577 extern tGATT_SR_CMD* gatt_sr_get_cmd_by_cid(tGATT_TCB& tcb, uint16_t cid);
578 extern tGATT_READ_MULTI* gatt_sr_get_read_multi(tGATT_TCB& tcb, uint16_t cid);
579 extern void gatt_sr_update_cback_cnt(tGATT_TCB& p_tcb, uint16_t cid,
586 extern tGATT_TCB* gatt_find_tcb_by_cid(uint16_t lcid);
596 extern void gatt_dequeue_sr_cmd(tGATT_TCB& tcb, uint16_t cid);
598 uint8_t op_code, uint16_t handle,
599 uint16_t len, uint16_t offset,
608 extern void gatt_act_read(tGATT_CLCB* p_clcb, uint16_t offset);
610 extern tGATT_CLCB* gatt_cmd_dequeue(tGATT_TCB& tcb, uint16_t cid,
614 extern void gatt_client_handle_server_rsp(tGATT_TCB& tcb, uint16_t cid,
615 uint8_t op_code, uint16_t len,
622 extern void gatt_verify_signature(tGATT_TCB& tcb, uint16_t cid, BT_HDR* p_buf);
630 uint16_t s_hdl, uint16_t num_handle);
631 extern uint16_t gatts_add_included_service(tGATT_SVC_DB& db, uint16_t s_handle,
632 uint16_t e_handle,
634 extern uint16_t gatts_add_characteristic(tGATT_SVC_DB& db, tGATT_PERM perm,
637 extern uint16_t gatts_add_char_ext_prop_descr(tGATT_SVC_DB& db,
638 uint16_t extended_properties);
639 extern uint16_t gatts_add_char_descr(tGATT_SVC_DB& db, tGATT_PERM perm,
642 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code,
643 BT_HDR* p_rsp, uint16_t s_handle, uint16_t e_handle,
644 const bluetooth::Uuid& type, uint16_t* p_len, tGATT_SEC_FLAG sec_flag,
645 uint8_t key_size, uint32_t trans_id, uint16_t* p_cur_handle);
647 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code,
648 uint16_t handle, uint16_t offset, uint8_t* p_value, uint16_t* p_len,
649 uint16_t mtu, tGATT_SEC_FLAG sec_flag, uint8_t key_size, uint32_t trans_id);
651 tGATT_SVC_DB* p_db, uint8_t op_code, uint16_t handle, uint16_t offset,
652 uint8_t* p_data, uint16_t len, tGATT_SEC_FLAG sec_flag, uint8_t key_size);
654 uint16_t handle,