ble_gatt_client
|
bluetooth GATT client structure More...
Data Fields | |
struct bt_att * | att |
int | ref_count |
bt_gatt_client_callback_t | ready_callback |
bt_gatt_client_destroy_func_t | ready_destroy |
void * | ready_data |
bt_gatt_client_service_changed_callback_t | svc_chngd_callback |
bt_gatt_client_destroy_func_t | svc_chngd_destroy |
void * | svc_chngd_data |
bt_gatt_client_debug_func_t | debug_callback |
bt_gatt_client_destroy_func_t | debug_destroy |
void * | debug_data |
struct gatt_db * | db |
bool | in_init |
bool | ready |
struct queue * | long_write_queue |
bool | in_long_write |
unsigned int | reliable_write_session_id |
struct queue * | notify_list |
struct queue * | notify_chrcs |
int | next_reg_id |
unsigned int | disc_id |
unsigned int | notify_id |
unsigned int | ind_id |
unsigned int | svc_chngd_ind_id |
bool | svc_chngd_registered |
struct queue * | svc_chngd_queue |
bool | in_svc_chngd |
struct queue * | pending_requests |
unsigned int | next_request_id |
struct bt_gatt_request * | discovery_req |
unsigned int | mtu_req_id |
bluetooth GATT client structure
main data structure to manage the GATT client state
Definition at line 64 of file gatt-client.c.
struct bt_att* bt_gatt_client::att |
ATT client structure pointer
Definition at line 65 of file gatt-client.c.
Referenced by att_disconnect_cb(), bt_gatt_client_cancel(), bt_gatt_client_cancel_all(), bt_gatt_client_free(), bt_gatt_client_get_mtu(), bt_gatt_client_get_security(), bt_gatt_client_new(), bt_gatt_client_prepare_write(), bt_gatt_client_read_long_value(), bt_gatt_client_read_multiple(), bt_gatt_client_read_value(), bt_gatt_client_set_security(), bt_gatt_client_write_execute(), bt_gatt_client_write_long_value(), bt_gatt_client_write_value(), bt_gatt_client_write_without_response(), cancel_long_write_req(), cancel_prep_write_session(), cancel_request(), complete_unregister_notify(), complete_write_long_op(), discover_chrcs_cb(), discover_descs(), discover_descs_cb(), discover_incl_cb(), discover_primary_cb(), discover_secondary_cb(), exchange_mtu_cb(), gatt_client_init(), handle_next_prep_write(), notify_cb(), notify_data_cleanup(), notify_data_write_ccc(), prepare_write_cb(), process_service_changed(), and read_long_cb().
struct gatt_db* bt_gatt_client::db |
Definition at line 81 of file gatt-client.c.
Referenced by bt_gatt_client_free(), bt_gatt_client_get_db(), bt_gatt_client_new(), bt_gatt_client_register_notify(), discover_incl_cb(), discover_primary_cb(), discover_secondary_cb(), init_fail(), notify_chrc_create(), process_service_changed(), register_service_changed(), service_changed_complete(), and service_changed_failure().
bt_gatt_client_debug_func_t bt_gatt_client::debug_callback |
Definition at line 77 of file gatt-client.c.
Referenced by bt_gatt_client_prepare_write(), bt_gatt_client_set_debug(), discover_chrcs_cb(), discover_descs(), discover_descs_cb(), discover_incl_cb(), discover_primary_cb(), discover_secondary_cb(), exchange_mtu_cb(), init_complete(), process_service_changed(), service_changed_cb(), service_changed_complete(), and service_changed_register_cb().
void* bt_gatt_client::debug_data |
Definition at line 79 of file gatt-client.c.
Referenced by bt_gatt_client_free(), bt_gatt_client_prepare_write(), bt_gatt_client_set_debug(), discover_chrcs_cb(), discover_descs(), discover_descs_cb(), discover_incl_cb(), discover_primary_cb(), discover_secondary_cb(), exchange_mtu_cb(), init_complete(), process_service_changed(), service_changed_cb(), service_changed_complete(), and service_changed_register_cb().
bt_gatt_client_destroy_func_t bt_gatt_client::debug_destroy |
Definition at line 78 of file gatt-client.c.
Referenced by bt_gatt_client_free(), and bt_gatt_client_set_debug().
unsigned int bt_gatt_client::disc_id |
Handle of the GATT Service 0 if not present on the remote peripheral.
Definition at line 98 of file gatt-client.c.
Referenced by att_disconnect_cb(), bt_gatt_client_free(), and bt_gatt_client_new().
struct bt_gatt_request* bt_gatt_client::discovery_req |
Definition at line 123 of file gatt-client.c.
Referenced by bt_gatt_client_cancel_all(), discover_chrcs_cb(), discover_descs(), discover_descs_cb(), discover_incl_cb(), discover_primary_cb(), discover_secondary_cb(), discovery_req_clear(), exchange_mtu_cb(), and process_service_changed().
bool bt_gatt_client::in_init |
Definition at line 82 of file gatt-client.c.
Referenced by att_disconnect_cb(), exchange_mtu_cb(), gatt_client_init(), and init_complete().
bool bt_gatt_client::in_long_write |
Definition at line 91 of file gatt-client.c.
Referenced by bt_gatt_client_prepare_write(), bt_gatt_client_write_execute(), bt_gatt_client_write_long_value(), cancel_long_write_cb(), and start_next_long_write().
bool bt_gatt_client::in_svc_chngd |
Definition at line 116 of file gatt-client.c.
Referenced by bt_gatt_client_register_notify(), process_service_changed(), service_changed_cb(), and service_changed_complete().
unsigned int bt_gatt_client::ind_id |
Handles of the GATT indication. 0 if not present on the remote peripheral.
Definition at line 107 of file gatt-client.c.
Referenced by bt_gatt_client_free(), and bt_gatt_client_new().
struct queue* bt_gatt_client::long_write_queue |
Queue of long write requests. An error during "prepare write" requests can result in a cancel through "execute write". To prevent cancellation of prepared writes to the wrong attribute and multiple requests to the same attribute that may result in a corrupted final value, we avoid interleaving prepared writes.
Definition at line 84 of file gatt-client.c.
Referenced by bt_gatt_client_free(), bt_gatt_client_new(), bt_gatt_client_write_long_value(), cancel_long_write_cb(), cancel_long_write_req(), and start_next_long_write().
unsigned int bt_gatt_client::mtu_req_id |
Definition at line 124 of file gatt-client.c.
Referenced by bt_gatt_client_cancel_all(), exchange_mtu_cb(), and gatt_client_init().
int bt_gatt_client::next_reg_id |
Definition at line 97 of file gatt-client.c.
Referenced by register_notify().
unsigned int bt_gatt_client::next_request_id |
Definition at line 122 of file gatt-client.c.
Referenced by request_create().
struct queue* bt_gatt_client::notify_chrcs |
Definition at line 96 of file gatt-client.c.
Referenced by bt_gatt_client_free(), bt_gatt_client_new(), gatt_client_remove_notify_chrcs_in_range(), notify_chrc_create(), and register_notify().
unsigned int bt_gatt_client::notify_id |
Handle of the GATT Service Changed characteristic 0 if not present on the remote peripheral.
Definition at line 102 of file gatt-client.c.
Referenced by bt_gatt_client_free(), and bt_gatt_client_new().
struct queue* bt_gatt_client::notify_list |
List of registered disconnect/notification/indication callbacks
Definition at line 94 of file gatt-client.c.
Referenced by bt_gatt_client_free(), bt_gatt_client_new(), bt_gatt_client_unregister_notify(), enable_ccc_callback(), gatt_client_remove_all_notify_in_range(), notify_cb(), and register_notify().
struct queue* bt_gatt_client::pending_requests |
List of pending read/write operations. For operations that span across multiple PDUs, this list provides a mapping from an operation id to an ATT request id.
Definition at line 117 of file gatt-client.c.
Referenced by bt_gatt_client_cancel(), bt_gatt_client_cancel_all(), bt_gatt_client_free(), bt_gatt_client_new(), bt_gatt_client_write_execute(), get_reliable_request(), request_create(), and request_unref().
bool bt_gatt_client::ready |
Definition at line 83 of file gatt-client.c.
Referenced by att_disconnect_cb(), bt_gatt_client_is_ready(), gatt_client_init(), and notify_client_ready().
bt_gatt_client_callback_t bt_gatt_client::ready_callback |
Definition at line 69 of file gatt-client.c.
Referenced by bt_gatt_client_set_ready_handler(), and notify_client_ready().
void* bt_gatt_client::ready_data |
Definition at line 71 of file gatt-client.c.
Referenced by bt_gatt_client_free(), bt_gatt_client_set_ready_handler(), and notify_client_ready().
bt_gatt_client_destroy_func_t bt_gatt_client::ready_destroy |
Definition at line 70 of file gatt-client.c.
Referenced by bt_gatt_client_free(), and bt_gatt_client_set_ready_handler().
int bt_gatt_client::ref_count |
count of references
Definition at line 67 of file gatt-client.c.
Referenced by bt_gatt_client_ref(), and bt_gatt_client_unref().
unsigned int bt_gatt_client::reliable_write_session_id |
Definition at line 93 of file gatt-client.c.
Referenced by bt_gatt_client_prepare_write(), bt_gatt_client_write_execute(), bt_gatt_client_write_long_value(), cancel_prep_write_cb(), and exec_write_cb().
bt_gatt_client_service_changed_callback_t bt_gatt_client::svc_chngd_callback |
Definition at line 73 of file gatt-client.c.
Referenced by bt_gatt_client_set_service_changed(), and service_changed_complete().
void* bt_gatt_client::svc_chngd_data |
Definition at line 75 of file gatt-client.c.
Referenced by bt_gatt_client_set_service_changed(), and service_changed_complete().
bt_gatt_client_destroy_func_t bt_gatt_client::svc_chngd_destroy |
Definition at line 74 of file gatt-client.c.
Referenced by bt_gatt_client_set_service_changed().
unsigned int bt_gatt_client::svc_chngd_ind_id |
Definition at line 112 of file gatt-client.c.
Referenced by register_service_changed(), and service_changed_register_cb().
struct queue* bt_gatt_client::svc_chngd_queue |
Queued service changed events
Definition at line 114 of file gatt-client.c.
Referenced by bt_gatt_client_free(), bt_gatt_client_new(), service_changed_cb(), and service_changed_complete().
bool bt_gatt_client::svc_chngd_registered |
Definition at line 113 of file gatt-client.c.
Referenced by service_changed_register_cb().