|
ble_gatt_client
|
Request data structure. More...
Data Fields | |
| struct bt_gatt_client * | client |
| bool | long_write |
| bool | prep_write |
| bool | removed |
| int | ref_count |
| unsigned int | id |
| unsigned int | att_id |
| void * | data |
| void(* | destroy )(void *) |
Request data structure.
Structure to manage request queries
Definition at line 132 of file gatt-client.c.
| unsigned int request::att_id |
att message sequence number
Definition at line 145 of file gatt-client.c.
Referenced by bt_gatt_client_prepare_write(), bt_gatt_client_read_long_value(), bt_gatt_client_read_multiple(), bt_gatt_client_read_value(), 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_request(), complete_write_long_op(), handle_next_prep_write(), and read_long_cb().
| struct bt_gatt_client* request::client |
GATT client context
Definition at line 133 of file gatt-client.c.
Referenced by cancel_prep_write_cb(), cancel_request(), request_create(), and request_unref().
| void* request::data |
reference to the data exchanged during the request
Definition at line 147 of file gatt-client.c.
Referenced by bt_gatt_client_prepare_write(), bt_gatt_client_read_long_value(), bt_gatt_client_read_multiple(), bt_gatt_client_read_value(), bt_gatt_client_write_execute(), bt_gatt_client_write_long_value(), bt_gatt_client_write_value(), complete_write_long_op(), exec_write_cb(), execute_write_cb(), get_reliable_request(), handle_next_prep_write(), prep_write_cb(), prepare_write_cb(), read_cb(), read_long_cb(), read_multiple_cb(), request_unref(), and write_cb().
| void(* request::destroy)(void *) |
function called when data structure need to be released (ref_count reaches 0)
Definition at line 149 of file gatt-client.c.
Referenced by bt_gatt_client_prepare_write(), bt_gatt_client_read_long_value(), bt_gatt_client_read_multiple(), bt_gatt_client_read_value(), bt_gatt_client_write_execute(), bt_gatt_client_write_long_value(), bt_gatt_client_write_value(), and request_unref().
| unsigned int request::id |
request id: a unique number incremented by each client request
Definition at line 143 of file gatt-client.c.
Referenced by bt_gatt_client_prepare_write(), bt_gatt_client_read_long_value(), bt_gatt_client_read_multiple(), bt_gatt_client_read_value(), bt_gatt_client_write_long_value(), bt_gatt_client_write_value(), bt_gatt_client_write_without_response(), match_req_id(), and request_create().
| bool request::long_write |
true if the request is a long write
Definition at line 135 of file gatt-client.c.
Referenced by bt_gatt_client_write_long_value(), and cancel_request().
| bool request::prep_write |
true if the request is a preparation write request
Definition at line 137 of file gatt-client.c.
Referenced by bt_gatt_client_prepare_write(), and cancel_request().
| int request::ref_count |
number of references to this data structure
Definition at line 141 of file gatt-client.c.
Referenced by request_ref(), and request_unref().
| bool request::removed |
request still in queue if true
Definition at line 139 of file gatt-client.c.
Referenced by cancel_request(), and request_unref().