xref: /btstack/src/btstack_defines.h (revision 616edd56bcd31feb1a533261862afdeab6d85517)
1941b3855SMatthias Ringwald /*
2941b3855SMatthias Ringwald  * Copyright (C) 2015 BlueKitchen GmbH
3941b3855SMatthias Ringwald  *
4941b3855SMatthias Ringwald  * Redistribution and use in source and binary forms, with or without
5941b3855SMatthias Ringwald  * modification, are permitted provided that the following conditions
6941b3855SMatthias Ringwald  * are met:
7941b3855SMatthias Ringwald  *
8941b3855SMatthias Ringwald  * 1. Redistributions of source code must retain the above copyright
9941b3855SMatthias Ringwald  *    notice, this list of conditions and the following disclaimer.
10941b3855SMatthias Ringwald  * 2. Redistributions in binary form must reproduce the above copyright
11941b3855SMatthias Ringwald  *    notice, this list of conditions and the following disclaimer in the
12941b3855SMatthias Ringwald  *    documentation and/or other materials provided with the distribution.
13941b3855SMatthias Ringwald  * 3. Neither the name of the copyright holders nor the names of
14941b3855SMatthias Ringwald  *    contributors may be used to endorse or promote products derived
15941b3855SMatthias Ringwald  *    from this software without specific prior written permission.
16941b3855SMatthias Ringwald  * 4. Any redistribution, use, or modification is done solely for
17941b3855SMatthias Ringwald  *    personal benefit and not for any commercial purpose or for
18941b3855SMatthias Ringwald  *    monetary gain.
19941b3855SMatthias Ringwald  *
20941b3855SMatthias Ringwald  * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS
21941b3855SMatthias Ringwald  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22941b3855SMatthias Ringwald  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23941b3855SMatthias Ringwald  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS
24941b3855SMatthias Ringwald  * RINGWALD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25941b3855SMatthias Ringwald  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26941b3855SMatthias Ringwald  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
27941b3855SMatthias Ringwald  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28941b3855SMatthias Ringwald  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29941b3855SMatthias Ringwald  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
30941b3855SMatthias Ringwald  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31941b3855SMatthias Ringwald  * SUCH DAMAGE.
32941b3855SMatthias Ringwald  *
33941b3855SMatthias Ringwald  * Please inquire about commercial licensing options at
34941b3855SMatthias Ringwald  * [email protected]
35941b3855SMatthias Ringwald  *
36941b3855SMatthias Ringwald  */
37941b3855SMatthias Ringwald 
38941b3855SMatthias Ringwald /*
39941b3855SMatthias Ringwald  * btstack-defines.h
40941b3855SMatthias Ringwald  *
41941b3855SMatthias Ringwald  * BTstack definitions, events, and error codes */
42941b3855SMatthias Ringwald 
43941b3855SMatthias Ringwald #ifndef __BTSTACK_DEFINES_H
44941b3855SMatthias Ringwald #define __BTSTACK_DEFINES_H
45941b3855SMatthias Ringwald 
46941b3855SMatthias Ringwald // DEFINES
47941b3855SMatthias Ringwald 
48941b3855SMatthias Ringwald #define DAEMON_EVENT_PACKET     0x05
49941b3855SMatthias Ringwald 
50941b3855SMatthias Ringwald // L2CAP data
51941b3855SMatthias Ringwald #define L2CAP_DATA_PACKET       0x06
52941b3855SMatthias Ringwald 
53941b3855SMatthias Ringwald // RFCOMM data
54941b3855SMatthias Ringwald #define RFCOMM_DATA_PACKET      0x07
55941b3855SMatthias Ringwald 
56941b3855SMatthias Ringwald // Attribute protocol data
57941b3855SMatthias Ringwald #define ATT_DATA_PACKET         0x08
58941b3855SMatthias Ringwald 
59941b3855SMatthias Ringwald // Security Manager protocol data
60941b3855SMatthias Ringwald #define SM_DATA_PACKET          0x09
61941b3855SMatthias Ringwald 
62941b3855SMatthias Ringwald // SDP query result
63941b3855SMatthias Ringwald // format: type (8), record_id (16), attribute_id (16), attribute_length (16), attribute_value (max 1k)
64941b3855SMatthias Ringwald #define SDP_CLIENT_PACKET       0x0a
65941b3855SMatthias Ringwald 
66941b3855SMatthias Ringwald // BNEP data
67941b3855SMatthias Ringwald #define BNEP_DATA_PACKET        0x0b
68941b3855SMatthias Ringwald 
69941b3855SMatthias Ringwald // Unicast Connectionless Data
70941b3855SMatthias Ringwald #define UCD_DATA_PACKET         0x0c
71941b3855SMatthias Ringwald 
72941b3855SMatthias Ringwald // debug log messages
73941b3855SMatthias Ringwald #define LOG_MESSAGE_PACKET      0xfc
74941b3855SMatthias Ringwald 
75941b3855SMatthias Ringwald 
76941b3855SMatthias Ringwald // ERRORS
77941b3855SMatthias Ringwald 
78941b3855SMatthias Ringwald // last error code in 2.1 is 0x38 - we start with 0x50 for BTstack errors
79941b3855SMatthias Ringwald #define BTSTACK_CONNECTION_TO_BTDAEMON_FAILED              0x50
80941b3855SMatthias Ringwald #define BTSTACK_ACTIVATION_FAILED_SYSTEM_BLUETOOTH         0x51
81941b3855SMatthias Ringwald #define BTSTACK_ACTIVATION_POWERON_FAILED                  0x52
82941b3855SMatthias Ringwald #define BTSTACK_ACTIVATION_FAILED_UNKNOWN                  0x53
83941b3855SMatthias Ringwald #define BTSTACK_NOT_ACTIVATED                              0x54
84941b3855SMatthias Ringwald #define BTSTACK_BUSY                                       0x55
85941b3855SMatthias Ringwald #define BTSTACK_MEMORY_ALLOC_FAILED                        0x56
86941b3855SMatthias Ringwald #define BTSTACK_ACL_BUFFERS_FULL                           0x57
87941b3855SMatthias Ringwald 
88941b3855SMatthias Ringwald // l2cap errors - enumeration by the command that created them
89941b3855SMatthias Ringwald #define L2CAP_COMMAND_REJECT_REASON_COMMAND_NOT_UNDERSTOOD 0x60
90941b3855SMatthias Ringwald #define L2CAP_COMMAND_REJECT_REASON_SIGNALING_MTU_EXCEEDED 0x61
91941b3855SMatthias Ringwald #define L2CAP_COMMAND_REJECT_REASON_INVALID_CID_IN_REQUEST 0x62
92941b3855SMatthias Ringwald 
93941b3855SMatthias Ringwald #define L2CAP_CONNECTION_RESPONSE_RESULT_SUCCESSFUL        0x63
94941b3855SMatthias Ringwald #define L2CAP_CONNECTION_RESPONSE_RESULT_PENDING           0x64
95941b3855SMatthias Ringwald #define L2CAP_CONNECTION_RESPONSE_RESULT_REFUSED_PSM       0x65
96941b3855SMatthias Ringwald #define L2CAP_CONNECTION_RESPONSE_RESULT_REFUSED_SECURITY  0x66
97941b3855SMatthias Ringwald #define L2CAP_CONNECTION_RESPONSE_RESULT_REFUSED_RESOURCES 0x67
98941b3855SMatthias Ringwald #define L2CAP_CONNECTION_RESPONSE_RESULT_RTX_TIMEOUT       0x68
99941b3855SMatthias Ringwald 
100941b3855SMatthias Ringwald #define L2CAP_SERVICE_ALREADY_REGISTERED                   0x69
101941b3855SMatthias Ringwald #define L2CAP_DATA_LEN_EXCEEDS_REMOTE_MTU                  0x6A
102941b3855SMatthias Ringwald 
103941b3855SMatthias Ringwald #define RFCOMM_MULTIPLEXER_STOPPED                         0x70
104941b3855SMatthias Ringwald #define RFCOMM_CHANNEL_ALREADY_REGISTERED                  0x71
105941b3855SMatthias Ringwald #define RFCOMM_NO_OUTGOING_CREDITS                         0x72
106941b3855SMatthias Ringwald #define RFCOMM_AGGREGATE_FLOW_OFF                          0x73
107941b3855SMatthias Ringwald #define RFCOMM_DATA_LEN_EXCEEDS_MTU                        0x74
108941b3855SMatthias Ringwald 
109941b3855SMatthias Ringwald #define SDP_HANDLE_ALREADY_REGISTERED                      0x80
110941b3855SMatthias Ringwald #define SDP_QUERY_INCOMPLETE                               0x81
111941b3855SMatthias Ringwald #define SDP_SERVICE_NOT_FOUND                              0x82
112941b3855SMatthias Ringwald #define SDP_HANDLE_INVALID                                 0x83
113941b3855SMatthias Ringwald 
114941b3855SMatthias Ringwald #define ATT_HANDLE_VALUE_INDICATION_IN_PORGRESS            0x90
115941b3855SMatthias Ringwald #define ATT_HANDLE_VALUE_INDICATION_TIMEOUT                0x91
116941b3855SMatthias Ringwald 
117941b3855SMatthias Ringwald #define GATT_CLIENT_NOT_CONNECTED                          0x93
118941b3855SMatthias Ringwald #define GATT_CLIENT_BUSY                                   0x94
119*616edd56SMatthias Ringwald #define GATT_CLIENT_IN_WRONG_STATE                         0x95
120*616edd56SMatthias Ringwald #define GATT_CLIENT_DIFFERENT_CONTEXT_FOR_ADDRESS_ALREADY_EXISTS 0x96
121*616edd56SMatthias Ringwald #define GATT_CLIENT_VALUE_TOO_LONG                         0x97
122*616edd56SMatthias Ringwald #define GATT_CLIENT_CHARACTERISTIC_NOTIFICATION_NOT_SUPPORTED 0x98
123*616edd56SMatthias Ringwald #define GATT_CLIENT_CHARACTERISTIC_INDICATION_NOT_SUPPORTED   0x99
124941b3855SMatthias Ringwald 
125941b3855SMatthias Ringwald #define BNEP_SERVICE_ALREADY_REGISTERED                    0xA0
126941b3855SMatthias Ringwald #define BNEP_CHANNEL_NOT_CONNECTED                         0xA1
127941b3855SMatthias Ringwald #define BNEP_DATA_LEN_EXCEEDS_MTU                          0xA2
128941b3855SMatthias Ringwald 
129b3f90e25SMatthias Ringwald // COMMANDS
130b3f90e25SMatthias Ringwald 
131b3f90e25SMatthias Ringwald #define OGF_BTSTACK 0x3d
132b3f90e25SMatthias Ringwald 
133b3f90e25SMatthias Ringwald // cmds for BTstack
134b3f90e25SMatthias Ringwald // get state: @returns HCI_STATE
135b3f90e25SMatthias Ringwald #define BTSTACK_GET_STATE                                  0x01
136b3f90e25SMatthias Ringwald 
137b3f90e25SMatthias Ringwald // set power mode: @param HCI_POWER_MODE
138b3f90e25SMatthias Ringwald #define BTSTACK_SET_POWER_MODE                             0x02
139b3f90e25SMatthias Ringwald 
140b3f90e25SMatthias Ringwald // set capture mode: @param on
141b3f90e25SMatthias Ringwald #define BTSTACK_SET_ACL_CAPTURE_MODE                       0x03
142b3f90e25SMatthias Ringwald 
143b3f90e25SMatthias Ringwald // get BTstack version
144b3f90e25SMatthias Ringwald #define BTSTACK_GET_VERSION                                0x04
145b3f90e25SMatthias Ringwald 
146b3f90e25SMatthias Ringwald // get system Bluetooth state
147b3f90e25SMatthias Ringwald #define BTSTACK_GET_SYSTEM_BLUETOOTH_ENABLED               0x05
148b3f90e25SMatthias Ringwald 
149b3f90e25SMatthias Ringwald // set system Bluetooth state
150b3f90e25SMatthias Ringwald #define BTSTACK_SET_SYSTEM_BLUETOOTH_ENABLED               0x06
151b3f90e25SMatthias Ringwald 
152b3f90e25SMatthias Ringwald // enable inquiry scan for this client
153b3f90e25SMatthias Ringwald #define BTSTACK_SET_DISCOVERABLE                           0x07
154b3f90e25SMatthias Ringwald 
155b3f90e25SMatthias Ringwald // set global Bluetooth state
156b3f90e25SMatthias Ringwald #define BTSTACK_SET_BLUETOOTH_ENABLED                      0x08
157b3f90e25SMatthias Ringwald 
158b3f90e25SMatthias Ringwald // create l2cap channel: @param bd_addr(48), psm (16)
159b3f90e25SMatthias Ringwald #define L2CAP_CREATE_CHANNEL                               0x20
160b3f90e25SMatthias Ringwald 
161b3f90e25SMatthias Ringwald // disconnect l2cap disconnect, @param channel(16), reason(8)
162b3f90e25SMatthias Ringwald #define L2CAP_DISCONNECT                                   0x21
163b3f90e25SMatthias Ringwald 
164b3f90e25SMatthias Ringwald // register l2cap service: @param psm(16), mtu (16)
165b3f90e25SMatthias Ringwald #define L2CAP_REGISTER_SERVICE                             0x22
166b3f90e25SMatthias Ringwald 
167b3f90e25SMatthias Ringwald // unregister l2cap disconnect, @param psm(16)
168b3f90e25SMatthias Ringwald #define L2CAP_UNREGISTER_SERVICE                           0x23
169b3f90e25SMatthias Ringwald 
170b3f90e25SMatthias Ringwald // accept connection @param bd_addr(48), dest cid (16)
171b3f90e25SMatthias Ringwald #define L2CAP_ACCEPT_CONNECTION                            0x24
172b3f90e25SMatthias Ringwald 
173b3f90e25SMatthias Ringwald // decline l2cap disconnect,@param bd_addr(48), dest cid (16), reason(8)
174b3f90e25SMatthias Ringwald #define L2CAP_DECLINE_CONNECTION                           0x25
175b3f90e25SMatthias Ringwald 
176b3f90e25SMatthias Ringwald // create l2cap channel: @param bd_addr(48), psm (16), mtu (16)
177b3f90e25SMatthias Ringwald #define L2CAP_CREATE_CHANNEL_MTU                           0x26
178b3f90e25SMatthias Ringwald 
179b3f90e25SMatthias Ringwald // register SDP Service Record: service record (size)
180b3f90e25SMatthias Ringwald #define SDP_REGISTER_SERVICE_RECORD                        0x30
181b3f90e25SMatthias Ringwald 
182b3f90e25SMatthias Ringwald // unregister SDP Service Record
183b3f90e25SMatthias Ringwald #define SDP_UNREGISTER_SERVICE_RECORD                      0x31
184b3f90e25SMatthias Ringwald 
185b3f90e25SMatthias Ringwald // Get remote RFCOMM services
186b3f90e25SMatthias Ringwald #define SDP_CLIENT_QUERY_RFCOMM_SERVICES                   0x32
187b3f90e25SMatthias Ringwald 
188b3f90e25SMatthias Ringwald // Get remote SDP services
189b3f90e25SMatthias Ringwald #define SDP_CLIENT_QUERY_SERVICES                          0x33
190b3f90e25SMatthias Ringwald 
191b3f90e25SMatthias Ringwald // RFCOMM "HCI" Commands
192b3f90e25SMatthias Ringwald #define RFCOMM_CREATE_CHANNEL       0x40
193b3f90e25SMatthias Ringwald #define RFCOMM_DISCONNECT     0x41
194b3f90e25SMatthias Ringwald #define RFCOMM_REGISTER_SERVICE     0x42
195b3f90e25SMatthias Ringwald #define RFCOMM_UNREGISTER_SERVICE   0x43
196b3f90e25SMatthias Ringwald #define RFCOMM_ACCEPT_CONNECTION    0x44
197b3f90e25SMatthias Ringwald #define RFCOMM_DECLINE_CONNECTION   0x45
198b3f90e25SMatthias Ringwald #define RFCOMM_PERSISTENT_CHANNEL   0x46
199b3f90e25SMatthias Ringwald #define RFCOMM_CREATE_CHANNEL_WITH_CREDITS   0x47
200b3f90e25SMatthias Ringwald #define RFCOMM_REGISTER_SERVICE_WITH_CREDITS 0x48
201b3f90e25SMatthias Ringwald #define RFCOMM_GRANT_CREDITS                 0x49
202b3f90e25SMatthias Ringwald 
203b3f90e25SMatthias Ringwald // GAP Classic 0x50
204b3f90e25SMatthias Ringwald #define GAP_DISCONNECT              0x50
205b3f90e25SMatthias Ringwald 
206b3f90e25SMatthias Ringwald // GAP LE      0x60
207b3f90e25SMatthias Ringwald #define GAP_LE_SCAN_START           0x60
208b3f90e25SMatthias Ringwald #define GAP_LE_SCAN_STOP            0x61
209b3f90e25SMatthias Ringwald #define GAP_LE_CONNECT              0x62
210b3f90e25SMatthias Ringwald #define GAP_LE_CONNECT_CANCEL       0x63
211b3f90e25SMatthias Ringwald #define GAP_LE_SET_SCAN_PARAMETERS  0x64
212b3f90e25SMatthias Ringwald 
213b3f90e25SMatthias Ringwald // GATT (Client) 0x70
214b3f90e25SMatthias Ringwald #define GATT_DISCOVER_ALL_PRIMARY_SERVICES                       0x70
215b3f90e25SMatthias Ringwald #define GATT_DISCOVER_PRIMARY_SERVICES_BY_UUID16                 0x71
216b3f90e25SMatthias Ringwald #define GATT_DISCOVER_PRIMARY_SERVICES_BY_UUID128                0x72
217b3f90e25SMatthias Ringwald #define GATT_FIND_INCLUDED_SERVICES_FOR_SERVICE                  0x73
218b3f90e25SMatthias Ringwald #define GATT_DISCOVER_CHARACTERISTICS_FOR_SERVICE                0x74
219b3f90e25SMatthias Ringwald #define GATT_DISCOVER_CHARACTERISTICS_FOR_SERVICE_BY_UUID128     0x75
220b3f90e25SMatthias Ringwald #define GATT_DISCOVER_CHARACTERISTIC_DESCRIPTORS                 0x76
221b3f90e25SMatthias Ringwald #define GATT_READ_VALUE_OF_CHARACTERISTIC                        0x77
222b3f90e25SMatthias Ringwald #define GATT_READ_LONG_VALUE_OF_CHARACTERISTIC                   0x78
223b3f90e25SMatthias Ringwald #define GATT_WRITE_VALUE_OF_CHARACTERISTIC_WITHOUT_RESPONSE      0x79
224b3f90e25SMatthias Ringwald #define GATT_WRITE_VALUE_OF_CHARACTERISTIC                       0x7A
225b3f90e25SMatthias Ringwald #define GATT_WRITE_LONG_VALUE_OF_CHARACTERISTIC                  0x7B
226b3f90e25SMatthias Ringwald #define GATT_RELIABLE_WRITE_LONG_VALUE_OF_CHARACTERISTIC         0x7C
227b3f90e25SMatthias Ringwald #define GATT_READ_CHARACTERISTIC_DESCRIPTOR                      0X7D
228b3f90e25SMatthias Ringwald #define GATT_READ_LONG_CHARACTERISTIC_DESCRIPTOR                 0X7E
229b3f90e25SMatthias Ringwald #define GATT_WRITE_CHARACTERISTIC_DESCRIPTOR                     0X7F
230b3f90e25SMatthias Ringwald #define GATT_WRITE_LONG_CHARACTERISTIC_DESCRIPTOR                0X80
231b3f90e25SMatthias Ringwald #define GATT_WRITE_CLIENT_CHARACTERISTIC_CONFIGURATION           0X81
232b3f90e25SMatthias Ringwald #define GATT_GET_MTU                                             0x82
233b3f90e25SMatthias Ringwald 
234941b3855SMatthias Ringwald 
235941b3855SMatthias Ringwald // EVENTS
236941b3855SMatthias Ringwald 
237941b3855SMatthias Ringwald /**
238941b3855SMatthias Ringwald  * @format 1
239941b3855SMatthias Ringwald  * @param state
240941b3855SMatthias Ringwald  */
241941b3855SMatthias Ringwald #define BTSTACK_EVENT_STATE                                0x60
242941b3855SMatthias Ringwald 
243941b3855SMatthias Ringwald // data: event(8), len(8), nr hci connections
244941b3855SMatthias Ringwald #define BTSTACK_EVENT_NR_CONNECTIONS_CHANGED               0x61
245941b3855SMatthias Ringwald 
246941b3855SMatthias Ringwald /**
247941b3855SMatthias Ringwald  * @format
248941b3855SMatthias Ringwald  */
249941b3855SMatthias Ringwald #define BTSTACK_EVENT_POWERON_FAILED                       0x62
250941b3855SMatthias Ringwald 
251941b3855SMatthias Ringwald /**
252941b3855SMatthias Ringwald  * @format 112
253941b3855SMatthias Ringwald  * @param major
254941b3855SMatthias Ringwald  * @param minor
255941b3855SMatthias Ringwald  @ @param revision
256941b3855SMatthias Ringwald  */
257941b3855SMatthias Ringwald #define BTSTACK_EVENT_VERSION                              0x63
258941b3855SMatthias Ringwald 
259941b3855SMatthias Ringwald // data: system bluetooth on/off (bool)
260941b3855SMatthias Ringwald #define BTSTACK_EVENT_SYSTEM_BLUETOOTH_ENABLED             0x64
261941b3855SMatthias Ringwald 
262941b3855SMatthias Ringwald // data: event (8), len(8), status (8) == 0, address (48), name (1984 bits = 248 bytes)
263941b3855SMatthias Ringwald #define BTSTACK_EVENT_REMOTE_NAME_CACHED                   0x65
264941b3855SMatthias Ringwald 
265941b3855SMatthias Ringwald // data: discoverable enabled (bool)
266941b3855SMatthias Ringwald #define BTSTACK_EVENT_DISCOVERABLE_ENABLED                 0x66
267941b3855SMatthias Ringwald 
268941b3855SMatthias Ringwald // Daemon Events used internally
269941b3855SMatthias Ringwald 
270941b3855SMatthias Ringwald // data: event(8)
271941b3855SMatthias Ringwald #define DAEMON_EVENT_CONNECTION_OPENED                     0x68
272941b3855SMatthias Ringwald 
273941b3855SMatthias Ringwald // data: event(8)
274941b3855SMatthias Ringwald #define DAEMON_EVENT_CONNECTION_CLOSED                     0x69
275941b3855SMatthias Ringwald 
276941b3855SMatthias Ringwald // data: event(8), nr_connections(8)
277941b3855SMatthias Ringwald #define DAEMON_NR_CONNECTIONS_CHANGED                      0x6A
278941b3855SMatthias Ringwald 
279941b3855SMatthias Ringwald // data: event(8)
280941b3855SMatthias Ringwald #define DAEMON_EVENT_NEW_RFCOMM_CREDITS                    0x6B
281941b3855SMatthias Ringwald 
282941b3855SMatthias Ringwald // data: event(8)
283941b3855SMatthias Ringwald #define DAEMON_EVENT_HCI_PACKET_SENT                       0x6C
284941b3855SMatthias Ringwald 
285941b3855SMatthias Ringwald // L2CAP EVENTS
286941b3855SMatthias Ringwald 
287941b3855SMatthias Ringwald // data: event (8), len(8), status (8), address(48), handle (16), psm (16), local_cid(16), remote_cid (16), local_mtu(16), remote_mtu(16), flush_timeout(16)
288941b3855SMatthias Ringwald #define L2CAP_EVENT_CHANNEL_OPENED                         0x70
289941b3855SMatthias Ringwald 
290941b3855SMatthias Ringwald // data: event (8), len(8), channel (16)
291941b3855SMatthias Ringwald #define L2CAP_EVENT_CHANNEL_CLOSED                         0x71
292941b3855SMatthias Ringwald 
293941b3855SMatthias Ringwald // data: event (8), len(8), address(48), handle (16), psm (16), local_cid(16), remote_cid (16)
294941b3855SMatthias Ringwald #define L2CAP_EVENT_INCOMING_CONNECTION                    0x72
295941b3855SMatthias Ringwald 
296941b3855SMatthias Ringwald // data: event(8), len(8), handle(16)
297941b3855SMatthias Ringwald #define L2CAP_EVENT_TIMEOUT_CHECK                          0x73
298941b3855SMatthias Ringwald 
299941b3855SMatthias Ringwald // data: event(8), len(8), local_cid(16), credits(8)
300941b3855SMatthias Ringwald #define L2CAP_EVENT_CREDITS                                0x74
301941b3855SMatthias Ringwald 
302941b3855SMatthias Ringwald // data: event(8), len(8), status (8), psm (16)
303941b3855SMatthias Ringwald #define L2CAP_EVENT_SERVICE_REGISTERED                     0x75
304941b3855SMatthias Ringwald 
305941b3855SMatthias Ringwald // data: event(8), len(8), handle(16), interval min(16), interval max(16), latency(16), timeout multiplier(16)
306941b3855SMatthias Ringwald #define L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST    0x76
307941b3855SMatthias Ringwald 
308941b3855SMatthias Ringwald // data: event(8), len(8), handle(16), result (16) (0 == ok, 1 == fail)
309941b3855SMatthias Ringwald #define L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE   0x77
310941b3855SMatthias Ringwald 
311941b3855SMatthias Ringwald // RFCOMM EVENTS
312941b3855SMatthias Ringwald /**
313941b3855SMatthias Ringwald  * @format 1B2122
314941b3855SMatthias Ringwald  * @param status
315941b3855SMatthias Ringwald  * @param bd_addr
316941b3855SMatthias Ringwald  * @param con_handle
317941b3855SMatthias Ringwald  * @param server_channel
318941b3855SMatthias Ringwald  * @param rfcomm_cid
319941b3855SMatthias Ringwald  * @param max_frame_size
320941b3855SMatthias Ringwald  */
321941b3855SMatthias Ringwald #define RFCOMM_EVENT_OPEN_CHANNEL_COMPLETE                 0x80
322941b3855SMatthias Ringwald 
323941b3855SMatthias Ringwald /**
324941b3855SMatthias Ringwald  * @format 2
325941b3855SMatthias Ringwald  * @param rfcomm_cid
326941b3855SMatthias Ringwald  */
327941b3855SMatthias Ringwald #define RFCOMM_EVENT_CHANNEL_CLOSED                        0x81
328941b3855SMatthias Ringwald 
329941b3855SMatthias Ringwald /**
330941b3855SMatthias Ringwald  * @format B12
331941b3855SMatthias Ringwald  * @param bd_addr
332941b3855SMatthias Ringwald  * @param server_channel
333941b3855SMatthias Ringwald  * @param rfcomm_cid
334941b3855SMatthias Ringwald  */
335941b3855SMatthias Ringwald #define RFCOMM_EVENT_INCOMING_CONNECTION                   0x82
336941b3855SMatthias Ringwald 
337941b3855SMatthias Ringwald /**
338941b3855SMatthias Ringwald  * @format 21
339941b3855SMatthias Ringwald  * @param rfcomm_cid
340941b3855SMatthias Ringwald  * @param line_status
341941b3855SMatthias Ringwald  */
342941b3855SMatthias Ringwald #define RFCOMM_EVENT_REMOTE_LINE_STATUS                    0x83
343941b3855SMatthias Ringwald 
344941b3855SMatthias Ringwald /**
345941b3855SMatthias Ringwald  * @format 21
346941b3855SMatthias Ringwald  * @param rfcomm_cid
347941b3855SMatthias Ringwald  * @param credits
348941b3855SMatthias Ringwald  */
349941b3855SMatthias Ringwald #define RFCOMM_EVENT_CREDITS                               0x84
350941b3855SMatthias Ringwald 
351941b3855SMatthias Ringwald /**
352941b3855SMatthias Ringwald  * @format 11
353941b3855SMatthias Ringwald  * @param status
354941b3855SMatthias Ringwald  * @param channel_id
355941b3855SMatthias Ringwald  */
356941b3855SMatthias Ringwald #define RFCOMM_EVENT_SERVICE_REGISTERED                    0x85
357941b3855SMatthias Ringwald 
358941b3855SMatthias Ringwald /**
359941b3855SMatthias Ringwald  * @format 11
360941b3855SMatthias Ringwald  * @param status
361941b3855SMatthias Ringwald  * @param server_channel_id
362941b3855SMatthias Ringwald  */
363941b3855SMatthias Ringwald #define RFCOMM_EVENT_PERSISTENT_CHANNEL                    0x86
364941b3855SMatthias Ringwald 
365941b3855SMatthias Ringwald // data: event (8), len(8), rfcomm_cid (16), modem status (8)
366941b3855SMatthias Ringwald 
367941b3855SMatthias Ringwald /**
368941b3855SMatthias Ringwald  * @format 21
369941b3855SMatthias Ringwald  * @param rfcomm_cid
370941b3855SMatthias Ringwald  * @param modem_status
371941b3855SMatthias Ringwald  */
372941b3855SMatthias Ringwald #define RFCOMM_EVENT_REMOTE_MODEM_STATUS                   0x87
373941b3855SMatthias Ringwald 
374941b3855SMatthias Ringwald // data: event (8), len(8), rfcomm_cid (16), rpn_data_t (67)
375941b3855SMatthias Ringwald  /**
376941b3855SMatthias Ringwald   * TODO: format for variable data
377941b3855SMatthias Ringwald   * @param rfcomm_cid
378941b3855SMatthias Ringwald   * @param rpn_data
379941b3855SMatthias Ringwald   */
380941b3855SMatthias Ringwald #define RFCOMM_EVENT_PORT_CONFIGURATION                    0x88
381941b3855SMatthias Ringwald 
382941b3855SMatthias Ringwald 
383941b3855SMatthias Ringwald // data: event(8), len(8), status(8), service_record_handle(32)
384941b3855SMatthias Ringwald  /**
385941b3855SMatthias Ringwald   * @format 14
386941b3855SMatthias Ringwald   * @param status
387941b3855SMatthias Ringwald   * @param service_record_handle
388941b3855SMatthias Ringwald   */
389941b3855SMatthias Ringwald #define SDP_SERVICE_REGISTERED                             0x90
390941b3855SMatthias Ringwald 
391941b3855SMatthias Ringwald // data: event(8), len(8), status(8)
392941b3855SMatthias Ringwald /**
393941b3855SMatthias Ringwald  * @format 1
394941b3855SMatthias Ringwald  * @param status
395941b3855SMatthias Ringwald  */
396941b3855SMatthias Ringwald #define SDP_QUERY_COMPLETE                                 0x91
397941b3855SMatthias Ringwald 
398941b3855SMatthias Ringwald // data: event(8), len(8), rfcomm channel(8), name(var)
399941b3855SMatthias Ringwald /**
400941b3855SMatthias Ringwald  * @format 1T
401941b3855SMatthias Ringwald  * @param rfcomm_channel
402941b3855SMatthias Ringwald  * @param name
403941b3855SMatthias Ringwald  * @brief SDP_QUERY_RFCOMM_SERVICE 0x92
404941b3855SMatthias Ringwald  */
405941b3855SMatthias Ringwald #define SDP_QUERY_RFCOMM_SERVICE                           0x92
406941b3855SMatthias Ringwald 
407941b3855SMatthias Ringwald // data: event(8), len(8), record nr(16), attribute id(16), attribute value(var)
408941b3855SMatthias Ringwald /**
409941b3855SMatthias Ringwald  * TODO: format for variable data
410941b3855SMatthias Ringwald  * @param record_nr
411941b3855SMatthias Ringwald  * @param attribute_id
412941b3855SMatthias Ringwald  * @param attribute_value
413941b3855SMatthias Ringwald  */
414941b3855SMatthias Ringwald #define SDP_QUERY_ATTRIBUTE_VALUE                          0x93
415941b3855SMatthias Ringwald 
416941b3855SMatthias Ringwald // not provided by daemon, only used for internal testing
417941b3855SMatthias Ringwald #define SDP_QUERY_SERVICE_RECORD_HANDLE                    0x94
418941b3855SMatthias Ringwald 
419941b3855SMatthias Ringwald /**
420941b3855SMatthias Ringwald  * @format H1
421941b3855SMatthias Ringwald  * @param handle
422941b3855SMatthias Ringwald  * @param status
423941b3855SMatthias Ringwald  */
424941b3855SMatthias Ringwald #define GATT_QUERY_COMPLETE                                0xA0
425941b3855SMatthias Ringwald 
426941b3855SMatthias Ringwald /**
427941b3855SMatthias Ringwald  * @format HX
428941b3855SMatthias Ringwald  * @param handle
429941b3855SMatthias Ringwald  * @param service
430941b3855SMatthias Ringwald  */
431941b3855SMatthias Ringwald #define GATT_SERVICE_QUERY_RESULT                          0xA1
432941b3855SMatthias Ringwald 
433941b3855SMatthias Ringwald /**
434941b3855SMatthias Ringwald  * @format HY
435941b3855SMatthias Ringwald  * @param handle
436941b3855SMatthias Ringwald  * @param characteristic
437941b3855SMatthias Ringwald  */
438941b3855SMatthias Ringwald #define GATT_CHARACTERISTIC_QUERY_RESULT                   0xA2
439941b3855SMatthias Ringwald 
440941b3855SMatthias Ringwald /**
441941b3855SMatthias Ringwald  * @format H2X
442941b3855SMatthias Ringwald  * @param handle
443941b3855SMatthias Ringwald  * @param include_handle
444941b3855SMatthias Ringwald  * @param service
445941b3855SMatthias Ringwald  */
446941b3855SMatthias Ringwald #define GATT_INCLUDED_SERVICE_QUERY_RESULT                 0xA3
447941b3855SMatthias Ringwald 
448941b3855SMatthias Ringwald /**
449941b3855SMatthias Ringwald  * @format HZ
450941b3855SMatthias Ringwald  * @param handle
451941b3855SMatthias Ringwald  * @param characteristic_descriptor
452941b3855SMatthias Ringwald  */
453941b3855SMatthias Ringwald #define GATT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT   0xA4
454941b3855SMatthias Ringwald 
455941b3855SMatthias Ringwald /**
456941b3855SMatthias Ringwald  * @format H2LV
457941b3855SMatthias Ringwald  * @param handle
458941b3855SMatthias Ringwald  * @param value_handle
459941b3855SMatthias Ringwald  * @param value_length
460941b3855SMatthias Ringwald  * @param value
461941b3855SMatthias Ringwald  */
462941b3855SMatthias Ringwald #define GATT_CHARACTERISTIC_VALUE_QUERY_RESULT             0xA5
463941b3855SMatthias Ringwald 
464941b3855SMatthias Ringwald /**
465941b3855SMatthias Ringwald  * @format H22LV
466941b3855SMatthias Ringwald  * @param handle
467941b3855SMatthias Ringwald  * @param value_handle
468941b3855SMatthias Ringwald  * @param value_offset
469941b3855SMatthias Ringwald  * @param value_length
470941b3855SMatthias Ringwald  * @param value
471941b3855SMatthias Ringwald  */
472941b3855SMatthias Ringwald #define GATT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT        0xA6
473941b3855SMatthias Ringwald 
474941b3855SMatthias Ringwald /**
475941b3855SMatthias Ringwald  * @format H2LV
476941b3855SMatthias Ringwald  * @param handle
477941b3855SMatthias Ringwald  * @param value_handle
478941b3855SMatthias Ringwald  * @param value_length
479941b3855SMatthias Ringwald  * @param value
480941b3855SMatthias Ringwald  */
481941b3855SMatthias Ringwald #define GATT_NOTIFICATION                                  0xA7
482941b3855SMatthias Ringwald 
483941b3855SMatthias Ringwald /**
484941b3855SMatthias Ringwald  * @format H2LV
485941b3855SMatthias Ringwald  * @param handle
486941b3855SMatthias Ringwald  * @param value_handle
487941b3855SMatthias Ringwald  * @param value_length
488941b3855SMatthias Ringwald  * @param value
489941b3855SMatthias Ringwald  */
490941b3855SMatthias Ringwald #define GATT_INDICATION                                    0xA8
491941b3855SMatthias Ringwald 
492941b3855SMatthias Ringwald /**
493941b3855SMatthias Ringwald  * @format H2LV
494941b3855SMatthias Ringwald  * @param descriptor_handle
495941b3855SMatthias Ringwald  * @param descriptor_length
496941b3855SMatthias Ringwald  * @param descriptor
497941b3855SMatthias Ringwald  */
498941b3855SMatthias Ringwald #define GATT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT        0xA9
499941b3855SMatthias Ringwald 
500941b3855SMatthias Ringwald /**
501941b3855SMatthias Ringwald  * @format H2LV
502941b3855SMatthias Ringwald  * @param handle
503941b3855SMatthias Ringwald  * @param descriptor_offset
504941b3855SMatthias Ringwald  * @param descriptor_length
505941b3855SMatthias Ringwald  * @param descriptor
506941b3855SMatthias Ringwald  */
507941b3855SMatthias Ringwald #define GATT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT   0xAA
508941b3855SMatthias Ringwald 
509941b3855SMatthias Ringwald /**
510941b3855SMatthias Ringwald  * @format H2
511941b3855SMatthias Ringwald  * @param handle
512941b3855SMatthias Ringwald  * @param MTU
513941b3855SMatthias Ringwald  */
514941b3855SMatthias Ringwald #define GATT_MTU                                           0xAB
515941b3855SMatthias Ringwald 
516941b3855SMatthias Ringwald /**
517941b3855SMatthias Ringwald  * @format H2
518941b3855SMatthias Ringwald  * @param handle
519941b3855SMatthias Ringwald  * @param MTU
520941b3855SMatthias Ringwald  */
521941b3855SMatthias Ringwald #define ATT_MTU_EXCHANGE_COMPLETE                          0xB5
522941b3855SMatthias Ringwald 
523941b3855SMatthias Ringwald // data: event(8), len(8), status (8), hci_handle (16), attribute_handle (16)
524941b3855SMatthias Ringwald #define ATT_HANDLE_VALUE_INDICATION_COMPLETE               0xB6
525941b3855SMatthias Ringwald 
526941b3855SMatthias Ringwald 
527941b3855SMatthias Ringwald // data: event(8), len(8), status (8), bnep service uuid (16)
528941b3855SMatthias Ringwald #define BNEP_EVENT_SERVICE_REGISTERED                      0xC0
529941b3855SMatthias Ringwald 
530941b3855SMatthias Ringwald // data: event(8), len(8), status (8), bnep source uuid (16), bnep destination uuid (16), mtu (16), remote_address (48)
531941b3855SMatthias Ringwald #define BNEP_EVENT_OPEN_CHANNEL_COMPLETE                   0xC1
532941b3855SMatthias Ringwald 
533941b3855SMatthias Ringwald // data: event(8), len(8), bnep source uuid (16), bnep destination uuid (16), remote_address (48)
534941b3855SMatthias Ringwald #define BNEP_EVENT_CHANNEL_CLOSED                          0xC2
535941b3855SMatthias Ringwald 
536941b3855SMatthias Ringwald // data: event(8), len(8), bnep source uuid (16), bnep destination uuid (16), remote_address (48), channel state (8)
537941b3855SMatthias Ringwald #define BNEP_EVENT_CHANNEL_TIMEOUT                         0xC3
538941b3855SMatthias Ringwald 
539941b3855SMatthias Ringwald // data: event(8), len(8)
540941b3855SMatthias Ringwald #define BNEP_EVENT_READY_TO_SEND                           0xC4
541941b3855SMatthias Ringwald 
542941b3855SMatthias Ringwald  /**
543941b3855SMatthias Ringwald   * @format H1B
544941b3855SMatthias Ringwald   * @param handle
545941b3855SMatthias Ringwald   * @param addr_type
546941b3855SMatthias Ringwald   * @param address
547941b3855SMatthias Ringwald   */
548941b3855SMatthias Ringwald #define SM_JUST_WORKS_REQUEST                              0xD0
549941b3855SMatthias Ringwald 
550941b3855SMatthias Ringwald  /**
551941b3855SMatthias Ringwald   * @format H1B
552941b3855SMatthias Ringwald   * @param handle
553941b3855SMatthias Ringwald   * @param addr_type
554941b3855SMatthias Ringwald   * @param address
555941b3855SMatthias Ringwald   */
556941b3855SMatthias Ringwald #define SM_JUST_WORKS_CANCEL                               0xD1
557941b3855SMatthias Ringwald 
558941b3855SMatthias Ringwald  /**
559941b3855SMatthias Ringwald   * @format H1B4
560941b3855SMatthias Ringwald   * @param handle
561941b3855SMatthias Ringwald   * @param addr_type
562941b3855SMatthias Ringwald   * @param address
563941b3855SMatthias Ringwald   * @param passkey
564941b3855SMatthias Ringwald   */
565941b3855SMatthias Ringwald #define SM_PASSKEY_DISPLAY_NUMBER                          0xD2
566941b3855SMatthias Ringwald 
567941b3855SMatthias Ringwald  /**
568941b3855SMatthias Ringwald   * @format H1B
569941b3855SMatthias Ringwald   * @param handle
570941b3855SMatthias Ringwald   * @param addr_type
571941b3855SMatthias Ringwald   * @param address
572941b3855SMatthias Ringwald   */
573941b3855SMatthias Ringwald #define SM_PASSKEY_DISPLAY_CANCEL                          0xD3
574941b3855SMatthias Ringwald 
575941b3855SMatthias Ringwald  /**
576941b3855SMatthias Ringwald   * @format H1B421
577941b3855SMatthias Ringwald   * @param handle
578941b3855SMatthias Ringwald   * @param addr_type
579941b3855SMatthias Ringwald   * @param address
580941b3855SMatthias Ringwald   */
581941b3855SMatthias Ringwald #define SM_PASSKEY_INPUT_NUMBER                            0xD4
582941b3855SMatthias Ringwald 
583941b3855SMatthias Ringwald  /**
584941b3855SMatthias Ringwald   * @format H1B
585941b3855SMatthias Ringwald   * @param handle
586941b3855SMatthias Ringwald   * @param addr_type
587941b3855SMatthias Ringwald   * @param address
588941b3855SMatthias Ringwald   */
589941b3855SMatthias Ringwald #define SM_PASSKEY_INPUT_CANCEL                            0xD5
590941b3855SMatthias Ringwald 
591941b3855SMatthias Ringwald  /**
592941b3855SMatthias Ringwald   * @format H1B
593941b3855SMatthias Ringwald   * @param handle
594941b3855SMatthias Ringwald   * @param addr_type
595941b3855SMatthias Ringwald   * @param address
596941b3855SMatthias Ringwald   */
597941b3855SMatthias Ringwald #define SM_IDENTITY_RESOLVING_STARTED                      0xD6
598941b3855SMatthias Ringwald 
599941b3855SMatthias Ringwald  /**
600941b3855SMatthias Ringwald   * @format H1B
601941b3855SMatthias Ringwald   * @param handle
602941b3855SMatthias Ringwald   * @param addr_type
603941b3855SMatthias Ringwald   * @param address
604941b3855SMatthias Ringwald   */
605941b3855SMatthias Ringwald #define SM_IDENTITY_RESOLVING_FAILED                       0xD7
606941b3855SMatthias Ringwald 
607941b3855SMatthias Ringwald  /**
608941b3855SMatthias Ringwald   * @format H1B2
609941b3855SMatthias Ringwald   * @param handle
610941b3855SMatthias Ringwald   * @param addr_type
611941b3855SMatthias Ringwald   * @param address
612941b3855SMatthias Ringwald   * @param le_device_db_index
613941b3855SMatthias Ringwald   */
614941b3855SMatthias Ringwald #define SM_IDENTITY_RESOLVING_SUCCEEDED                    0xD8
615941b3855SMatthias Ringwald 
616941b3855SMatthias Ringwald  /**
617941b3855SMatthias Ringwald   * @format H1B
618941b3855SMatthias Ringwald   * @param handle
619941b3855SMatthias Ringwald   * @param addr_type
620941b3855SMatthias Ringwald   * @param address
621941b3855SMatthias Ringwald   */
622941b3855SMatthias Ringwald #define SM_AUTHORIZATION_REQUEST                           0xD9
623941b3855SMatthias Ringwald 
624941b3855SMatthias Ringwald  /**
625941b3855SMatthias Ringwald   * @format H1B1
626941b3855SMatthias Ringwald   * @param handle
627941b3855SMatthias Ringwald   * @param addr_type
628941b3855SMatthias Ringwald   * @param address
629941b3855SMatthias Ringwald   * @param authorization_result
630941b3855SMatthias Ringwald   */
631941b3855SMatthias Ringwald #define SM_AUTHORIZATION_RESULT                            0xDA
632941b3855SMatthias Ringwald 
633941b3855SMatthias Ringwald // GAP
634941b3855SMatthias Ringwald 
635941b3855SMatthias Ringwald // data: event(8), len(8), hci_handle (16), security_level (8)
636941b3855SMatthias Ringwald #define GAP_SECURITY_LEVEL                                 0xE0
637941b3855SMatthias Ringwald 
638941b3855SMatthias Ringwald // data: event(8), len(8), status (8), bd_addr(48)
639941b3855SMatthias Ringwald #define GAP_DEDICATED_BONDING_COMPLETED                    0xE1
640941b3855SMatthias Ringwald 
641941b3855SMatthias Ringwald /**
642941b3855SMatthias Ringwald  * @format 11B1JV
643941b3855SMatthias Ringwald  * @param advertising_event_type
644941b3855SMatthias Ringwald  * @param address_type
645941b3855SMatthias Ringwald  * @param address
646941b3855SMatthias Ringwald  * @param rssi
647941b3855SMatthias Ringwald  * @param data_length
648941b3855SMatthias Ringwald  * @param data
649941b3855SMatthias Ringwald  */
650941b3855SMatthias Ringwald #define GAP_LE_ADVERTISING_REPORT                          0xE2
651941b3855SMatthias Ringwald 
652941b3855SMatthias Ringwald #define HCI_EVENT_HSP_META                                 0xE8
653941b3855SMatthias Ringwald 
654941b3855SMatthias Ringwald #define HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE             0x01
655941b3855SMatthias Ringwald #define HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE          0x02
656941b3855SMatthias Ringwald #define HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED               0x03
657941b3855SMatthias Ringwald #define HSP_SUBEVENT_SPEAKER_GAIN_CHANGED                  0x04
658941b3855SMatthias Ringwald #define HSP_SUBEVENT_HS_COMMAND                            0x05
659941b3855SMatthias Ringwald #define HSP_SUBEVENT_AG_INDICATION                         0x06
660941b3855SMatthias Ringwald #define HSP_SUBEVENT_ERROR                                 0x07
661941b3855SMatthias Ringwald #define HSP_SUBEVENT_RING                                  0x08
662941b3855SMatthias Ringwald 
663941b3855SMatthias Ringwald #define HCI_EVENT_HFP_META                                 0xE9
664941b3855SMatthias Ringwald 
665941b3855SMatthias Ringwald #define HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED  0x01
666941b3855SMatthias Ringwald #define HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED     0x02
667941b3855SMatthias Ringwald #define HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED          0x03
668941b3855SMatthias Ringwald #define HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED             0x04
669941b3855SMatthias Ringwald #define HFP_SUBEVENT_COMPLETE                              0x05
670941b3855SMatthias Ringwald #define HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED           0x06
671941b3855SMatthias Ringwald #define HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED              0x07
672941b3855SMatthias Ringwald #define HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR          0x08
673941b3855SMatthias Ringwald #define HFP_SUBEVENT_CODECS_CONNECTION_COMPLETE            0x09
674941b3855SMatthias Ringwald #define HFP_SUBEVENT_AUDIO_CONNECTION_COMPLETE             0x0A
675941b3855SMatthias Ringwald 
676941b3855SMatthias Ringwald // ANCS Client
677941b3855SMatthias Ringwald #define ANCS_CLIENT_CONNECTED                              0xF0
678941b3855SMatthias Ringwald #define ANCS_CLIENT_NOTIFICATION                           0xF1
679941b3855SMatthias Ringwald #define ANCS_CLIENT_DISCONNECTED                           0xF2
680941b3855SMatthias Ringwald 
681941b3855SMatthias Ringwald // #define HCI_EVENT_HFP_META                                 0xxx
682941b3855SMatthias Ringwald // #define HCI_EVENT_GATT_META                                0xxx
683941b3855SMatthias Ringwald // #define HCI_EVENT_SDP_META                                 0xxx
684941b3855SMatthias Ringwald // #define HCI_EVENT_ANCS_META                                0xxx
685941b3855SMatthias Ringwald // #define HCI_EVENT_SM_META                                  0xxx
686941b3855SMatthias Ringwald // #define HCI_EVENT_GAP_META                                 0xxx
687941b3855SMatthias Ringwald // #define HCI_EVENT_BNEP_META                                0xxx
688941b3855SMatthias Ringwald // #define HCI_EVENT_PAN_META                                 0xxx
689941b3855SMatthias Ringwald 
690941b3855SMatthias Ringwald #endif
691