ble_gatt_client
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
bt_gatt_client Struct Reference

bluetooth GATT client structure More...

Data Fields

struct bt_attatt
 
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_dbdb
 
bool in_init
 
bool ready
 
struct queuelong_write_queue
 
bool in_long_write
 
unsigned int reliable_write_session_id
 
struct queuenotify_list
 
struct queuenotify_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 queuesvc_chngd_queue
 
bool in_svc_chngd
 
struct queuepending_requests
 
unsigned int next_request_id
 
struct bt_gatt_requestdiscovery_req
 
unsigned int mtu_req_id
 

Detailed Description

bluetooth GATT client structure

main data structure to manage the GATT client state

Definition at line 64 of file gatt-client.c.

Field Documentation

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().

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_svc_chngd
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
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
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
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
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().


The documentation for this struct was generated from the following file: