mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-07 09:55:45 +00:00
prepare link state machine
This commit is contained in:
parent
3429f56b3a
commit
c01e9cbd6b
13
src/hci.h
13
src/hci.h
@ -99,12 +99,25 @@ typedef struct {
|
||||
const char *format;
|
||||
} hci_cmd_t;
|
||||
|
||||
typedef enum {
|
||||
SEND_NEGATIVE_LINK_KEY_REQUEST = 1 << 0,
|
||||
SEND_PIN_CODE_RESPONSE = 1 << 1
|
||||
} hci_connection_flags_t;
|
||||
|
||||
typedef struct hci_connection {
|
||||
// linked list
|
||||
struct hci_connection * next;
|
||||
|
||||
// remote side
|
||||
bd_addr_t address;
|
||||
hci_con_handle_t con_handle;
|
||||
|
||||
// hci state machine
|
||||
hci_connection_flags_t flags;
|
||||
|
||||
} hci_connection_t;
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
||||
hci_transport_t * hci_transport;
|
||||
|
Loading…
Reference in New Issue
Block a user