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

Data Fields

int ref_count
 reference counter incremented by bt_att_ref, decremented by bt_att_unref More...
 
int fd
 socket More...
 
struct ioio
 io structure for low level i/o (read and write) More...
 
bool io_on_l2cap
 true if an l2cap socket More...
 
int io_sec_level
 i/o seurity level: Only used for non-L2CAP More...
 
struct queuereq_queue
 Queued ATT protocol requests. More...
 
struct att_send_oppending_req
 Pending request state. More...
 
struct queueind_queue
 Queued ATT protocol indications. More...
 
struct att_send_oppending_ind
 Pending indication state. More...
 
struct queuewrite_queue
 Queue of PDUs ready to send. More...
 
bool writer_active
 true if already engaged in write operation More...
 
struct queuenotify_list
 List of registered callbacks. More...
 
struct queuedisconn_list
 List of disconnect handlers. More...
 
bool in_req
 There's a pending incoming request. More...
 
uint8_t * buf
 buffer pointer More...
 
uint16_t mtu
 actual number of bytes for pdu ATT exchange More...
 
unsigned int next_send_id
 IDs for "send" ops. More...
 
unsigned int next_reg_id
 IDs for registered callbacks. More...
 
bt_att_timeout_func_t timeout_callback
 timeout function for callback More...
 
bt_att_destroy_func_t timeout_destroy
 timeout function to manage data context (house keeping) More...
 
void * timeout_data
 
bt_att_debug_func_t debug_callback
 debug callback More...
 
bt_att_destroy_func_t debug_destroy
 data management function for debug More...
 
void * debug_data
 user pointer for debug More...
 
struct bt_cryptocrypto
 crypto structure More...
 
bool ext_signed
 true, requires key signature More...
 
struct sign_infolocal_sign
 local key structure pointer More...
 
struct sign_inforemote_sign
 remote key structure pointer More...
 

Detailed Description

ATT structure (protocol context)

Definition at line 64 of file att.c.

Field Documentation

uint8_t* bt_att::buf

buffer pointer

Definition at line 94 of file att.c.

Referenced by bt_att_free(), bt_att_new(), bt_att_set_mtu(), and can_read_data().

struct bt_crypto* bt_att::crypto

crypto structure

Definition at line 114 of file att.c.

Referenced by bt_att_free(), bt_att_has_crypto(), bt_att_new(), encode_pdu(), and handle_signed().

void* bt_att::debug_data
bt_att_destroy_func_t bt_att::debug_destroy

data management function for debug

Definition at line 110 of file att.c.

Referenced by bt_att_free(), and bt_att_set_debug().

struct queue* bt_att::disconn_list

List of disconnect handlers.

Definition at line 90 of file att.c.

Referenced by bt_att_free(), bt_att_new(), bt_att_register_disconnect(), bt_att_unregister_all(), bt_att_unregister_disconnect(), and disconnect_cb().

bool bt_att::ext_signed

true, requires key signature

Definition at line 116 of file att.c.

Referenced by bt_att_new(), and handle_notify().

int bt_att::fd
bool bt_att::in_req

There's a pending incoming request.

Definition at line 92 of file att.c.

Referenced by can_read_data(), and can_write_data().

struct queue* bt_att::ind_queue

Queued ATT protocol indications.

Definition at line 80 of file att.c.

Referenced by bt_att_cancel(), bt_att_cancel_all(), bt_att_free(), bt_att_new(), bt_att_send(), pick_next_send_op(), and wakeup_writer().

struct io* bt_att::io
bool bt_att::io_on_l2cap

true if an l2cap socket

Definition at line 72 of file att.c.

Referenced by bt_att_get_security(), bt_att_new(), and bt_att_set_security().

int bt_att::io_sec_level

i/o seurity level: Only used for non-L2CAP

Definition at line 74 of file att.c.

Referenced by bt_att_get_security(), bt_att_new(), and bt_att_set_security().

struct sign_info* bt_att::local_sign

local key structure pointer

Definition at line 118 of file att.c.

Referenced by bt_att_free(), bt_att_set_local_key(), and encode_pdu().

uint16_t bt_att::mtu

actual number of bytes for pdu ATT exchange

Definition at line 96 of file att.c.

Referenced by bt_att_get_mtu(), bt_att_new(), bt_att_set_mtu(), can_read_data(), and encode_pdu().

unsigned int bt_att::next_reg_id

IDs for registered callbacks.

Definition at line 100 of file att.c.

Referenced by bt_att_register(), and bt_att_register_disconnect().

unsigned int bt_att::next_send_id

IDs for "send" ops.

Definition at line 98 of file att.c.

Referenced by bt_att_send().

struct queue* bt_att::notify_list

List of registered callbacks.

Definition at line 88 of file att.c.

Referenced by bt_att_free(), bt_att_new(), bt_att_register(), bt_att_unregister(), bt_att_unregister_all(), and handle_notify().

struct att_send_op* bt_att::pending_ind

Pending indication state.

Definition at line 82 of file att.c.

Referenced by bt_att_cancel(), bt_att_cancel_all(), bt_att_free(), can_write_data(), handle_conf(), pick_next_send_op(), timeout_cb(), and wakeup_writer().

struct att_send_op* bt_att::pending_req
int bt_att::ref_count

reference counter incremented by bt_att_ref, decremented by bt_att_unref

Definition at line 66 of file att.c.

Referenced by bt_att_ref(), and bt_att_unref().

struct sign_info* bt_att::remote_sign

remote key structure pointer

Definition at line 120 of file att.c.

Referenced by bt_att_free(), bt_att_set_remote_key(), and handle_signed().

struct queue* bt_att::req_queue

Queued ATT protocol requests.

Definition at line 76 of file att.c.

Referenced by bt_att_cancel(), bt_att_cancel_all(), bt_att_free(), bt_att_new(), bt_att_send(), handle_error_rsp(), pick_next_send_op(), and wakeup_writer().

bt_att_timeout_func_t bt_att::timeout_callback

timeout function for callback

Definition at line 102 of file att.c.

Referenced by bt_att_set_timeout_cb(), and timeout_cb().

void* bt_att::timeout_data

Definition at line 106 of file att.c.

Referenced by bt_att_free(), bt_att_set_timeout_cb(), and timeout_cb().

bt_att_destroy_func_t bt_att::timeout_destroy

timeout function to manage data context (house keeping)

Definition at line 104 of file att.c.

Referenced by bt_att_free(), and bt_att_set_timeout_cb().

struct queue* bt_att::write_queue

Queue of PDUs ready to send.

Definition at line 84 of file att.c.

Referenced by bt_att_cancel(), bt_att_cancel_all(), bt_att_free(), bt_att_new(), bt_att_send(), pick_next_send_op(), and wakeup_writer().

bool bt_att::writer_active

true if already engaged in write operation

Definition at line 86 of file att.c.

Referenced by wakeup_writer(), and write_watch_destroy().


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