hci.h (3429f56b3afeda9fa3084e9ddb7f766faae8048d) hci.h (c01e9cbd6b0ba67c9c934852cf656b36693806ad)
1/*
2 * hci.h
3 *
4 * Created by Matthias Ringwald on 4/29/09.
5 *
6 */
7
8#pragma once

--- 85 unchanged lines hidden (view full) ---

94 HCI_STATE_HALTING
95} HCI_STATE;
96
97typedef struct {
98 uint16_t opcode;
99 const char *format;
100} hci_cmd_t;
101
1/*
2 * hci.h
3 *
4 * Created by Matthias Ringwald on 4/29/09.
5 *
6 */
7
8#pragma once

--- 85 unchanged lines hidden (view full) ---

94 HCI_STATE_HALTING
95} HCI_STATE;
96
97typedef struct {
98 uint16_t opcode;
99 const char *format;
100} hci_cmd_t;
101
102typedef enum {
103 SEND_NEGATIVE_LINK_KEY_REQUEST = 1 << 0,
104 SEND_PIN_CODE_RESPONSE = 1 << 1
105} hci_connection_flags_t;
106
102typedef struct hci_connection {
107typedef struct hci_connection {
108 // linked list
103 struct hci_connection * next;
109 struct hci_connection * next;
110
111 // remote side
104 bd_addr_t address;
105 hci_con_handle_t con_handle;
112 bd_addr_t address;
113 hci_con_handle_t con_handle;
114
115 // hci state machine
116 hci_connection_flags_t flags;
117
106} hci_connection_t;
107
118} hci_connection_t;
119
120
108typedef struct {
109
110 hci_transport_t * hci_transport;
111 uint8_t * hci_cmd_buffer;
112 hci_connection_t * connections;
113
114 /* host to controller flow control */
115 uint8_t num_cmd_packets;

--- 53 unchanged lines hidden ---
121typedef struct {
122
123 hci_transport_t * hci_transport;
124 uint8_t * hci_cmd_buffer;
125 hci_connection_t * connections;
126
127 /* host to controller flow control */
128 uint8_t num_cmd_packets;

--- 53 unchanged lines hidden ---