Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
hci_types.h
Go to the documentation of this file.
1/* hci.h - Bluetooth Host Control Interface types */
2
3/*
4 * Copyright (c) 2015-2016 Intel Corporation
5 * Copyright (c) 2023 Nordic Semiconductor ASA
6 *
7 * SPDX-License-Identifier: Apache-2.0
8 */
9#ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_TYPES_H_
10#define ZEPHYR_INCLUDE_BLUETOOTH_HCI_TYPES_H_
11
12#include <stdbool.h>
13#include <stdint.h>
14#include <string.h>
15
16#include <zephyr/toolchain.h>
17#include <zephyr/types.h>
18#include <zephyr/sys/util.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25/* Bluetooth spec v5.4 Vol 4, Part A Table 2.1: HCI packet indicators
26 * The following definitions are intended for use with the UART Transport Layer and
27 * may be reused with other transport layers if desired.
28 */
29#define BT_HCI_H4_NONE 0x00 /* None of the known packet types */
30#define BT_HCI_H4_CMD 0x01 /* HCI Command packet */
31#define BT_HCI_H4_ACL 0x02 /* HCI ACL Data packet */
32#define BT_HCI_H4_SCO 0x03 /* HCI Synchronous Data packet */
33#define BT_HCI_H4_EVT 0x04 /* HCI Event packet */
34#define BT_HCI_H4_ISO 0x05 /* HCI ISO Data packet */
35
36#define BT_HCI_OWN_ADDR_PUBLIC 0x00
37#define BT_HCI_OWN_ADDR_RANDOM 0x01
38#define BT_HCI_OWN_ADDR_RPA_OR_PUBLIC 0x02
39#define BT_HCI_OWN_ADDR_RPA_OR_RANDOM 0x03
40#define BT_HCI_OWN_ADDR_RPA_MASK 0x02
41
42#define BT_HCI_PEER_ADDR_RPA_UNRESOLVED 0xfe
43#define BT_HCI_PEER_ADDR_ANONYMOUS 0xff
44
45#define BT_ENC_KEY_SIZE_MIN 0x07
46#define BT_ENC_KEY_SIZE_MAX 0x10
47
48#define BT_HCI_ADV_HANDLE_INVALID 0xff
49#define BT_HCI_SYNC_HANDLE_INVALID 0xffff
50#define BT_HCI_PAWR_SUBEVENT_MAX 128
51
52/* Bluetooth spec v5.4 Vol 4, Part E - 5.4.3 HCI Synchronous Data Packets */
54 uint16_t handle; /* 12 bit handle, 2 bit Packet Status Flag, 1 bit RFU */
56} __packed;
57#define BT_HCI_SCO_HDR_SIZE 3
58
59/* Bluetooth spec v5.4 Vol 4, Part E - 5.4.4 HCI Event Packet */
63} __packed;
64#define BT_HCI_EVT_HDR_SIZE 2
65
66#define BT_ACL_START_NO_FLUSH 0x00
67#define BT_ACL_CONT 0x01
68#define BT_ACL_START 0x02
69#define BT_ACL_COMPLETE 0x03
70
71#define BT_ACL_POINT_TO_POINT 0x00
72#define BT_ACL_BROADCAST 0x01
73
74#define BT_ACL_HANDLE_MASK BIT_MASK(12)
75
76#define bt_acl_handle(h) ((h) & BT_ACL_HANDLE_MASK)
77#define bt_acl_flags(h) ((h) >> 12)
78#define bt_acl_flags_pb(f) ((f) & BIT_MASK(2))
79#define bt_acl_flags_bc(f) ((f) >> 2)
80#define bt_acl_handle_pack(h, f) ((h) | ((f) << 12))
81
82/* Bluetooth spec v5.4 Vol 4, Part E - 5.4.2 ACL Data Packets */
87#define BT_HCI_ACL_HDR_SIZE 4
88
89#define BT_ISO_START 0x00
90#define BT_ISO_CONT 0x01
91#define BT_ISO_SINGLE 0x02
92#define BT_ISO_END 0x03
93
94#define bt_iso_handle(h) ((h) & 0x0fff)
95#define bt_iso_flags(h) ((h) >> 12)
96#define bt_iso_flags_pb(f) ((f) & 0x0003)
97#define bt_iso_flags_ts(f) (((f) >> 2) & 0x0001)
98#define bt_iso_pack_flags(pb, ts) \
99 (((pb) & 0x0003) | (((ts) & 0x0001) << 2))
100#define bt_iso_handle_pack(h, pb, ts) \
101 ((h) | (bt_iso_pack_flags(pb, ts) << 12))
102#define bt_iso_hdr_len(h) ((h) & BIT_MASK(14))
103
104#define BT_ISO_DATA_VALID 0x00
105#define BT_ISO_DATA_INVALID 0x01
106#define BT_ISO_DATA_NOP 0x02
107
108#define bt_iso_pkt_len(h) ((h) & BIT_MASK(12))
109#define bt_iso_pkt_flags(h) ((h) >> 14)
110#define bt_iso_pkt_len_pack(h, f) (((h) & BIT_MASK(12)) | ((f) << 14))
111
114 uint16_t slen; /* 12 bit len, 2 bit RFU, 2 bit packet status */
115} __packed;
116#define BT_HCI_ISO_SDU_HDR_SIZE 4
117
122#define BT_HCI_ISO_SDU_TS_HDR_SIZE 8
123
124/* Bluetooth spec v5.4 Vol 4, Part E - 5.4.5 HCI ISO Data Packets */
126 uint16_t handle; /* 12 bit handle, 2 bit PB flags, 1 bit TS_Flag, 1 bit RFU */
127 uint16_t len; /* 14 bits, 2 bits RFU */
128} __packed;
129#define BT_HCI_ISO_HDR_SIZE 4
130
131/* Bluetooth spec v5.4 Vol 4, Part E - 5.4.1 HCI Command Packet */
136#define BT_HCI_CMD_HDR_SIZE 3
137
138/* Supported Commands */
139#define BT_CMD_TEST(cmd, octet, bit) (cmd[octet] & BIT(bit))
140#define BT_CMD_LE_STATES(cmd) BT_CMD_TEST(cmd, 28, 3)
141
142#define BT_FEAT_TEST(feat, page, octet, bit) (feat[page][octet] & BIT(bit))
143
144#define BT_FEAT_BREDR(feat) !BT_FEAT_TEST(feat, 0, 4, 5)
145#define BT_FEAT_LE(feat) BT_FEAT_TEST(feat, 0, 4, 6)
146#define BT_FEAT_EXT_FEATURES(feat) BT_FEAT_TEST(feat, 0, 7, 7)
147#define BT_FEAT_HOST_SSP(feat) BT_FEAT_TEST(feat, 1, 0, 0)
148#define BT_FEAT_SC(feat) BT_FEAT_TEST(feat, 2, 1, 0)
149
150#define BT_FEAT_LMP_SCO_CAPABLE(feat) BT_FEAT_TEST(feat, 0, 1, 3)
151#define BT_FEAT_LMP_ESCO_CAPABLE(feat) BT_FEAT_TEST(feat, 0, 3, 7)
152#define BT_FEAT_HV2_PKT(feat) BT_FEAT_TEST(feat, 0, 1, 4)
153#define BT_FEAT_HV3_PKT(feat) BT_FEAT_TEST(feat, 0, 1, 5)
154#define BT_FEAT_EV4_PKT(feat) BT_FEAT_TEST(feat, 0, 4, 0)
155#define BT_FEAT_EV5_PKT(feat) BT_FEAT_TEST(feat, 0, 4, 1)
156#define BT_FEAT_2EV3_PKT(feat) BT_FEAT_TEST(feat, 0, 5, 5)
157#define BT_FEAT_3EV3_PKT(feat) BT_FEAT_TEST(feat, 0, 5, 6)
158#define BT_FEAT_3SLOT_PKT(feat) BT_FEAT_TEST(feat, 0, 5, 7)
159
160/* LE features */
161#define BT_LE_FEAT_BIT_ENC 0
162#define BT_LE_FEAT_BIT_CONN_PARAM_REQ 1
163#define BT_LE_FEAT_BIT_EXT_REJ_IND 2
164#define BT_LE_FEAT_BIT_PER_INIT_FEAT_XCHG 3
165#define BT_LE_FEAT_BIT_PING 4
166#define BT_LE_FEAT_BIT_DLE 5
167#define BT_LE_FEAT_BIT_PRIVACY 6
168#define BT_LE_FEAT_BIT_EXT_SCAN 7
169#define BT_LE_FEAT_BIT_PHY_2M 8
170#define BT_LE_FEAT_BIT_SMI_TX 9
171#define BT_LE_FEAT_BIT_SMI_RX 10
172#define BT_LE_FEAT_BIT_PHY_CODED 11
173#define BT_LE_FEAT_BIT_EXT_ADV 12
174#define BT_LE_FEAT_BIT_PER_ADV 13
175#define BT_LE_FEAT_BIT_CHAN_SEL_ALGO_2 14
176#define BT_LE_FEAT_BIT_PWR_CLASS_1 15
177#define BT_LE_FEAT_BIT_MIN_USED_CHAN_PROC 16
178#define BT_LE_FEAT_BIT_CONN_CTE_REQ 17
179#define BT_LE_FEAT_BIT_CONN_CTE_RESP 18
180#define BT_LE_FEAT_BIT_CONNECTIONLESS_CTE_TX 19
181#define BT_LE_FEAT_BIT_CONNECTIONLESS_CTE_RX 20
182#define BT_LE_FEAT_BIT_ANT_SWITCH_TX_AOD 21
183#define BT_LE_FEAT_BIT_ANT_SWITCH_RX_AOA 22
184#define BT_LE_FEAT_BIT_RX_CTE 23
185#define BT_LE_FEAT_BIT_PAST_SEND 24
186#define BT_LE_FEAT_BIT_PAST_RECV 25
187#define BT_LE_FEAT_BIT_SCA_UPDATE 26
188#define BT_LE_FEAT_BIT_REMOTE_PUB_KEY_VALIDATE 27
189#define BT_LE_FEAT_BIT_CIS_CENTRAL 28
190#define BT_LE_FEAT_BIT_CIS_PERIPHERAL 29
191#define BT_LE_FEAT_BIT_ISO_BROADCASTER 30
192#define BT_LE_FEAT_BIT_SYNC_RECEIVER 31
193#define BT_LE_FEAT_BIT_ISO_CHANNELS 32
194#define BT_LE_FEAT_BIT_PWR_CTRL_REQ 33
195#define BT_LE_FEAT_BIT_PWR_CHG_IND 34
196#define BT_LE_FEAT_BIT_PATH_LOSS_MONITOR 35
197#define BT_LE_FEAT_BIT_PER_ADV_ADI_SUPP 36
198#define BT_LE_FEAT_BIT_CONN_SUBRATING 37
199#define BT_LE_FEAT_BIT_CONN_SUBRATING_HOST_SUPP 38
200#define BT_LE_FEAT_BIT_CHANNEL_CLASSIFICATION 39
201
202#define BT_LE_FEAT_BIT_PAWR_ADVERTISER 43
203#define BT_LE_FEAT_BIT_PAWR_SCANNER 44
204
205#define BT_LE_FEAT_BIT_CHANNEL_SOUNDING 46
206#define BT_LE_FEAT_BIT_CHANNEL_SOUNDING_HOST 47
207
208#define BT_LE_FEAT_TEST(feat, n) (feat[(n) >> 3] & \
209 BIT((n) & 7))
210
211#define BT_FEAT_LE_ENCR(feat) BT_LE_FEAT_TEST(feat, \
212 BT_LE_FEAT_BIT_ENC)
213#define BT_FEAT_LE_CONN_PARAM_REQ_PROC(feat) BT_LE_FEAT_TEST(feat, \
214 BT_LE_FEAT_BIT_CONN_PARAM_REQ)
215#define BT_FEAT_LE_PER_INIT_FEAT_XCHG(feat) BT_LE_FEAT_TEST(feat, \
216 BT_LE_FEAT_BIT_PER_INIT_FEAT_XCHG)
217#define BT_FEAT_LE_DLE(feat) BT_LE_FEAT_TEST(feat, \
218 BT_LE_FEAT_BIT_DLE)
219#define BT_FEAT_LE_PHY_2M(feat) BT_LE_FEAT_TEST(feat, \
220 BT_LE_FEAT_BIT_PHY_2M)
221#define BT_FEAT_LE_PHY_CODED(feat) BT_LE_FEAT_TEST(feat, \
222 BT_LE_FEAT_BIT_PHY_CODED)
223#define BT_FEAT_LE_PRIVACY(feat) BT_LE_FEAT_TEST(feat, \
224 BT_LE_FEAT_BIT_PRIVACY)
225#define BT_FEAT_LE_EXT_ADV(feat) BT_LE_FEAT_TEST(feat, \
226 BT_LE_FEAT_BIT_EXT_ADV)
227#define BT_FEAT_LE_EXT_PER_ADV(feat) BT_LE_FEAT_TEST(feat, \
228 BT_LE_FEAT_BIT_PER_ADV)
229#define BT_FEAT_LE_CONNECTION_CTE_REQ(feat) BT_LE_FEAT_TEST(feat, \
230 BT_LE_FEAT_BIT_CONN_CTE_REQ)
231#define BT_FEAT_LE_CONNECTION_CTE_RESP(feat) BT_LE_FEAT_TEST(feat, \
232 BT_LE_FEAT_BIT_CONN_CTE_RESP)
233#define BT_FEAT_LE_CONNECTIONLESS_CTE_TX(feat) BT_LE_FEAT_TEST(feat, \
234 BT_LE_FEAT_BIT_CONNECTIONLESS_CTE_TX)
235#define BT_FEAT_LE_CONNECTIONLESS_CTE_RX(feat) BT_LE_FEAT_TEST(feat, \
236 BT_LE_FEAT_BIT_CONNECTIONLESS_CTE_RX)
237#define BT_FEAT_LE_ANT_SWITCH_TX_AOD(feat) BT_LE_FEAT_TEST(feat, \
238 BT_LE_FEAT_BIT_ANT_SWITCH_TX_AOD)
239#define BT_FEAT_LE_ANT_SWITCH_RX_AOA(feat) BT_LE_FEAT_TEST(feat, \
240 BT_LE_FEAT_BIT_ANT_SWITCH_RX_AOA)
241#define BT_FEAT_LE_RX_CTE(feat) BT_LE_FEAT_TEST(feat, \
242 BT_LE_FEAT_BIT_RX_CTE)
243#define BT_FEAT_LE_PAST_SEND(feat) BT_LE_FEAT_TEST(feat, \
244 BT_LE_FEAT_BIT_PAST_SEND)
245#define BT_FEAT_LE_PAST_RECV(feat) BT_LE_FEAT_TEST(feat, \
246 BT_LE_FEAT_BIT_PAST_RECV)
247#define BT_FEAT_LE_CIS_CENTRAL(feat) BT_LE_FEAT_TEST(feat, \
248 BT_LE_FEAT_BIT_CIS_CENTRAL)
249#define BT_FEAT_LE_CIS_PERIPHERAL(feat) BT_LE_FEAT_TEST(feat, \
250 BT_LE_FEAT_BIT_CIS_PERIPHERAL)
251#define BT_FEAT_LE_ISO_BROADCASTER(feat) BT_LE_FEAT_TEST(feat, \
252 BT_LE_FEAT_BIT_ISO_BROADCASTER)
253#define BT_FEAT_LE_SYNC_RECEIVER(feat) BT_LE_FEAT_TEST(feat, \
254 BT_LE_FEAT_BIT_SYNC_RECEIVER)
255#define BT_FEAT_LE_ISO_CHANNELS(feat) BT_LE_FEAT_TEST(feat, \
256 BT_LE_FEAT_BIT_ISO_CHANNELS)
257#define BT_FEAT_LE_PWR_CTRL_REQ(feat) BT_LE_FEAT_TEST(feat, \
258 BT_LE_FEAT_BIT_PWR_CTRL_REQ)
259#define BT_FEAT_LE_PWR_CHG_IND(feat) BT_LE_FEAT_TEST(feat, \
260 BT_LE_FEAT_BIT_PWR_CHG_IND)
261#define BT_FEAT_LE_PATH_LOSS_MONITOR(feat) BT_LE_FEAT_TEST(feat, \
262 BT_LE_FEAT_BIT_PATH_LOSS_MONITOR)
263#define BT_FEAT_LE_PER_ADV_ADI_SUPP(feat) BT_LE_FEAT_TEST(feat, \
264 BT_LE_FEAT_BIT_PER_ADV_ADI_SUPP)
265#define BT_FEAT_LE_CONN_SUBRATING(feat) BT_LE_FEAT_TEST(feat, \
266 BT_LE_FEAT_BIT_CONN_SUBRATING)
267#define BT_FEAT_LE_CONN_SUBRATING_HOST_SUPP(feat) BT_LE_FEAT_TEST(feat, \
268 BT_LE_FEAT_BIT_CONN_SUBRATING_HOST_SUPP)
269#define BT_FEAT_LE_CHANNEL_CLASSIFICATION(feat) BT_LE_FEAT_TEST(feat, \
270 BT_LE_FEAT_BIT_CHANNEL_CLASSIFICATION)
271#define BT_FEAT_LE_PAWR_ADVERTISER(feat) BT_LE_FEAT_TEST(feat, \
272 BT_LE_FEAT_BIT_PAWR_ADVERTISER)
273#define BT_FEAT_LE_PAWR_SCANNER(feat) BT_LE_FEAT_TEST(feat, \
274 BT_LE_FEAT_BIT_PAWR_SCANNER)
275#define BT_FEAT_LE_CHANNEL_SOUNDING(feat) BT_LE_FEAT_TEST(feat, \
276 BT_LE_FEAT_BIT_CHANNEL_SOUNDING)
277#define BT_FEAT_LE_CHANNEL_SOUNDING_HOST(feat) BT_LE_FEAT_TEST(feat, \
278 BT_LE_FEAT_BIT_CHANNEL_SOUNDING_HOST)
279
280#define BT_FEAT_LE_CIS(feat) (BT_FEAT_LE_CIS_CENTRAL(feat) | \
281 BT_FEAT_LE_CIS_PERIPHERAL(feat))
282#define BT_FEAT_LE_BIS(feat) (BT_FEAT_LE_ISO_BROADCASTER(feat) | \
283 BT_FEAT_LE_SYNC_RECEIVER(feat))
284#define BT_FEAT_LE_ISO(feat) (BT_FEAT_LE_CIS(feat) | \
285 BT_FEAT_LE_BIS(feat))
286
287/* LE States. See Core_v5.4, Vol 4, Part E, Section 7.8.27 */
288#define BT_LE_STATES_PER_CONN_ADV(states) (states & BIT64_MASK(38))
289
290#if defined(CONFIG_BT_SCAN_AND_INITIATE_IN_PARALLEL)
291/* Both passive and active scanner can be run in parallel with initiator. */
292#define BT_LE_STATES_SCAN_INIT(states) ((states) & BIT64_MASK(22) && \
293 (states) & BIT64_MASK(23))
294
295#else
296#define BT_LE_STATES_SCAN_INIT(states) 0
297#endif
298
299/* Bonding/authentication types */
300#define BT_HCI_NO_BONDING 0x00
301#define BT_HCI_NO_BONDING_MITM 0x01
302#define BT_HCI_DEDICATED_BONDING 0x02
303#define BT_HCI_DEDICATED_BONDING_MITM 0x03
304#define BT_HCI_GENERAL_BONDING 0x04
305#define BT_HCI_GENERAL_BONDING_MITM 0x05
306
307/*
308 * MITM protection is enabled in SSP authentication requirements octet when
309 * LSB bit is set.
310 */
311#define BT_MITM 0x01
312
313/* I/O capabilities */
314#define BT_IO_DISPLAY_ONLY 0x00
315#define BT_IO_DISPLAY_YESNO 0x01
316#define BT_IO_KEYBOARD_ONLY 0x02
317#define BT_IO_NO_INPUT_OUTPUT 0x03
318
319/* SCO packet types */
320#define HCI_PKT_TYPE_HV1 0x0020
321#define HCI_PKT_TYPE_HV2 0x0040
322#define HCI_PKT_TYPE_HV3 0x0080
323
324/* eSCO packet types */
325#define HCI_PKT_TYPE_SCO_HV1 0x0001
326#define HCI_PKT_TYPE_SCO_HV2 0x0002
327#define HCI_PKT_TYPE_SCO_HV3 0x0004
328#define HCI_PKT_TYPE_ESCO_EV3 0x0008
329#define HCI_PKT_TYPE_ESCO_EV4 0x0010
330#define HCI_PKT_TYPE_ESCO_EV5 0x0020
331#define HCI_PKT_TYPE_ESCO_2EV3 0x0040
332#define HCI_PKT_TYPE_ESCO_3EV3 0x0080
333#define HCI_PKT_TYPE_ESCO_2EV5 0x0100
334#define HCI_PKT_TYPE_ESCO_3EV5 0x0200
335
336
337#define ESCO_PKT_MASK (HCI_PKT_TYPE_SCO_HV1 | \
338 HCI_PKT_TYPE_SCO_HV2 | \
339 HCI_PKT_TYPE_SCO_HV3 | \
340 HCI_PKT_TYPE_ESCO_EV3 | \
341 HCI_PKT_TYPE_ESCO_EV4 | \
342 HCI_PKT_TYPE_ESCO_EV5)
343#define SCO_PKT_MASK (HCI_PKT_TYPE_SCO_HV1 | \
344 HCI_PKT_TYPE_SCO_HV2 | \
345 HCI_PKT_TYPE_SCO_HV3)
346#define EDR_ESCO_PKT_MASK (HCI_PKT_TYPE_ESCO_2EV3 | \
347 HCI_PKT_TYPE_ESCO_3EV3 | \
348 HCI_PKT_TYPE_ESCO_2EV5 | \
349 HCI_PKT_TYPE_ESCO_3EV5)
350
351/* HCI BR/EDR link types */
352#define BT_HCI_SCO 0x00
353#define BT_HCI_ACL 0x01
354#define BT_HCI_ESCO 0x02
355
356/* OpCode Group Fields */
357#define BT_OGF_LINK_CTRL 0x01
358#define BT_OGF_BASEBAND 0x03
359#define BT_OGF_INFO 0x04
360#define BT_OGF_STATUS 0x05
361#define BT_OGF_LE 0x08
362#define BT_OGF_VS 0x3f
363
364/* Construct OpCode from OGF and OCF */
365#define BT_OP(ogf, ocf) ((ocf) | ((ogf) << 10))
366
367/* Invalid opcode */
368#define BT_OP_NOP 0x0000
369
370/* Obtain OGF from OpCode */
371#define BT_OGF(opcode) (((opcode) >> 10) & BIT_MASK(6))
372/* Obtain OCF from OpCode */
373#define BT_OCF(opcode) ((opcode) & BIT_MASK(10))
374
375#define BT_HCI_OP_INQUIRY BT_OP(BT_OGF_LINK_CTRL, 0x0001) /* 0x0401 */
381
382#define BT_HCI_OP_INQUIRY_CANCEL BT_OP(BT_OGF_LINK_CTRL, 0x0002) /* 0x0402 */
383
384#define BT_HCI_OP_CONNECT BT_OP(BT_OGF_LINK_CTRL, 0x0005) /* 0x0405 */
393
394#define BT_HCI_OP_DISCONNECT BT_OP(BT_OGF_LINK_CTRL, 0x0006) /* 0x0406 */
399
400#define BT_HCI_OP_CONNECT_CANCEL BT_OP(BT_OGF_LINK_CTRL, 0x0008) /* 0x0408 */
408
409#define BT_HCI_OP_ACCEPT_CONN_REQ BT_OP(BT_OGF_LINK_CTRL, 0x0009) /* 0x0409 */
414
415#define BT_HCI_OP_SETUP_SYNC_CONN BT_OP(BT_OGF_LINK_CTRL, 0x0028) /* 0x0428 */
425
426#define BT_HCI_OP_ACCEPT_SYNC_CONN_REQ BT_OP(BT_OGF_LINK_CTRL, 0x0029) /* 0x0429 */
436
437#define BT_HCI_OP_REJECT_CONN_REQ BT_OP(BT_OGF_LINK_CTRL, 0x000a) /* 0x040a */
442
443#define BT_HCI_OP_LINK_KEY_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x000b) /* 0x040b */
448
449#define BT_HCI_OP_LINK_KEY_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x000c) /* 0x040c */
453
454#define BT_HCI_OP_PIN_CODE_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x000d) /* 0x040d */
464
465#define BT_HCI_OP_PIN_CODE_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x000e) /* 0x040e */
473
474#define BT_HCI_OP_AUTH_REQUESTED BT_OP(BT_OGF_LINK_CTRL, 0x0011) /* 0x0411 */
478
479#define BT_HCI_OP_SET_CONN_ENCRYPT BT_OP(BT_OGF_LINK_CTRL, 0x0013) /* 0x0413 */
484
485#define BT_HCI_OP_REMOTE_NAME_REQUEST BT_OP(BT_OGF_LINK_CTRL, 0x0019) /* 0x0419 */
492
493#define BT_HCI_OP_REMOTE_NAME_CANCEL BT_OP(BT_OGF_LINK_CTRL, 0x001a) /* 0x041a */
501
502#define BT_HCI_OP_READ_REMOTE_FEATURES BT_OP(BT_OGF_LINK_CTRL, 0x001b) /* 0x041b */
506
507#define BT_HCI_OP_READ_REMOTE_EXT_FEATURES BT_OP(BT_OGF_LINK_CTRL, 0x001c) /* 0x041c */
512
513#define BT_HCI_OP_READ_REMOTE_VERSION_INFO BT_OP(BT_OGF_LINK_CTRL, 0x001d) /* 0x041d */
517
518#define BT_HCI_OP_IO_CAPABILITY_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002b) /* 0x042b */
525
526#define BT_HCI_OP_USER_CONFIRM_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002c) /* 0x042c */
527#define BT_HCI_OP_USER_CONFIRM_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002d) /* 0x042d */
535
536#define BT_HCI_OP_USER_PASSKEY_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002e) /* 0x042e */
541
542#define BT_HCI_OP_USER_PASSKEY_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002f) /* 0x042f */
546
547#define BT_HCI_OP_IO_CAPABILITY_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x0034) /* 0x0434 */
552
553#define BT_HCI_OP_SET_EVENT_MASK BT_OP(BT_OGF_BASEBAND, 0x0001) /* 0x0c01 */
556} __packed;
557
558#define BT_HCI_OP_RESET BT_OP(BT_OGF_BASEBAND, 0x0003) /* 0x0c03 */
559
560#define BT_HCI_OP_WRITE_LOCAL_NAME BT_OP(BT_OGF_BASEBAND, 0x0013) /* 0x0c13 */
563} __packed;
564
565#define BT_HCI_OP_READ_CONN_ACCEPT_TIMEOUT BT_OP(BT_OGF_BASEBAND, 0x0015) /* 0x0c15 */
570
571#define BT_HCI_OP_WRITE_CONN_ACCEPT_TIMEOUT BT_OP(BT_OGF_BASEBAND, 0x0016) /* 0x0c16 */
575
579
580#define BT_HCI_OP_WRITE_PAGE_TIMEOUT BT_OP(BT_OGF_BASEBAND, 0x0018) /* 0x0c18 */
581
582#define BT_HCI_OP_WRITE_SCAN_ENABLE BT_OP(BT_OGF_BASEBAND, 0x001a) /* 0x0c1a */
583#define BT_BREDR_SCAN_DISABLED 0x00
584#define BT_BREDR_SCAN_INQUIRY 0x01
585#define BT_BREDR_SCAN_PAGE 0x02
586
587#define BT_COD(major_service, major_device, minor_device) \
588 (((uint32_t)major_service << 13) | ((uint32_t)major_device << 8) | \
589 ((uint32_t)minor_device << 2))
590#define BT_COD_VALID(cod) ((0 == (cod[0] & (BIT(0) | BIT(1)))) ? true : false)
591#define BT_COD_MAJOR_SERVICE_CLASSES(cod) \
592 ((((uint32_t)cod[2] & 0xFF) >> 5) | (((uint32_t)cod[1] & 0xD0) >> 5))
593#define BT_COD_MAJOR_DEVICE_CLASS(cod) ((((uint32_t)cod[1]) & 0x1FUL))
594#define BT_COD_MINOR_DEVICE_CLASS(cod) (((((uint32_t)cod[0]) & 0xFF) >> 2))
595
596#define BT_COD_MAJOR_MISC 0x00
597#define BT_COD_MAJOR_COMPUTER 0x01
598#define BT_COD_MAJOR_PHONE 0x02
599#define BT_COD_MAJOR_LAN_NETWORK_AP 0x03
600#define BT_COD_MAJOR_AUDIO_VIDEO 0x04
601#define BT_COD_MAJOR_PERIPHERAL 0x05
602#define BT_COD_MAJOR_IMAGING 0x06
603#define BT_COD_MAJOR_WEARABLE 0x07
604#define BT_COD_MAJOR_TOY 0x08
605#define BT_COD_MAJOR_HEALTH 0x09
606#define BT_COD_MAJOR_UNCATEGORIZED 0x1F
607
608/* Minor Device Class field - Computer Major Class */
609#define BT_COD_MAJOR_COMPUTER_MINOR_UNCATEGORIZED 0x00
610#define BT_COD_MAJOR_COMPUTER_MINOR_DESKTOP 0x01
611#define BT_COD_MAJOR_COMPUTER_MINOR_SERVER_CLASS_COMPUTER 0x02
612#define BT_COD_MAJOR_COMPUTER_MINOR_LAPTOP 0x03
613#define BT_COD_MAJOR_COMPUTER_MINOR_HANDHELD_PC_PDA 0x04
614#define BT_COD_MAJOR_COMPUTER_MINOR_PALM_SIZE_PC_PDA 0x05
615#define BT_COD_MAJOR_COMPUTER_MINOR_WEARABLE_COMPUTER 0x06
616#define BT_COD_MAJOR_COMPUTER_MINOR_TABLET 0x07
617
618/* Minor Device Class field - Phone Major Class */
619#define BT_COD_MAJOR_PHONE_MINOR_UNCATEGORIZED 0x00
620#define BT_COD_MAJOR_PHONE_MINOR_CELLULAR 0x01
621#define BT_COD_MAJOR_PHONE_MINOR_CORDLESS 0x02
622#define BT_COD_MAJOR_PHONE_MINOR_SMARTPHONE 0x03
623#define BT_COD_MAJOR_PHONE_MINOR_WIRED_MODEM_VOICE_GATEWAY 0x04
624#define BT_COD_MAJOR_PHONE_MINOR_ISDN 0x05
625
626/* Minor Device Class field - Audio/Video Major Class */
627#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_UNCATEGORIZED 0x00
628#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_WEARABLE_HEADSET 0x01
629#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_HANDS_FREE 0x02
630#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_RFU 0x03
631#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_MICROPHONE 0x04
632#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_LOUDSPEAKER 0x05
633#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_HEADPHONES 0x06
634#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_PORTABLE_AUDIO 0x07
635#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_CAR_AUDIO 0x08
636#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_SET_TOP_BOX 0x09
637#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_HIFI_AUDIO 0x0A
638#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_VCR 0x0B
639#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_VIDEO_CAMERA 0x0C
640#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_CAMCORDER 0x0D
641#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_VIDEO_MONITOR 0x0E
642#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_VIDEO_DISPLAY_LOUDSPEAKER 0x0F
643#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_VIDEO_CONFERENCING 0x10
644#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_RFU2 0x11
645#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_GAME_TOY 0x12
646
647#define BT_HCI_OP_WRITE_CLASS_OF_DEVICE BT_OP(BT_OGF_BASEBAND, 0x0024) /* 0x0c24 */
651
652#define BT_TX_POWER_LEVEL_CURRENT 0x00
653#define BT_TX_POWER_LEVEL_MAX 0x01
654#define BT_HCI_OP_READ_TX_POWER_LEVEL BT_OP(BT_OGF_BASEBAND, 0x002d) /* 0x0c2d */
659
665
666#define BT_HCI_LE_TX_POWER_PHY_1M 0x01
667#define BT_HCI_LE_TX_POWER_PHY_2M 0x02
668#define BT_HCI_LE_TX_POWER_PHY_CODED_S8 0x03
669#define BT_HCI_LE_TX_POWER_PHY_CODED_S2 0x04
670#define BT_HCI_OP_LE_ENH_READ_TX_POWER_LEVEL BT_OP(BT_OGF_LE, 0x0076) /* 0x2076 */
675
683
684#define BT_HCI_OP_LE_READ_REMOTE_TX_POWER_LEVEL BT_OP(BT_OGF_LE, 0x0077) /* 0x2077 */
685
686#define BT_HCI_LE_TX_POWER_REPORT_DISABLE 0x00
687#define BT_HCI_LE_TX_POWER_REPORT_ENABLE 0x01
688#define BT_HCI_OP_LE_SET_TX_POWER_REPORT_ENABLE BT_OP(BT_OGF_LE, 0x007A) /* 0x207A */
694
703
708
709#define BT_HCI_OP_LE_SET_PATH_LOSS_REPORTING_PARAMETERS BT_OP(BT_OGF_LE, 0x0078) /* 0x2078 */
710
711#define BT_HCI_LE_PATH_LOSS_REPORTING_DISABLE 0x00
712#define BT_HCI_LE_PATH_LOSS_REPORTING_ENABLE 0x01
713#define BT_HCI_OP_LE_SET_PATH_LOSS_REPORTING_ENABLE BT_OP(BT_OGF_LE, 0x0079) /* 0x2079 */
714
722
731
732#define BT_HCI_OP_LE_SET_DEFAULT_SUBRATE BT_OP(BT_OGF_LE, 0x007D) /* 0x207D */
733#define BT_HCI_OP_LE_SUBRATE_REQUEST BT_OP(BT_OGF_LE, 0x007E) /* 0x207E */
734
735#define BT_HCI_CTL_TO_HOST_FLOW_DISABLE 0x00
736#define BT_HCI_CTL_TO_HOST_FLOW_ENABLE 0x01
737#define BT_HCI_OP_SET_CTL_TO_HOST_FLOW BT_OP(BT_OGF_BASEBAND, 0x0031) /* 0x0c31 */
741
742#define BT_HCI_OP_HOST_BUFFER_SIZE BT_OP(BT_OGF_BASEBAND, 0x0033) /* 0x0c33 */
749
754
755#define BT_HCI_OP_HOST_NUM_COMPLETED_PACKETS BT_OP(BT_OGF_BASEBAND, 0x0035) /* 0x0c35 */
760
761#define BT_HCI_OP_WRITE_INQUIRY_MODE BT_OP(BT_OGF_BASEBAND, 0x0045) /* 0x0c45 */
765
766#define BT_HCI_OP_WRITE_SSP_MODE BT_OP(BT_OGF_BASEBAND, 0x0056) /* 0x0c56 */
770
771#define BT_HCI_OP_SET_EVENT_MASK_PAGE_2 BT_OP(BT_OGF_BASEBAND, 0x0063) /* 0x0c63 */
775
776#define BT_HCI_OP_LE_WRITE_LE_HOST_SUPP BT_OP(BT_OGF_BASEBAND, 0x006d) /* 0x0c6d */
781
782#define BT_HCI_OP_WRITE_SC_HOST_SUPP BT_OP(BT_OGF_BASEBAND, 0x007a) /* 0x0c7a */
786
787#define BT_HCI_OP_READ_AUTH_PAYLOAD_TIMEOUT BT_OP(BT_OGF_BASEBAND, 0x007b) /* 0x0c7b */
791
797
798#define BT_HCI_OP_WRITE_AUTH_PAYLOAD_TIMEOUT BT_OP(BT_OGF_BASEBAND, 0x007c) /* 0x0c7c */
803
808
809#define BT_HCI_OP_CONFIGURE_DATA_PATH BT_OP(BT_OGF_BASEBAND, 0x0083) /* 0x0c83 */
816
820
821/* HCI version from Assigned Numbers */
822#define BT_HCI_VERSION_1_0B 0
823#define BT_HCI_VERSION_1_1 1
824#define BT_HCI_VERSION_1_2 2
825#define BT_HCI_VERSION_2_0 3
826#define BT_HCI_VERSION_2_1 4
827#define BT_HCI_VERSION_3_0 5
828#define BT_HCI_VERSION_4_0 6
829#define BT_HCI_VERSION_4_1 7
830#define BT_HCI_VERSION_4_2 8
831#define BT_HCI_VERSION_5_0 9
832#define BT_HCI_VERSION_5_1 10
833#define BT_HCI_VERSION_5_2 11
834#define BT_HCI_VERSION_5_3 12
835#define BT_HCI_VERSION_5_4 13
836#define BT_HCI_VERSION_6_0 14
837
838#define BT_HCI_OP_READ_LOCAL_VERSION_INFO BT_OP(BT_OGF_INFO, 0x0001) /* 0x1001 */
847
848#define BT_HCI_OP_READ_SUPPORTED_COMMANDS BT_OP(BT_OGF_INFO, 0x0002) /* 0x1002 */
853
854#define BT_HCI_OP_READ_LOCAL_EXT_FEATURES BT_OP(BT_OGF_INFO, 0x0004) /* 0x1004 */
864
865#define BT_HCI_OP_READ_LOCAL_FEATURES BT_OP(BT_OGF_INFO, 0x0003) /* 0x1003 */
870
871#define BT_HCI_OP_READ_BUFFER_SIZE BT_OP(BT_OGF_INFO, 0x0005) /* 0x1005 */
879
880#define BT_HCI_OP_READ_BD_ADDR BT_OP(BT_OGF_INFO, 0x0009) /* 0x1009 */
885
886/* logic transport type bits as returned when reading supported codecs */
887#define BT_HCI_CODEC_TRANSPORT_MASK_BREDR_ACL BIT(0)
888#define BT_HCI_CODEC_TRANSPORT_MASK_BREDR_SCO BIT(1)
889#define BT_HCI_CODEC_TRANSPORT_MASK_LE_CIS BIT(2)
890#define BT_HCI_CODEC_TRANSPORT_MASK_LE_BIS BIT(3)
891
892/* logic transport types for reading codec capabilities and controller delays */
893#define BT_HCI_LOGICAL_TRANSPORT_TYPE_BREDR_ACL 0x00
894#define BT_HCI_LOGICAL_TRANSPORT_TYPE_BREDR_SCO 0x01
895#define BT_HCI_LOGICAL_TRANSPORT_TYPE_LE_CIS 0x02
896#define BT_HCI_LOGICAL_TRANSPORT_TYPE_LE_BIS 0x03
897
898/* audio datapath directions */
899#define BT_HCI_DATAPATH_DIR_HOST_TO_CTLR 0x00
900#define BT_HCI_DATAPATH_DIR_CTLR_TO_HOST 0x01
901
902/* audio datapath IDs */
903#define BT_HCI_DATAPATH_ID_HCI 0x00
904#define BT_HCI_DATAPATH_ID_VS 0x01
905#define BT_HCI_DATAPATH_ID_VS_END 0xfe
906
907/* coding format assigned numbers, used for codec IDs */
908#define BT_HCI_CODING_FORMAT_ULAW_LOG 0x00
909#define BT_HCI_CODING_FORMAT_ALAW_LOG 0x01
910#define BT_HCI_CODING_FORMAT_CVSD 0x02
911#define BT_HCI_CODING_FORMAT_TRANSPARENT 0x03
912#define BT_HCI_CODING_FORMAT_LINEAR_PCM 0x04
913#define BT_HCI_CODING_FORMAT_MSBC 0x05
914#define BT_HCI_CODING_FORMAT_LC3 0x06
915#define BT_HCI_CODING_FORMAT_G729A 0x07
916#define BT_HCI_CODING_FORMAT_VS 0xFF
917
918
919#define BT_HCI_OP_READ_CODECS BT_OP(BT_OGF_INFO, 0x000b) /* 0x100b */
937 /* other fields filled in dynamically */
939} __packed;
940
941#define BT_HCI_OP_READ_CODECS_V2 BT_OP(BT_OGF_INFO, 0x000d) /* 0x100d */
961 /* other fields filled in dynamically */
963} __packed;
964
970
971#define BT_HCI_OP_READ_CODEC_CAPABILITIES BT_OP(BT_OGF_INFO, 0x000e) /* 0x100e */
984 /* other fields filled in dynamically */
986} __packed;
987
988#define BT_HCI_OP_READ_CTLR_DELAY BT_OP(BT_OGF_INFO, 0x000f) /* 0x100f */
1001
1002#define BT_HCI_OP_READ_RSSI BT_OP(BT_OGF_STATUS, 0x0005) /* 0x1405 */
1005} __packed;
1011
1012#define BT_HCI_ENCRYPTION_KEY_SIZE_MIN 7
1013#define BT_HCI_ENCRYPTION_KEY_SIZE_MAX 16
1014
1015#define BT_HCI_OP_READ_ENCRYPTION_KEY_SIZE BT_OP(BT_OGF_STATUS, 0x0008) /* 0x1408 */
1024
1025/* BLE */
1026
1027#define BT_HCI_OP_LE_SET_EVENT_MASK BT_OP(BT_OGF_LE, 0x0001) /* 0x2001 */
1031
1032#define BT_HCI_OP_LE_READ_BUFFER_SIZE BT_OP(BT_OGF_LE, 0x0002) /* 0x2002 */
1038
1039#define BT_HCI_OP_LE_READ_LOCAL_FEATURES BT_OP(BT_OGF_LE, 0x0003) /* 0x2003 */
1044
1045#define BT_HCI_OP_LE_SET_RANDOM_ADDRESS BT_OP(BT_OGF_LE, 0x0005) /* 0x2005 */
1049
1050#define BT_HCI_ADV_IND 0x00
1051#define BT_HCI_ADV_DIRECT_IND 0x01
1052#define BT_HCI_ADV_SCAN_IND 0x02
1053#define BT_HCI_ADV_NONCONN_IND 0x03
1054#define BT_HCI_ADV_DIRECT_IND_LOW_DUTY 0x04
1055#define BT_HCI_ADV_SCAN_RSP 0x04
1056
1057#define BT_LE_ADV_INTERVAL_MIN 0x0020
1058#define BT_LE_ADV_INTERVAL_MAX 0x4000
1059#define BT_LE_ADV_INTERVAL_DEFAULT 0x0800
1060
1061#define BT_LE_ADV_CHAN_MAP_CHAN_37 0x01
1062#define BT_LE_ADV_CHAN_MAP_CHAN_38 0x02
1063#define BT_LE_ADV_CHAN_MAP_CHAN_39 0x04
1064#define BT_LE_ADV_CHAN_MAP_ALL 0x07
1065
1066#define BT_LE_ADV_FP_NO_FILTER 0x00
1067#define BT_LE_ADV_FP_FILTER_SCAN_REQ 0x01
1068#define BT_LE_ADV_FP_FILTER_CONN_IND 0x02
1069#define BT_LE_ADV_FP_FILTER_BOTH 0x03
1070
1071#define BT_HCI_OP_LE_SET_ADV_PARAM BT_OP(BT_OGF_LE, 0x0006) /* 0x2006 */
1081
1082#define BT_HCI_OP_LE_READ_ADV_CHAN_TX_POWER BT_OP(BT_OGF_LE, 0x0007) /* 0x2007 */
1087
1088#define BT_HCI_OP_LE_SET_ADV_DATA BT_OP(BT_OGF_LE, 0x0008) /* 0x2008 */
1093
1094#define BT_HCI_OP_LE_SET_SCAN_RSP_DATA BT_OP(BT_OGF_LE, 0x0009) /* 0x2009 */
1099
1100#define BT_HCI_LE_ADV_DISABLE 0x00
1101#define BT_HCI_LE_ADV_ENABLE 0x01
1102
1103#define BT_HCI_OP_LE_SET_ADV_ENABLE BT_OP(BT_OGF_LE, 0x000a) /* 0x200a */
1107
1108/* Scan types */
1109#define BT_HCI_OP_LE_SET_SCAN_PARAM BT_OP(BT_OGF_LE, 0x000b) /* 0x200b */
1110#define BT_HCI_LE_SCAN_PASSIVE 0x00
1111#define BT_HCI_LE_SCAN_ACTIVE 0x01
1112
1113#define BT_HCI_LE_SCAN_FP_BASIC_NO_FILTER 0x00
1114#define BT_HCI_LE_SCAN_FP_BASIC_FILTER 0x01
1115#define BT_HCI_LE_SCAN_FP_EXT_NO_FILTER 0x02
1116#define BT_HCI_LE_SCAN_FP_EXT_FILTER 0x03
1117
1125
1126#define BT_HCI_OP_LE_SET_SCAN_ENABLE BT_OP(BT_OGF_LE, 0x000c) /* 0x200c */
1127
1128#define BT_HCI_LE_SCAN_DISABLE 0x00
1129#define BT_HCI_LE_SCAN_ENABLE 0x01
1130
1131#define BT_HCI_LE_SCAN_FILTER_DUP_DISABLE 0x00
1132#define BT_HCI_LE_SCAN_FILTER_DUP_ENABLE 0x01
1133
1138
1139#define BT_HCI_OP_LE_CREATE_CONN BT_OP(BT_OGF_LE, 0x000d) /* 0x200d */
1140
1141#define BT_HCI_LE_CREATE_CONN_FP_NO_FILTER 0x00
1142#define BT_HCI_LE_CREATE_CONN_FP_FILTER 0x01
1143
1157
1158#define BT_HCI_OP_LE_CREATE_CONN_CANCEL BT_OP(BT_OGF_LE, 0x000e) /* 0x200e */
1159
1160#define BT_HCI_OP_LE_READ_FAL_SIZE BT_OP(BT_OGF_LE, 0x000f) /* 0x200f */
1165
1166#define BT_HCI_OP_LE_CLEAR_FAL BT_OP(BT_OGF_LE, 0x0010) /* 0x2010 */
1167
1168#define BT_HCI_OP_LE_ADD_DEV_TO_FAL BT_OP(BT_OGF_LE, 0x0011) /* 0x2011 */
1172
1173#define BT_HCI_OP_LE_REM_DEV_FROM_FAL BT_OP(BT_OGF_LE, 0x0012) /* 0x2012 */
1177
1178#define BT_HCI_OP_LE_CONN_UPDATE BT_OP(BT_OGF_LE, 0x0013) /* 0x2013 */
1188
1189#define BT_HCI_OP_LE_SET_HOST_CHAN_CLASSIF BT_OP(BT_OGF_LE, 0x0014) /* 0x2014 */
1193
1194#define BT_HCI_OP_LE_READ_CHAN_MAP BT_OP(BT_OGF_LE, 0x0015) /* 0x2015 */
1203
1204#define BT_HCI_OP_LE_READ_REMOTE_FEATURES BT_OP(BT_OGF_LE, 0x0016) /* 0x2016 */
1208
1209#define BT_HCI_OP_LE_ENCRYPT BT_OP(BT_OGF_LE, 0x0017) /* 0x2017 */
1218
1219#define BT_HCI_OP_LE_RAND BT_OP(BT_OGF_LE, 0x0018) /* 0x2018 */
1224
1225#define BT_HCI_OP_LE_START_ENCRYPTION BT_OP(BT_OGF_LE, 0x0019) /* 0x2019 */
1232
1233#define BT_HCI_OP_LE_LTK_REQ_REPLY BT_OP(BT_OGF_LE, 0x001a) /* 0x201a */
1242
1243#define BT_HCI_OP_LE_LTK_REQ_NEG_REPLY BT_OP(BT_OGF_LE, 0x001b) /* 0x201b */
1251
1252#define BT_HCI_OP_LE_READ_SUPP_STATES BT_OP(BT_OGF_LE, 0x001c) /* 0x201c */
1257
1258#define BT_HCI_OP_LE_RX_TEST BT_OP(BT_OGF_LE, 0x001d) /* 0x201d */
1261} __packed;
1262
1263#define BT_HCI_TEST_PKT_PAYLOAD_PRBS9 0x00
1264#define BT_HCI_TEST_PKT_PAYLOAD_11110000 0x01
1265#define BT_HCI_TEST_PKT_PAYLOAD_10101010 0x02
1266#define BT_HCI_TEST_PKT_PAYLOAD_PRBS15 0x03
1267#define BT_HCI_TEST_PKT_PAYLOAD_11111111 0x04
1268#define BT_HCI_TEST_PKT_PAYLOAD_00000000 0x05
1269#define BT_HCI_TEST_PKT_PAYLOAD_00001111 0x06
1270#define BT_HCI_TEST_PKT_PAYLOAD_01010101 0x07
1271
1272#define BT_HCI_OP_LE_TX_TEST BT_OP(BT_OGF_LE, 0x001e) /* 0x201e */
1278
1279#define BT_HCI_OP_LE_TEST_END BT_OP(BT_OGF_LE, 0x001f) /* 0x201f */
1284
1285#define BT_HCI_OP_LE_CONN_PARAM_REQ_REPLY BT_OP(BT_OGF_LE, 0x0020) /* 0x2020 */
1299
1300#define BT_HCI_OP_LE_CONN_PARAM_REQ_NEG_REPLY BT_OP(BT_OGF_LE, 0x0021) /* 0x2021 */
1309
1310#define BT_HCI_OP_LE_SET_DATA_LEN BT_OP(BT_OGF_LE, 0x0022) /* 0x2022 */
1320
1321#define BT_HCI_OP_LE_READ_DEFAULT_DATA_LEN BT_OP(BT_OGF_LE, 0x0023) /* 0x2023 */
1327
1328#define BT_HCI_OP_LE_WRITE_DEFAULT_DATA_LEN BT_OP(BT_OGF_LE, 0x0024) /* 0x2024 */
1333
1334#define BT_HCI_OP_LE_P256_PUBLIC_KEY BT_OP(BT_OGF_LE, 0x0025) /* 0x2025 */
1335
1336#define BT_HCI_OP_LE_GENERATE_DHKEY BT_OP(BT_OGF_LE, 0x0026) /* 0x2026 */
1339} __packed;
1340
1341
1342#define BT_HCI_OP_LE_GENERATE_DHKEY_V2 BT_OP(BT_OGF_LE, 0x005e) /* 0x205e */
1343
1344#define BT_HCI_LE_KEY_TYPE_GENERATED 0x00
1345#define BT_HCI_LE_KEY_TYPE_DEBUG 0x01
1346
1351
1352
1353#define BT_HCI_OP_LE_ADD_DEV_TO_RL BT_OP(BT_OGF_LE, 0x0027) /* 0x2027 */
1359
1360#define BT_HCI_OP_LE_REM_DEV_FROM_RL BT_OP(BT_OGF_LE, 0x0028) /* 0x2028 */
1364
1365#define BT_HCI_OP_LE_CLEAR_RL BT_OP(BT_OGF_LE, 0x0029) /* 0x2029 */
1366
1367#define BT_HCI_OP_LE_READ_RL_SIZE BT_OP(BT_OGF_LE, 0x002a) /* 0x202a */
1372
1373#define BT_HCI_OP_LE_READ_PEER_RPA BT_OP(BT_OGF_LE, 0x002b) /* 0x202b */
1381
1382#define BT_HCI_OP_LE_READ_LOCAL_RPA BT_OP(BT_OGF_LE, 0x002c) /* 0x202c */
1390
1391#define BT_HCI_ADDR_RES_DISABLE 0x00
1392#define BT_HCI_ADDR_RES_ENABLE 0x01
1393
1394#define BT_HCI_OP_LE_SET_ADDR_RES_ENABLE BT_OP(BT_OGF_LE, 0x002d) /* 0x202d */
1398
1399#define BT_HCI_OP_LE_SET_RPA_TIMEOUT BT_OP(BT_OGF_LE, 0x002e) /* 0x202e */
1403
1404/* All limits according to BT Core spec 5.4 [Vol 4, Part E, 7.8.46] */
1405#define BT_HCI_LE_MAX_TX_OCTETS_MIN 0x001B
1406#define BT_HCI_LE_MAX_TX_OCTETS_MAX 0x00FB
1407#define BT_HCI_LE_MAX_RX_OCTETS_MIN 0x001B
1408#define BT_HCI_LE_MAX_RX_OCTETS_MAX 0x00FB
1409
1410#define BT_HCI_LE_MAX_TX_TIME_MIN 0x0148
1411#define BT_HCI_LE_MAX_TX_TIME_MAX 0x4290
1412#define BT_HCI_LE_MAX_RX_TIME_MIN 0x0148
1413#define BT_HCI_LE_MAX_RX_TIME_MAX 0x4290
1414
1415#define BT_HCI_OP_LE_READ_MAX_DATA_LEN BT_OP(BT_OGF_LE, 0x002f) /* 0x202f */
1423
1424#define BT_HCI_LE_PHY_1M 0x01
1425#define BT_HCI_LE_PHY_2M 0x02
1426#define BT_HCI_LE_PHY_CODED 0x03
1427
1428#define BT_HCI_OP_LE_READ_PHY BT_OP(BT_OGF_LE, 0x0030) /* 0x2030 */
1438
1439#define BT_HCI_LE_PHY_TX_ANY BIT(0)
1440#define BT_HCI_LE_PHY_RX_ANY BIT(1)
1441
1442#define BT_HCI_LE_PHY_PREFER_1M BIT(0)
1443#define BT_HCI_LE_PHY_PREFER_2M BIT(1)
1444#define BT_HCI_LE_PHY_PREFER_CODED BIT(2)
1445
1446#define BT_HCI_OP_LE_SET_DEFAULT_PHY BT_OP(BT_OGF_LE, 0x0031) /* 0x2031 */
1452
1453#define BT_HCI_LE_PHY_CODED_ANY 0x00
1454#define BT_HCI_LE_PHY_CODED_S2 0x01
1455#define BT_HCI_LE_PHY_CODED_S8 0x02
1456
1457#define BT_HCI_OP_LE_SET_PHY BT_OP(BT_OGF_LE, 0x0032) /* 0x2032 */
1465
1466#define BT_HCI_LE_MOD_INDEX_STANDARD 0x00
1467#define BT_HCI_LE_MOD_INDEX_STABLE 0x01
1468
1469#define BT_HCI_LE_RX_PHY_1M 0x01
1470#define BT_HCI_LE_RX_PHY_2M 0x02
1471#define BT_HCI_LE_RX_PHY_CODED 0x03
1472
1473#define BT_HCI_OP_LE_ENH_RX_TEST BT_OP(BT_OGF_LE, 0x0033) /* 0x2033 */
1479
1480#define BT_HCI_LE_TX_PHY_1M 0x01
1481#define BT_HCI_LE_TX_PHY_2M 0x02
1482#define BT_HCI_LE_TX_PHY_CODED_S8 0x03
1483#define BT_HCI_LE_TX_PHY_CODED_S2 0x04
1484
1485#define BT_HCI_OP_LE_ENH_TX_TEST BT_OP(BT_OGF_LE, 0x0034) /* 0x2034 */
1492
1493#define BT_HCI_OP_LE_SET_ADV_SET_RANDOM_ADDR BT_OP(BT_OGF_LE, 0x0035) /* 0x2035 */
1498
1499#define BT_HCI_LE_ADV_PROP_CONN BIT(0)
1500#define BT_HCI_LE_ADV_PROP_SCAN BIT(1)
1501#define BT_HCI_LE_ADV_PROP_DIRECT BIT(2)
1502#define BT_HCI_LE_ADV_PROP_HI_DC_CONN BIT(3)
1503#define BT_HCI_LE_ADV_PROP_LEGACY BIT(4)
1504#define BT_HCI_LE_ADV_PROP_ANON BIT(5)
1505#define BT_HCI_LE_ADV_PROP_TX_POWER BIT(6)
1506
1507#define BT_HCI_LE_PRIM_ADV_INTERVAL_MIN 0x000020
1508#define BT_HCI_LE_PRIM_ADV_INTERVAL_MAX 0xFFFFFF
1509
1510#define BT_HCI_LE_ADV_SCAN_REQ_ENABLE 1
1511#define BT_HCI_LE_ADV_SCAN_REQ_DISABLE 0
1512
1513#define BT_HCI_LE_ADV_TX_POWER_NO_PREF 0x7F
1514
1515#define BT_HCI_LE_ADV_HANDLE_MAX 0xEF
1516
1517#define BT_HCI_LE_EXT_ADV_SID_INVALID 0xFF
1518
1519#define BT_HCI_OP_LE_SET_EXT_ADV_PARAM BT_OP(BT_OGF_LE, 0x0036) /* 0x2036 */
1540
1541#define BT_HCI_LE_EXT_ADV_OP_INTERM_FRAG 0x00
1542#define BT_HCI_LE_EXT_ADV_OP_FIRST_FRAG 0x01
1543#define BT_HCI_LE_EXT_ADV_OP_LAST_FRAG 0x02
1544#define BT_HCI_LE_EXT_ADV_OP_COMPLETE_DATA 0x03
1545#define BT_HCI_LE_EXT_ADV_OP_UNCHANGED_DATA 0x04
1546
1547#define BT_HCI_LE_EXT_ADV_FRAG_ENABLED 0x00
1548#define BT_HCI_LE_EXT_ADV_FRAG_DISABLED 0x01
1549
1550#define BT_HCI_LE_EXT_ADV_FRAG_MAX_LEN 251
1551
1552#define BT_HCI_OP_LE_SET_EXT_ADV_DATA BT_OP(BT_OGF_LE, 0x0037) /* 0x2037 */
1560
1561#define BT_HCI_OP_LE_SET_EXT_SCAN_RSP_DATA BT_OP(BT_OGF_LE, 0x0038) /* 0x2038 */
1569
1570#define BT_HCI_OP_LE_SET_EXT_ADV_ENABLE BT_OP(BT_OGF_LE, 0x0039) /* 0x2039 */
1576
1582
1583#define BT_HCI_OP_LE_READ_MAX_ADV_DATA_LEN BT_OP(BT_OGF_LE, 0x003a) /* 0x203a */
1588
1589#define BT_HCI_OP_LE_READ_NUM_ADV_SETS BT_OP(BT_OGF_LE, 0x003b) /* 0x203b */
1594
1595#define BT_HCI_OP_LE_REMOVE_ADV_SET BT_OP(BT_OGF_LE, 0x003c) /* 0x203c */
1599
1600#define BT_HCI_OP_CLEAR_ADV_SETS BT_OP(BT_OGF_LE, 0x003d) /* 0x203d */
1601
1602#define BT_HCI_LE_PER_ADV_INTERVAL_MIN 0x0006
1603#define BT_HCI_LE_PER_ADV_INTERVAL_MAX 0xFFFF
1604
1605#define BT_HCI_OP_LE_SET_PER_ADV_PARAM BT_OP(BT_OGF_LE, 0x003e) /* 0x203e */
1612
1613#define BT_HCI_LE_PER_ADV_OP_INTERM_FRAG 0x00
1614#define BT_HCI_LE_PER_ADV_OP_FIRST_FRAG 0x01
1615#define BT_HCI_LE_PER_ADV_OP_LAST_FRAG 0x02
1616#define BT_HCI_LE_PER_ADV_OP_COMPLETE_DATA 0x03
1617
1618#define BT_HCI_LE_PER_ADV_FRAG_MAX_LEN 252
1619
1620#define BT_HCI_OP_LE_SET_PER_ADV_DATA BT_OP(BT_OGF_LE, 0x003f) /* 0x203f */
1627
1628#define BT_HCI_LE_SET_PER_ADV_ENABLE_ENABLE BIT(0)
1629#define BT_HCI_LE_SET_PER_ADV_ENABLE_ADI BIT(1)
1630
1631#define BT_HCI_OP_LE_SET_PER_ADV_ENABLE BT_OP(BT_OGF_LE, 0x0040) /* 0x2040 */
1636
1637#define BT_HCI_OP_LE_SET_EXT_SCAN_PARAM BT_OP(BT_OGF_LE, 0x0041) /* 0x2041 */
1643
1644#define BT_HCI_LE_EXT_SCAN_PHY_1M BIT(0)
1645#define BT_HCI_LE_EXT_SCAN_PHY_2M BIT(1)
1646#define BT_HCI_LE_EXT_SCAN_PHY_CODED BIT(2)
1647
1654
1655/* Extends BT_HCI_LE_SCAN_FILTER_DUP */
1656#define BT_HCI_LE_EXT_SCAN_FILTER_DUP_ENABLE_RESET 0x02
1657
1658#define BT_HCI_OP_LE_SET_EXT_SCAN_ENABLE BT_OP(BT_OGF_LE, 0x0042) /* 0x2042 */
1665
1666#define BT_HCI_OP_LE_EXT_CREATE_CONN BT_OP(BT_OGF_LE, 0x0043) /* 0x2043 */
1667#define BT_HCI_OP_LE_EXT_CREATE_CONN_V2 BT_OP(BT_OGF_LE, 0x0085) /* 0x2085 */
1678
1686
1696
1697#define BT_HCI_OP_LE_SET_PER_ADV_SUBEVENT_DATA BT_OP(BT_OGF_LE, 0x0082) /* 0x2082 */
1705
1711
1712
1713#define BT_HCI_OP_LE_SET_PER_ADV_RESPONSE_DATA BT_OP(BT_OGF_LE, 0x0083) /* 0x2083 */
1723
1724#define BT_HCI_OP_LE_SET_PER_ADV_SYNC_SUBEVENT BT_OP(BT_OGF_LE, 0x0084) /* 0x2084 */
1731
1732
1733#define BT_HCI_OP_LE_SET_PER_ADV_PARAM_V2 BT_OP(BT_OGF_LE, 0x0086) /* 0x2086 */
1745
1746
1747#define BT_HCI_LE_PER_ADV_CREATE_SYNC_FP_USE_LIST BIT(0)
1748#define BT_HCI_LE_PER_ADV_CREATE_SYNC_FP_REPORTS_DISABLED BIT(1)
1749#define BT_HCI_LE_PER_ADV_CREATE_SYNC_FP_FILTER_DUPLICATE BIT(2)
1750
1751#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_FILTERING 0
1752#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_AOA BIT(0)
1753#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_AOD_1US BIT(1)
1754#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_AOD_2US BIT(2)
1755#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_CTE BIT(3)
1756#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_ONLY_CTE BIT(4)
1757/* Constants to check correctness of CTE type */
1758#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_ALLOWED_BITS 5
1759#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_INVALID_VALUE \
1760 (~BIT_MASK(BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_ALLOWED_BITS))
1761
1762#define BT_HCI_OP_LE_PER_ADV_CREATE_SYNC BT_OP(BT_OGF_LE, 0x0044) /* 0x2044 */
1771
1772#define BT_HCI_OP_LE_PER_ADV_CREATE_SYNC_CANCEL BT_OP(BT_OGF_LE, 0x0045) /* 0x2045 */
1773
1774#define BT_HCI_OP_LE_PER_ADV_TERMINATE_SYNC BT_OP(BT_OGF_LE, 0x0046) /* 0x2046 */
1778
1779#define BT_HCI_OP_LE_ADD_DEV_TO_PER_ADV_LIST BT_OP(BT_OGF_LE, 0x0047) /* 0x2047 */
1784
1785#define BT_HCI_OP_LE_REM_DEV_FROM_PER_ADV_LIST BT_OP(BT_OGF_LE, 0x0048) /* 0x2048 */
1790
1791#define BT_HCI_OP_LE_CLEAR_PER_ADV_LIST BT_OP(BT_OGF_LE, 0x0049) /* 0x2049 */
1792
1793#define BT_HCI_OP_LE_READ_PER_ADV_LIST_SIZE BT_OP(BT_OGF_LE, 0x004a) /* 0x204a */
1798
1799#define BT_HCI_OP_LE_READ_TX_POWER BT_OP(BT_OGF_LE, 0x004b) /* 0x204b */
1805
1806#define BT_HCI_OP_LE_READ_RF_PATH_COMP BT_OP(BT_OGF_LE, 0x004c) /* 0x204c */
1812
1813#define BT_HCI_OP_LE_WRITE_RF_PATH_COMP BT_OP(BT_OGF_LE, 0x004d) /* 0x204d */
1818
1819#define BT_HCI_LE_PRIVACY_MODE_NETWORK 0x00
1820#define BT_HCI_LE_PRIVACY_MODE_DEVICE 0x01
1821
1822#define BT_HCI_OP_LE_SET_PRIVACY_MODE BT_OP(BT_OGF_LE, 0x004e) /* 0x204e */
1827
1828#define BT_HCI_LE_TEST_CTE_DISABLED 0x00
1829#define BT_HCI_LE_TEST_CTE_TYPE_ANY 0x00
1830#define BT_HCI_LE_TEST_SLOT_DURATION_ANY 0x00
1831#define BT_HCI_LE_TEST_SWITCH_PATTERN_LEN_ANY 0x00
1832
1833#define BT_HCI_OP_LE_RX_TEST_V3 BT_OP(BT_OGF_LE, 0x004f) /* 0x204f */
1844
1845#define BT_HCI_OP_LE_TX_TEST_V3 BT_OP(BT_OGF_LE, 0x0050) /* 0x2050 */
1846
1857
1858/* Min and max Constant Tone Extension length in 8us units */
1859#define BT_HCI_LE_CTE_LEN_MIN 0x2
1860#define BT_HCI_LE_CTE_LEN_MAX 0x14
1861
1862#define BT_HCI_LE_AOA_CTE 0x0
1863#define BT_HCI_LE_AOD_CTE_1US 0x1
1864#define BT_HCI_LE_AOD_CTE_2US 0x2
1865#define BT_HCI_LE_NO_CTE 0xFF
1866
1867#define BT_HCI_LE_CTE_COUNT_MIN 0x1
1868#define BT_HCI_LE_CTE_COUNT_MAX 0x10
1869
1870#define BT_HCI_OP_LE_SET_CL_CTE_TX_PARAMS BT_OP(BT_OGF_LE, 0x0051) /* 0x2051 */
1879
1880#define BT_HCI_OP_LE_SET_CL_CTE_TX_ENABLE BT_OP(BT_OGF_LE, 0x0052) /* 0x2052 */
1885
1886#define BT_HCI_LE_ANTENNA_SWITCHING_SLOT_1US 0x1
1887#define BT_HCI_LE_ANTENNA_SWITCHING_SLOT_2US 0x2
1888
1889#define BT_HCI_LE_SAMPLE_CTE_ALL 0x0
1890#define BT_HCI_LE_SAMPLE_CTE_COUNT_MIN 0x1
1891#define BT_HCI_LE_SAMPLE_CTE_COUNT_MAX 0x10
1892
1893#define BT_HCI_OP_LE_SET_CL_CTE_SAMPLING_ENABLE BT_OP(BT_OGF_LE, 0x0053) /* 0x2053 */
1902
1907
1908#define BT_HCI_OP_LE_SET_CONN_CTE_RX_PARAMS BT_OP(BT_OGF_LE, 0x0054) /* 0x2054 */
1916
1921
1922#define BT_HCI_LE_AOA_CTE_RSP BIT(0)
1923#define BT_HCI_LE_AOD_CTE_RSP_1US BIT(1)
1924#define BT_HCI_LE_AOD_CTE_RSP_2US BIT(2)
1925
1926#define BT_HCI_LE_SWITCH_PATTERN_LEN_MIN 0x2
1927#define BT_HCI_LE_SWITCH_PATTERN_LEN_MAX 0x4B
1928
1929#define BT_HCI_OP_LE_SET_CONN_CTE_TX_PARAMS BT_OP(BT_OGF_LE, 0x0055) /* 0x2055 */
1936
1941
1942/* Interval between consecutive CTE request procedure starts in number of connection events. */
1943#define BT_HCI_REQUEST_CTE_ONCE 0x0
1944#define BT_HCI_REQUEST_CTE_INTERVAL_MIN 0x1
1945#define BT_HCI_REQUEST_CTE_INTERVAL_MAX 0xFFFF
1946
1947#define BT_HCI_OP_LE_CONN_CTE_REQ_ENABLE BT_OP(BT_OGF_LE, 0x0056) /* 0x2056 */
1955
1960
1961#define BT_HCI_OP_LE_CONN_CTE_RSP_ENABLE BT_OP(BT_OGF_LE, 0x0057) /* 0x2057 */
1966
1971
1972#define BT_HCI_LE_1US_AOD_TX BIT(0)
1973#define BT_HCI_LE_1US_AOD_RX BIT(1)
1974#define BT_HCI_LE_1US_AOA_RX BIT(2)
1975
1976#define BT_HCI_LE_NUM_ANT_MIN 0x1
1977#define BT_HCI_LE_NUM_ANT_MAX 0x4B
1978
1979#define BT_HCI_LE_MAX_SWITCH_PATTERN_LEN_MIN 0x2
1980#define BT_HCI_LE_MAX_SWITCH_PATTERN_LEN_MAX 0x4B
1981
1982#define BT_HCI_LE_MAX_CTE_LEN_MIN 0x2
1983#define BT_HCI_LE_MAX_CTE_LEN_MAX 0x14
1984
1985#define BT_HCI_OP_LE_READ_ANT_INFO BT_OP(BT_OGF_LE, 0x0058) /* 0x2058 */
1993
1994#define BT_HCI_LE_SET_PER_ADV_RECV_ENABLE_ENABLE BIT(0)
1995#define BT_HCI_LE_SET_PER_ADV_RECV_ENABLE_FILTER_DUPLICATE BIT(1)
1996
1997#define BT_HCI_OP_LE_SET_PER_ADV_RECV_ENABLE BT_OP(BT_OGF_LE, 0x0059) /* 0x2059 */
2002
2003#define BT_HCI_OP_LE_PER_ADV_SYNC_TRANSFER BT_OP(BT_OGF_LE, 0x005a) /* 0x205a */
2009
2014
2015#define BT_HCI_OP_LE_PER_ADV_SET_INFO_TRANSFER BT_OP(BT_OGF_LE, 0x005b) /* 0x205b */
2021
2026
2027#define BT_HCI_LE_PAST_MODE_NO_SYNC 0x00
2028#define BT_HCI_LE_PAST_MODE_NO_REPORTS 0x01
2029#define BT_HCI_LE_PAST_MODE_SYNC 0x02
2030#define BT_HCI_LE_PAST_MODE_SYNC_FILTER_DUPLICATES 0x03
2031
2032#define BT_HCI_LE_PAST_CTE_TYPE_NO_AOA BIT(0)
2033#define BT_HCI_LE_PAST_CTE_TYPE_NO_AOD_1US BIT(1)
2034#define BT_HCI_LE_PAST_CTE_TYPE_NO_AOD_2US BIT(2)
2035#define BT_HCI_LE_PAST_CTE_TYPE_NO_CTE BIT(3)
2036#define BT_HCI_LE_PAST_CTE_TYPE_ONLY_CTE BIT(4)
2037
2038#define BT_HCI_OP_LE_PAST_PARAM BT_OP(BT_OGF_LE, 0x005c) /* 0x205c */
2046
2051
2052#define BT_HCI_OP_LE_DEFAULT_PAST_PARAM BT_OP(BT_OGF_LE, 0x005d) /* 0x205d */
2059
2063
2064#define BT_HCI_OP_LE_READ_BUFFER_SIZE_V2 BT_OP(BT_OGF_LE, 0x0060) /* 0x2060 */
2072
2073#define BT_HCI_OP_LE_READ_ISO_TX_SYNC BT_OP(BT_OGF_LE, 0x0061) /* 0x2061 */
2077
2085
2086#define BT_HCI_ISO_CIG_ID_MAX 0xFE
2087#define BT_HCI_ISO_CIS_COUNT_MAX 0x1F
2088#define BT_HCI_ISO_SDU_INTERVAL_MIN 0x0000FF
2089#define BT_HCI_ISO_SDU_INTERVAL_MAX 0x0FFFFF
2090#define BT_HCI_ISO_WORST_CASE_SCA_VALID_MASK 0x07
2091#define BT_HCI_ISO_PACKING_VALID_MASK 0x01
2092#define BT_HCI_ISO_FRAMING_VALID_MASK 0x01
2093#define BT_HCI_ISO_MAX_TRANSPORT_LATENCY_MIN 0x0005
2094#define BT_HCI_ISO_MAX_TRANSPORT_LATENCY_MAX 0x0FA0
2095#define BT_HCI_ISO_CIS_ID_VALID_MAX 0xEF
2096#define BT_HCI_ISO_MAX_SDU_VALID_MASK 0x0FFF
2097#define BT_HCI_ISO_PHY_VALID_MASK 0x07
2098#define BT_HCI_ISO_INTERVAL_MIN 0x0004
2099#define BT_HCI_ISO_INTERVAL_MAX 0x0C80
2100
2101#define BT_HCI_OP_LE_SET_CIG_PARAMS BT_OP(BT_OGF_LE, 0x0062) /* 0x2062 */
2111
2124
2131
2132#define BT_HCI_OP_LE_SET_CIG_PARAMS_TEST BT_OP(BT_OGF_LE, 0x0063) /* 0x2063 */
2145
2159
2166
2167#define BT_HCI_OP_LE_CREATE_CIS BT_OP(BT_OGF_LE, 0x0064) /* 0x2064 */
2172
2177
2178#define BT_HCI_OP_LE_REMOVE_CIG BT_OP(BT_OGF_LE, 0x0065) /* 0x2065 */
2182
2187
2188#define BT_HCI_OP_LE_ACCEPT_CIS BT_OP(BT_OGF_LE, 0x0066) /* 0x2066 */
2192
2193#define BT_HCI_OP_LE_REJECT_CIS BT_OP(BT_OGF_LE, 0x0067) /* 0x2067 */
2198
2203
2204#define BT_HCI_OP_LE_CREATE_BIG BT_OP(BT_OGF_LE, 0x0068) /* 0x2068 */
2219
2220#define BT_HCI_OP_LE_CREATE_BIG_TEST BT_OP(BT_OGF_LE, 0x0069) /* 0x2069 */
2239
2240#define BT_HCI_OP_LE_TERMINATE_BIG BT_OP(BT_OGF_LE, 0x006a) /* 0x206a */
2245
2246#define BT_HCI_OP_LE_BIG_CREATE_SYNC BT_OP(BT_OGF_LE, 0x006b) /* 0x206b */
2257
2258#define BT_HCI_OP_LE_BIG_TERMINATE_SYNC BT_OP(BT_OGF_LE, 0x006c) /* 0x206c */
2262
2267
2268#define BT_HCI_OP_LE_REQ_PEER_SC BT_OP(BT_OGF_LE, 0x006d) /* 0x206d */
2272
2273#define BT_HCI_OP_LE_SETUP_ISO_PATH BT_OP(BT_OGF_LE, 0x006e) /* 0x206e */
2283
2288
2289#define BT_HCI_OP_LE_REMOVE_ISO_PATH BT_OP(BT_OGF_LE, 0x006f) /* 0x206f */
2294
2299
2300#define BT_HCI_ISO_TEST_ZERO_SIZE_SDU 0
2301#define BT_HCI_ISO_TEST_VARIABLE_SIZE_SDU 1
2302#define BT_HCI_ISO_TEST_MAX_SIZE_SDU 2
2303
2304#define BT_HCI_OP_LE_ISO_TRANSMIT_TEST BT_OP(BT_OGF_LE, 0x0070) /* 0x2070 */
2309
2314
2315#define BT_HCI_OP_LE_ISO_RECEIVE_TEST BT_OP(BT_OGF_LE, 0x0071) /* 0x2071 */
2320
2325
2326#define BT_HCI_OP_LE_ISO_READ_TEST_COUNTERS BT_OP(BT_OGF_LE, 0x0072) /* 0x2072 */
2330
2338
2339#define BT_HCI_OP_LE_ISO_TEST_END BT_OP(BT_OGF_LE, 0x0073) /* 0x2073 */
2343
2351
2352#define BT_HCI_OP_LE_SET_HOST_FEATURE BT_OP(BT_OGF_LE, 0x0074) /* 0x2074 */
2357
2361
2362#define BT_HCI_OP_LE_READ_ISO_LINK_QUALITY BT_OP(BT_OGF_LE, 0x0075) /* 0x2075 */
2366
2378
2379#define BT_HCI_OP_LE_TX_TEST_V4 BT_OP(BT_OGF_LE, 0x007B) /* 0x207B */
2380
2391
2392#define BT_HCI_TX_TEST_POWER_MIN -0x7F
2393#define BT_HCI_TX_TEST_POWER_MAX 0x14
2394
2395#define BT_HCI_TX_TEST_POWER_MIN_SET 0x7E
2396#define BT_HCI_TX_TEST_POWER_MAX_SET 0x7F
2397
2398/* Helper structure for Tx power parameter in the HCI Tx Test v4 command.
2399 * Previous parameter of this command is variable size so having separated structure
2400 * for this parameter helps in command parameters unpacking.
2401 */
2405
2406#define BT_HCI_OP_LE_CS_READ_LOCAL_SUPPORTED_CAPABILITIES BT_OP(BT_OGF_LE, 0x0089) /* 0x2089 */
2407
2431
2432#define BT_HCI_OP_LE_CS_READ_REMOTE_SUPPORTED_CAPABILITIES BT_OP(BT_OGF_LE, 0x008A) /* 0x208A */
2433
2437
2438#define BT_HCI_OP_LE_CS_WRITE_CACHED_REMOTE_SUPPORTED_CAPABILITIES \
2439 BT_OP(BT_OGF_LE, 0x008B) /* 0x208B */
2440
2464
2465#define BT_HCI_OP_LE_CS_SECURITY_ENABLE BT_OP(BT_OGF_LE, 0x008C) /* 0x208C */
2466
2470
2471#define BT_HCI_OP_LE_CS_SET_DEFAULT_SETTINGS BT_OP(BT_OGF_LE, 0x008D) /* 0x208D */
2472
2473#define BT_HCI_OP_LE_CS_INITIATOR_ROLE_MASK BIT(0)
2474#define BT_HCI_OP_LE_CS_REFLECTOR_ROLE_MASK BIT(1)
2475
2476#define BT_HCI_OP_LE_CS_MIN_MAX_TX_POWER -127
2477#define BT_HCI_OP_LE_CS_MAX_MAX_TX_POWER 20
2478
2479#define BT_HCI_OP_LE_CS_ANTENNA_SEL_ONE 0x01
2480#define BT_HCI_OP_LE_CS_ANTENNA_SEL_TWO 0x02
2481#define BT_HCI_OP_LE_CS_ANTENNA_SEL_THREE 0x03
2482#define BT_HCI_OP_LE_CS_ANTENNA_SEL_FOUR 0x04
2483#define BT_HCI_OP_LE_CS_ANTENNA_SEL_REP 0xFE
2484#define BT_HCI_OP_LE_CS_ANTENNA_SEL_NONE 0xFF
2485
2492
2493#define BT_HCI_OP_LE_CS_READ_REMOTE_FAE_TABLE BT_OP(BT_OGF_LE, 0x008E) /* 0x208E */
2494
2498
2499#define BT_HCI_OP_LE_CS_WRITE_CACHED_REMOTE_FAE_TABLE BT_OP(BT_OGF_LE, 0x008F) /* 0x208F */
2500
2505
2506#define BT_HCI_OP_LE_CS_SET_CHANNEL_CLASSIFICATION BT_OP(BT_OGF_LE, 0x0092) /* 0x2092 */
2507
2508#define BT_HCI_OP_LE_CS_SET_PROCEDURE_PARAMETERS BT_OP(BT_OGF_LE, 0x0093) /* 0x2093 */
2509
2510#define BT_HCI_OP_LE_CS_PROCEDURE_PHY_1M 0x01
2511#define BT_HCI_OP_LE_CS_PROCEDURE_PHY_2M 0x02
2512#define BT_HCI_OP_LE_CS_PROCEDURE_PHY_CODED_S8 0x03
2513#define BT_HCI_OP_LE_CS_PROCEDURE_PHY_CODED_S2 0x04
2514
2531
2532#define BT_HCI_OP_LE_CS_PROCEDURE_ENABLE BT_OP(BT_OGF_LE, 0x0094) /* 0x2094 */
2533
2534#define BT_HCI_OP_LE_CS_PROCEDURES_DISABLED 0x00
2535#define BT_HCI_OP_LE_CS_PROCEDURES_ENABLED 0x01
2536
2542
2543#define BT_HCI_OP_LE_CS_TEST BT_OP(BT_OGF_LE, 0x0095) /* 0x2095 */
2544
2545#define BT_HCI_OP_LE_CS_MAIN_MODE_1 0x1
2546#define BT_HCI_OP_LE_CS_MAIN_MODE_2 0x2
2547#define BT_HCI_OP_LE_CS_MAIN_MODE_3 0x3
2548
2549#define BT_HCI_OP_LE_CS_SUB_MODE_1 0x1
2550#define BT_HCI_OP_LE_CS_SUB_MODE_2 0x2
2551#define BT_HCI_OP_LE_CS_SUB_MODE_3 0x3
2552#define BT_HCI_OP_LE_CS_SUB_MODE_UNUSED 0xFF
2553
2554#define BT_HCI_OP_LE_CS_INITIATOR_ROLE 0x0
2555#define BT_HCI_OP_LE_CS_REFLECTOR_ROLE 0x1
2556
2557#define BT_HCI_OP_LE_CS_RTT_TYPE_AA_ONLY 0x0
2558#define BT_HCI_OP_LE_CS_RTT_TYPE_32BIT_SOUND 0x1
2559#define BT_HCI_OP_LE_CS_RTT_TYPE_96BIT_SOUND 0x2
2560#define BT_HCI_OP_LE_CS_RTT_TYPE_32BIT_RAND 0x3
2561#define BT_HCI_OP_LE_CS_RTT_TYPE_64BIT_RAND 0x4
2562#define BT_HCI_OP_LE_CS_RTT_TYPE_96BIT_RAND 0x5
2563#define BT_HCI_OP_LE_CS_RTT_TYPE_128BIT_RAND 0x6
2564
2565#define BT_HCI_OP_LE_CS_CS_SYNC_1M 0x1
2566#define BT_HCI_OP_LE_CS_CS_SYNC_2M 0x2
2567#define BT_HCI_OP_LE_CS_CS_SYNC_2M_2BT 0x3
2568
2569#define BT_HCI_OP_LE_CS_TEST_MINIMIZE_TX_POWER 0x7E
2570#define BT_HCI_OP_LE_CS_TEST_MAXIMIZE_TX_POWER 0x7F
2571
2572#define BT_HCI_OP_LE_CS_ACI_0 0x0
2573#define BT_HCI_OP_LE_CS_ACI_1 0x1
2574#define BT_HCI_OP_LE_CS_ACI_2 0x2
2575#define BT_HCI_OP_LE_CS_ACI_3 0x3
2576#define BT_HCI_OP_LE_CS_ACI_4 0x4
2577#define BT_HCI_OP_LE_CS_ACI_5 0x5
2578#define BT_HCI_OP_LE_CS_ACI_6 0x6
2579#define BT_HCI_OP_LE_CS_ACI_7 0x7
2580
2581#define BT_HCI_OP_LE_CS_INITIATOR_SNR_18 0x0
2582#define BT_HCI_OP_LE_CS_INITIATOR_SNR_21 0x1
2583#define BT_HCI_OP_LE_CS_INITIATOR_SNR_24 0x2
2584#define BT_HCI_OP_LE_CS_INITIATOR_SNR_27 0x3
2585#define BT_HCI_OP_LE_CS_INITIATOR_SNR_30 0x4
2586#define BT_HCI_OP_LE_CS_INITIATOR_SNR_NOT_USED 0xFF
2587
2588#define BT_HCI_OP_LE_CS_REFLECTOR_SNR_18 0x0
2589#define BT_HCI_OP_LE_CS_REFLECTOR_SNR_21 0x1
2590#define BT_HCI_OP_LE_CS_REFLECTOR_SNR_24 0x2
2591#define BT_HCI_OP_LE_CS_REFLECTOR_SNR_27 0x3
2592#define BT_HCI_OP_LE_CS_REFLECTOR_SNR_30 0x4
2593#define BT_HCI_OP_LE_CS_REFLECTOR_SNR_NOT_USED 0xFF
2594
2595#define BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_0_MASK BIT(0)
2596#define BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_2_MASK BIT(2)
2597#define BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_3_MASK BIT(3)
2598#define BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_4_MASK BIT(4)
2599#define BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_5_MASK BIT(5)
2600#define BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_6_MASK BIT(6)
2601#define BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_7_MASK BIT(7)
2602#define BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_8_MASK BIT(8)
2603#define BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_10_MASK BIT(10)
2604
2605#define BT_HCI_OP_LE_CS_TEST_CHSEL_TYPE_3B 0x0
2606#define BT_HCI_OP_LE_CS_TEST_CHSEL_TYPE_3C 0x1
2607
2608#define BT_HCI_OP_LE_CS_TEST_CH3C_SHAPE_HAT 0x0
2609#define BT_HCI_OP_LE_CS_TEST_CH3C_SHAPE_X 0x1
2610
2611#define BT_HCI_OP_LE_CS_TEST_TONE_EXT_NONE 0x0
2612#define BT_HCI_OP_LE_CS_TEST_TONE_EXT_INIT 0x1
2613#define BT_HCI_OP_LE_CS_TEST_TONE_EXT_REFL 0x2
2614#define BT_HCI_OP_LE_CS_TEST_TONE_EXT_BOTH 0x3
2615#define BT_HCI_OP_LE_CS_TEST_TONE_EXT_REPEAT 0x4
2616
2617#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_00 0x0
2618#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_01 0x1
2619#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_02 0x2
2620#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_03 0x3
2621#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_04 0x4
2622#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_05 0x5
2623#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_06 0x6
2624#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_07 0x7
2625#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_08 0x8
2626#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_09 0x9
2627#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_10 0xA
2628#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_11 0xB
2629#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_12 0xC
2630#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_13 0xD
2631#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_14 0xE
2632#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_15 0xF
2633#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_16 0x10
2634#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_17 0x11
2635#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_18 0x12
2636#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_19 0x13
2637#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_20 0x14
2638#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_21 0x15
2639#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_22 0x16
2640#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_23 0x17
2641#define BT_HCI_OP_LE_CS_TEST_AP_INDEX_LOOP 0xFF
2642
2643#define BT_HCI_OP_LE_CS_TEST_SS_MARKER_2_POSITION_NOT_PRESENT 0xFF
2644
2645#define BT_HCI_OP_LE_CS_TEST_SS_MARKER_VAL_0011 0x0
2646#define BT_HCI_OP_LE_CS_TEST_SS_MARKER_VAL_1100 0x1
2647#define BT_HCI_OP_LE_CS_TEST_SS_MARKER_VAL_LOOP 0x2
2648
2649#define BT_HCI_OP_LE_CS_TEST_PAYLOAD_PRBS9 0x00
2650#define BT_HCI_OP_LE_CS_TEST_PAYLOAD_11110000 0x01
2651#define BT_HCI_OP_LE_CS_TEST_PAYLOAD_10101010 0x02
2652#define BT_HCI_OP_LE_CS_TEST_PAYLOAD_PRBS15 0x03
2653#define BT_HCI_OP_LE_CS_TEST_PAYLOAD_11111111 0x04
2654#define BT_HCI_OP_LE_CS_TEST_PAYLOAD_00000000 0x05
2655#define BT_HCI_OP_LE_CS_TEST_PAYLOAD_00001111 0x06
2656#define BT_HCI_OP_LE_CS_TEST_PAYLOAD_01010101 0x07
2657#define BT_HCI_OP_LE_CS_TEST_PAYLOAD_USER 0x80
2658
2687
2688#define BT_HCI_OP_LE_CS_CREATE_CONFIG BT_OP(BT_OGF_LE, 0x0090) /* 0x2090 */
2689
2710
2711#define BT_HCI_OP_LE_CS_REMOVE_CONFIG BT_OP(BT_OGF_LE, 0x0091) /* 0x2091 */
2712
2717
2718#define BT_HCI_OP_LE_CS_TEST_END BT_OP(BT_OGF_LE, 0x0096) /* 0x2096 */
2719
2720/* Event definitions */
2721
2722#define BT_HCI_EVT_UNKNOWN 0x00
2723#define BT_HCI_EVT_VENDOR 0xff
2724
2725#define BT_HCI_EVT_INQUIRY_COMPLETE 0x01
2729
2730#define BT_HCI_EVT_CONN_COMPLETE 0x03
2738
2739#define BT_HCI_EVT_CONN_REQUEST 0x04
2745
2746#define BT_HCI_EVT_DISCONN_COMPLETE 0x05
2752
2753#define BT_HCI_EVT_AUTH_COMPLETE 0x06
2758
2759#define BT_HCI_EVT_REMOTE_NAME_REQ_COMPLETE 0x07
2765
2766#define BT_HCI_EVT_ENCRYPT_CHANGE 0x08
2772
2773#define BT_HCI_EVT_REMOTE_FEATURES 0x0b
2779
2780#define BT_HCI_EVT_REMOTE_VERSION_INFO 0x0c
2788
2789#define BT_HCI_EVT_CMD_COMPLETE 0x0e
2794
2797} __packed;
2798
2799#define BT_HCI_EVT_CMD_STATUS 0x0f
2805
2806#define BT_HCI_EVT_HARDWARE_ERROR 0x10
2810
2811#define BT_HCI_EVT_ROLE_CHANGE 0x12
2817
2818#define BT_HCI_EVT_NUM_COMPLETED_PACKETS 0x13
2823
2824#define BT_HCI_EVT_PIN_CODE_REQ 0x16
2828
2829#define BT_HCI_EVT_LINK_KEY_REQ 0x17
2833
2834/* Link Key types */
2835#define BT_LK_COMBINATION 0x00
2836#define BT_LK_LOCAL_UNIT 0x01
2837#define BT_LK_REMOTE_UNIT 0x02
2838#define BT_LK_DEBUG_COMBINATION 0x03
2839#define BT_LK_UNAUTH_COMBINATION_P192 0x04
2840#define BT_LK_AUTH_COMBINATION_P192 0x05
2841#define BT_LK_CHANGED_COMBINATION 0x06
2842#define BT_LK_UNAUTH_COMBINATION_P256 0x07
2843#define BT_LK_AUTH_COMBINATION_P256 0x08
2844
2845#define BT_HCI_EVT_LINK_KEY_NOTIFY 0x18
2851
2852/* Overflow link types */
2853#define BT_OVERFLOW_LINK_SYNCH 0x00
2854#define BT_OVERFLOW_LINK_ACL 0x01
2855#define BT_OVERFLOW_LINK_ISO 0x02
2856
2857#define BT_HCI_EVT_DATA_BUF_OVERFLOW 0x1a
2861
2862#define BT_HCI_EVT_INQUIRY_RESULT_WITH_RSSI 0x22
2871
2872#define BT_HCI_EVT_REMOTE_EXT_FEATURES 0x23
2880
2881#define BT_HCI_EVT_LE_PER_ADV_SYNC_ESTABLISHED_V2 0x24
2895
2896#define BT_HCI_EVT_LE_PER_ADVERTISING_REPORT_V2 0x25
2908
2909#define BT_HCI_EVT_LE_PAST_RECEIVED_V2 0x26
2925
2926#define BT_HCI_EVT_LE_PER_ADV_SUBEVENT_DATA_REQUEST 0x27
2932
2933#define BT_HCI_EVT_LE_PER_ADV_RESPONSE_REPORT 0x28
2934
2944
2952
2953#define BT_HCI_EVT_LE_ENH_CONN_COMPLETE_V2 0x29
2968
2969#define BT_HCI_EVT_SYNC_CONN_COMPLETE 0x2c
2981
2982#define BT_HCI_EVT_EXTENDED_INQUIRY_RESULT 0x2f
2993
2994#define BT_HCI_EVT_ENCRYPT_KEY_REFRESH_COMPLETE 0x30
2999
3000#define BT_HCI_EVT_IO_CAPA_REQ 0x31
3004
3005#define BT_HCI_EVT_IO_CAPA_RESP 0x32
3012
3013#define BT_HCI_EVT_USER_CONFIRM_REQ 0x33
3018
3019#define BT_HCI_EVT_USER_PASSKEY_REQ 0x34
3023
3024#define BT_HCI_EVT_SSP_COMPLETE 0x36
3029
3030#define BT_HCI_EVT_USER_PASSKEY_NOTIFY 0x3b
3035
3036#define BT_HCI_EVT_LE_META_EVENT 0x3e
3040
3041#define BT_HCI_EVT_AUTH_PAYLOAD_TIMEOUT_EXP 0x57
3045
3046#define BT_HCI_ROLE_CENTRAL 0x00
3047#define BT_HCI_ROLE_PERIPHERAL 0x01
3048
3049#define BT_HCI_EVT_LE_CONN_COMPLETE 0x01
3060
3061#define BT_HCI_LE_RSSI_NOT_AVAILABLE 0x7F
3062
3063#define BT_HCI_EVT_LE_ADVERTISING_REPORT 0x02
3074
3076#define BT_HCI_LE_INTERVAL_MIN 0x0006
3077#define BT_HCI_LE_INTERVAL_MAX 0x0c80
3078#define BT_HCI_LE_PERIPHERAL_LATENCY_MAX 0x01f3
3079#define BT_HCI_LE_SUPERVISON_TIMEOUT_MIN 0x000a
3080#define BT_HCI_LE_SUPERVISON_TIMEOUT_MAX 0x0c80
3081
3082#define BT_HCI_EVT_LE_CONN_UPDATE_COMPLETE 0x03
3090
3091#define BT_HCI_EVT_LE_REMOTE_FEAT_COMPLETE 0x04
3097
3098#define BT_HCI_EVT_LE_LTK_REQUEST 0x05
3104
3105#define BT_HCI_EVT_LE_CONN_PARAM_REQ 0x06
3113
3114#define BT_HCI_EVT_LE_DATA_LEN_CHANGE 0x07
3122
3123#define BT_HCI_EVT_LE_P256_PUBLIC_KEY_COMPLETE 0x08
3128
3129#define BT_HCI_EVT_LE_GENERATE_DHKEY_COMPLETE 0x09
3134
3135#define BT_HCI_EVT_LE_ENH_CONN_COMPLETE 0x0a
3148
3149#define BT_HCI_EVT_LE_DIRECT_ADV_REPORT 0x0b
3160
3161#define BT_HCI_EVT_LE_PHY_UPDATE_COMPLETE 0x0c
3168
3169#define BT_HCI_EVT_LE_EXT_ADVERTISING_REPORT 0x0d
3170
3171#define BT_HCI_LE_ADV_EVT_TYPE_CONN BIT(0)
3172#define BT_HCI_LE_ADV_EVT_TYPE_SCAN BIT(1)
3173#define BT_HCI_LE_ADV_EVT_TYPE_DIRECT BIT(2)
3174#define BT_HCI_LE_ADV_EVT_TYPE_SCAN_RSP BIT(3)
3175#define BT_HCI_LE_ADV_EVT_TYPE_LEGACY BIT(4)
3176
3177#define BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS(ev_type) (((ev_type) >> 5) & 0x03)
3178#define BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_COMPLETE 0
3179#define BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_PARTIAL 1
3180#define BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_INCOMPLETE 2
3181#define BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_RX_FAILED 0xFF
3182
3200
3201#define BT_HCI_EVT_LE_PER_ADV_SYNC_ESTABLISHED 0x0e
3211
3212#define BT_HCI_EVT_LE_PER_ADVERTISING_REPORT 0x0f
3222
3223#define BT_HCI_EVT_LE_PER_ADV_SYNC_LOST 0x10
3227
3228#define BT_HCI_EVT_LE_SCAN_TIMEOUT 0x11
3229
3230#define BT_HCI_EVT_LE_ADV_SET_TERMINATED 0x12
3237
3238#define BT_HCI_EVT_LE_SCAN_REQ_RECEIVED 0x13
3243
3244#define BT_HCI_LE_CHAN_SEL_ALGO_1 0x00
3245#define BT_HCI_LE_CHAN_SEL_ALGO_2 0x01
3246
3247#define BT_HCI_EVT_LE_CHAN_SEL_ALGO 0x14
3252
3253#define BT_HCI_LE_CTE_CRC_OK 0x0
3254#define BT_HCI_LE_CTE_CRC_ERR_CTE_BASED_TIME 0x1
3255#define BT_HCI_LE_CTE_CRC_ERR_CTE_BASED_OTHER 0x2
3256#define BT_HCI_LE_CTE_INSUFFICIENT_RESOURCES 0xFF
3257
3258#define B_HCI_LE_CTE_REPORT_SAMPLE_COUNT_MIN 0x9
3259#define B_HCI_LE_CTE_REPORT_SAMPLE_COUNT_MAX 0x52
3260
3261#define BT_HCI_LE_CTE_REPORT_NO_VALID_SAMPLE 0x80
3262
3263#define BT_HCI_EVT_LE_CONNECTIONLESS_IQ_REPORT 0x15
3268
3281
3282#define BT_HCI_EVT_LE_CONNECTION_IQ_REPORT 0x16
3296
3297#define BT_HCI_CTE_REQ_STATUS_RSP_WITHOUT_CTE 0x0
3298
3299#define BT_HCI_EVT_LE_CTE_REQUEST_FAILED 0x17
3301 /* According to BT 5.3 Core Spec the status field may have following
3302 * values:
3303 * - BT_HCI_CTE_REQ_STATUS_RSP_WITHOUT_CTE when received LL_CTE_RSP_PDU without CTE.
3304 * - Other Controller error code for peer rejected request.
3305 */
3308} __packed;
3309
3310#define BT_HCI_EVT_LE_PAST_RECEIVED 0x18
3322
3323#define BT_HCI_EVT_LE_CIS_ESTABLISHED 0x19
3342
3343#define BT_HCI_EVT_LE_CIS_REQ 0x1a
3350
3351#define BT_HCI_EVT_LE_BIG_COMPLETE 0x1b
3367
3368#define BT_HCI_EVT_LE_BIG_TERMINATE 0x1c
3373
3374#define BT_HCI_EVT_LE_BIG_SYNC_ESTABLISHED 0x1d
3388
3389#define BT_HCI_EVT_LE_BIG_SYNC_LOST 0x1e
3394
3395#define BT_HCI_EVT_LE_REQ_PEER_SCA_COMPLETE 0x1f
3401
3402#define BT_HCI_LE_ZONE_ENTERED_LOW 0x0
3403#define BT_HCI_LE_ZONE_ENTERED_MIDDLE 0x1
3404#define BT_HCI_LE_ZONE_ENTERED_HIGH 0x2
3405#define BT_HCI_LE_PATH_LOSS_UNAVAILABLE 0xFF
3406
3407#define BT_HCI_EVT_LE_PATH_LOSS_THRESHOLD 0x20
3413
3416/* Local Transmit power changed. */
3417#define BT_HCI_LE_TX_POWER_REPORT_REASON_LOCAL_CHANGED 0x00
3418/* Remote Transmit power changed. */
3419#define BT_HCI_LE_TX_POWER_REPORT_REASON_REMOTE_CHANGED 0x01
3420/* HCI_LE_Read_Remote_Transmit_Power_Level command completed. */
3421#define BT_HCI_LE_TX_POWER_REPORT_REASON_READ_REMOTE_COMPLETED 0x02
3422
3423#define BT_HCI_EVT_LE_TRANSMIT_POWER_REPORT 0x21
3433
3434#define BT_HCI_EVT_LE_BIGINFO_ADV_REPORT 0x22
3450
3452#define BT_HCI_LE_SUBRATE_FACTOR_MIN 0x0001
3453#define BT_HCI_LE_SUBRATE_FACTOR_MAX 0x01f4
3454#define BT_HCI_LE_CONTINUATION_NUM_MAX 0x01f3
3455
3456#define BT_HCI_EVT_LE_SUBRATE_CHANGE 0x23
3465
3466#define BT_HCI_LE_CS_INITIATOR_ROLE_MASK BIT(0)
3467#define BT_HCI_LE_CS_REFLECTOR_ROLE_MASK BIT(1)
3468
3469#define BT_HCI_LE_CS_MODES_SUPPORTED_MODE_3_MASK BIT(0)
3470
3471#define BT_HCI_LE_CS_RTT_AA_ONLY_N_10NS_MASK BIT(0)
3472#define BT_HCI_LE_CS_RTT_SOUNDING_N_10NS_MASK BIT(1)
3473#define BT_HCI_LE_CS_RTT_RANDOM_PAYLOAD_N_10NS_MASK BIT(2)
3474
3475#define BT_HCI_LE_CS_NADM_SOUNDING_CAPABILITY_PHASE_BASED_MASK BIT(0)
3476#define BT_HCI_LE_CS_NADM_RANDOM_CAPABILITY_PHASE_BASED_MASK BIT(0)
3477
3478#define BT_HCI_LE_CS_SYNC_PHYS_2M_MASK BIT(1)
3479#define BT_HCI_LE_CS_SYNC_PHYS_2M_2BT_MASK BIT(2)
3480
3481#define BT_HCI_LE_CS_SUBFEATURE_NO_TX_FAE_MASK BIT(1)
3482#define BT_HCI_LE_CS_SUBFEATURE_CHSEL_ALG_3C_MASK BIT(2)
3483#define BT_HCI_LE_CS_SUBFEATURE_PBR_FROM_RTT_SOUNDING_SEQ_MASK BIT(3)
3484
3485#define BT_HCI_LE_CS_T_IP1_TIME_10US_MASK BIT(0)
3486#define BT_HCI_LE_CS_T_IP1_TIME_20US_MASK BIT(1)
3487#define BT_HCI_LE_CS_T_IP1_TIME_30US_MASK BIT(2)
3488#define BT_HCI_LE_CS_T_IP1_TIME_40US_MASK BIT(3)
3489#define BT_HCI_LE_CS_T_IP1_TIME_50US_MASK BIT(4)
3490#define BT_HCI_LE_CS_T_IP1_TIME_60US_MASK BIT(5)
3491#define BT_HCI_LE_CS_T_IP1_TIME_80US_MASK BIT(6)
3492
3493#define BT_HCI_LE_CS_T_IP2_TIME_10US_MASK BIT(0)
3494#define BT_HCI_LE_CS_T_IP2_TIME_20US_MASK BIT(1)
3495#define BT_HCI_LE_CS_T_IP2_TIME_30US_MASK BIT(2)
3496#define BT_HCI_LE_CS_T_IP2_TIME_40US_MASK BIT(3)
3497#define BT_HCI_LE_CS_T_IP2_TIME_50US_MASK BIT(4)
3498#define BT_HCI_LE_CS_T_IP2_TIME_60US_MASK BIT(5)
3499#define BT_HCI_LE_CS_T_IP2_TIME_80US_MASK BIT(6)
3500
3501#define BT_HCI_LE_CS_T_FCS_TIME_15US_MASK BIT(0)
3502#define BT_HCI_LE_CS_T_FCS_TIME_20US_MASK BIT(1)
3503#define BT_HCI_LE_CS_T_FCS_TIME_30US_MASK BIT(2)
3504#define BT_HCI_LE_CS_T_FCS_TIME_40US_MASK BIT(3)
3505#define BT_HCI_LE_CS_T_FCS_TIME_50US_MASK BIT(4)
3506#define BT_HCI_LE_CS_T_FCS_TIME_60US_MASK BIT(5)
3507#define BT_HCI_LE_CS_T_FCS_TIME_80US_MASK BIT(6)
3508#define BT_HCI_LE_CS_T_FCS_TIME_100US_MASK BIT(7)
3509#define BT_HCI_LE_CS_T_FCS_TIME_1200US_MASK BIT(8)
3510
3511#define BT_HCI_LE_CS_T_PM_TIME_10US_MASK BIT(0)
3512#define BT_HCI_LE_CS_T_PM_TIME_20US_MASK BIT(1)
3513
3514#define BT_HCI_LE_CS_TX_SNR_CAPABILITY_18DB_MASK BIT(0)
3515#define BT_HCI_LE_CS_TX_SNR_CAPABILITY_21DB_MASK BIT(1)
3516#define BT_HCI_LE_CS_TX_SNR_CAPABILITY_24DB_MASK BIT(2)
3517#define BT_HCI_LE_CS_TX_SNR_CAPABILITY_27DB_MASK BIT(3)
3518#define BT_HCI_LE_CS_TX_SNR_CAPABILITY_30DB_MASK BIT(4)
3519
3520#define BT_HCI_EVT_LE_CS_READ_REMOTE_SUPPORTED_CAPABILITIES_COMPLETE 0x2C
3545
3546#define BT_HCI_EVT_LE_CS_READ_REMOTE_FAE_TABLE_COMPLETE 0x2D
3552
3553#define BT_HCI_LE_CS_CONFIG_ACTION_REMOVED 0x00
3554#define BT_HCI_LE_CS_CONFIG_ACTION_CREATED 0x01
3555
3556#define BT_HCI_EVT_LE_CS_SECURITY_ENABLE_COMPLETE 0x2E
3561
3562#define BT_HCI_EVT_LE_CS_CONFIG_COMPLETE 0x2F
3588
3589#define BT_HCI_LE_CS_TEST_CONN_HANDLE 0x0FFF
3590
3591#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_COMPLETE 0x0
3592#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_PARTIAL 0x1
3593#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_ABORTED 0xF
3594
3595#define BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_COMPLETE 0x0
3596#define BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_PARTIAL 0x1
3597#define BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_ABORTED 0xF
3598
3599#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_NO_ABORT 0x0
3600#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_LOCAL_HOST_OR_REMOTE_REQUEST 0x1
3601#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_TOO_FEW_CHANNELS 0x2
3602#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_CHMAP_INSTANT_PASSED 0x3
3603#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_UNSPECIFIED 0xF
3604
3605#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_NO_ABORT 0x0
3606#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_LOCAL_HOST_OR_REMOTE_REQUEST 0x1
3607#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_NO_CS_SYNC_RECEIVED 0x2
3608#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_SCHED_CONFLICT 0x3
3609#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_UNSPECIFIED 0xF
3610
3611#define BT_HCI_LE_CS_SUBEVENT_RESULT_N_AP_IGNORED 0x00
3612#define BT_HCI_LE_CS_SUBEVENT_RESULT_N_AP_1 0x01
3613#define BT_HCI_LE_CS_SUBEVENT_RESULT_N_AP_2 0x02
3614#define BT_HCI_LE_CS_SUBEVENT_RESULT_N_AP_3 0x03
3615#define BT_HCI_LE_CS_SUBEVENT_RESULT_N_AP_4 0x04
3616
3617#define BT_HCI_LE_CS_SUBEVENT_RESULT_FREQ_COMPENSATION_NOT_AVAILABLE 0xC000
3618
3619#define BT_HCI_LE_CS_SUBEVENT_RESULT_PCT_NOT_AVAILABLE 0xFFFFFFFF
3620
3621#define BT_HCI_LE_CS_REF_POWER_LEVEL_UNAVAILABLE 0x7F
3622
3623#define BT_HCI_LE_CS_PCT_I_MASK 0x000FFF
3624#define BT_HCI_LE_CS_PCT_Q_MASK 0xFFF000
3625
3626#define BT_HCI_LE_CS_TONE_QUALITY_HIGH 0x0
3627#define BT_HCI_LE_CS_TONE_QUALITY_MED 0x1
3628#define BT_HCI_LE_CS_TONE_QUALITY_LOW 0x2
3629#define BT_HCI_LE_CS_TONE_QUALITY_UNAVAILABLE 0x3
3630
3631#define BT_HCI_LE_CS_NOT_TONE_EXT_SLOT 0x0
3632#define BT_HCI_LE_CS_TONE_EXT_SLOT_EXT_NOT_EXPECTED 0x1
3633#define BT_HCI_LE_CS_TONE_EXT_SLOT_EXT_EXPECTED 0x2
3634
3635#define BT_HCI_LE_CS_TIME_DIFFERENCE_NOT_AVAILABLE 0x8000
3636
3637#define BT_HCI_LE_CS_PACKET_NADM_ATTACK_EXT_UNLIKELY 0x00
3638#define BT_HCI_LE_CS_PACKET_NADM_ATTACK_VERY_UNLIKELY 0x01
3639#define BT_HCI_LE_CS_PACKET_NADM_ATTACK_UNLIKELY 0x02
3640#define BT_HCI_LE_CS_PACKET_NADM_ATTACK_POSSIBLE 0x03
3641#define BT_HCI_LE_CS_PACKET_NADM_ATTACK_LIKELY 0x04
3642#define BT_HCI_LE_CS_PACKET_NADM_ATTACK_VERY_LIKELY 0x05
3643#define BT_HCI_LE_CS_PACKET_NADM_ATTACK_EXT_LIKELY 0x06
3644#define BT_HCI_LE_CS_PACKET_NADM_UNKNOWN 0xFF
3645
3646#define BT_HCI_LE_CS_PACKET_QUALITY_AA_CHECK_SUCCESSFUL 0x0
3647#define BT_HCI_LE_CS_PACKET_QUALITY_AA_CHECK_BIT_ERRORS_FOUND 0x1
3648#define BT_HCI_LE_CS_PACKET_QUALITY_AA_CHECK_AA_NOT_FOUND 0x2
3649
3650#define BT_HCI_LE_CS_PACKET_RSSI_NOT_AVAILABLE 0x7F
3651
3652#define BT_HCI_EVT_LE_CS_SUBEVENT_RESULT 0x31
3666
3679
3697
3717
3718
3722#ifdef CONFIG_LITTLE_ENDIAN
3725#else
3728#endif /* CONFIG_LITTLE_ENDIAN */
3729} __packed;
3730
3736
3756
3778
3785
3806
3807#define BT_HCI_EVT_LE_CS_SUBEVENT_RESULT_CONTINUE 0x32
3808
3825
3826#define BT_HCI_EVT_LE_CS_TEST_END_COMPLETE 0x33
3830
3831#define BT_HCI_EVT_LE_CS_PROCEDURE_ENABLE_COMPLETE 0x30
3847
3848/* Event mask bits */
3849
3850#define BT_EVT_BIT(n) (1ULL << (n))
3851
3852#define BT_EVT_MASK_INQUIRY_COMPLETE BT_EVT_BIT(0)
3853#define BT_EVT_MASK_CONN_COMPLETE BT_EVT_BIT(2)
3854#define BT_EVT_MASK_CONN_REQUEST BT_EVT_BIT(3)
3855#define BT_EVT_MASK_DISCONN_COMPLETE BT_EVT_BIT(4)
3856#define BT_EVT_MASK_AUTH_COMPLETE BT_EVT_BIT(5)
3857#define BT_EVT_MASK_REMOTE_NAME_REQ_COMPLETE BT_EVT_BIT(6)
3858#define BT_EVT_MASK_ENCRYPT_CHANGE BT_EVT_BIT(7)
3859#define BT_EVT_MASK_REMOTE_FEATURES BT_EVT_BIT(10)
3860#define BT_EVT_MASK_REMOTE_VERSION_INFO BT_EVT_BIT(11)
3861#define BT_EVT_MASK_HARDWARE_ERROR BT_EVT_BIT(15)
3862#define BT_EVT_MASK_ROLE_CHANGE BT_EVT_BIT(17)
3863#define BT_EVT_MASK_PIN_CODE_REQ BT_EVT_BIT(21)
3864#define BT_EVT_MASK_LINK_KEY_REQ BT_EVT_BIT(22)
3865#define BT_EVT_MASK_LINK_KEY_NOTIFY BT_EVT_BIT(23)
3866#define BT_EVT_MASK_DATA_BUFFER_OVERFLOW BT_EVT_BIT(25)
3867#define BT_EVT_MASK_INQUIRY_RESULT_WITH_RSSI BT_EVT_BIT(33)
3868#define BT_EVT_MASK_REMOTE_EXT_FEATURES BT_EVT_BIT(34)
3869#define BT_EVT_MASK_SYNC_CONN_COMPLETE BT_EVT_BIT(43)
3870#define BT_EVT_MASK_EXTENDED_INQUIRY_RESULT BT_EVT_BIT(46)
3871#define BT_EVT_MASK_ENCRYPT_KEY_REFRESH_COMPLETE BT_EVT_BIT(47)
3872#define BT_EVT_MASK_IO_CAPA_REQ BT_EVT_BIT(48)
3873#define BT_EVT_MASK_IO_CAPA_RESP BT_EVT_BIT(49)
3874#define BT_EVT_MASK_USER_CONFIRM_REQ BT_EVT_BIT(50)
3875#define BT_EVT_MASK_USER_PASSKEY_REQ BT_EVT_BIT(51)
3876#define BT_EVT_MASK_SSP_COMPLETE BT_EVT_BIT(53)
3877#define BT_EVT_MASK_USER_PASSKEY_NOTIFY BT_EVT_BIT(58)
3878#define BT_EVT_MASK_LE_META_EVENT BT_EVT_BIT(61)
3879
3880/* Page 2 */
3881#define BT_EVT_MASK_NUM_COMPLETE_DATA_BLOCKS BT_EVT_BIT(8)
3882#define BT_EVT_MASK_TRIGG_CLOCK_CAPTURE BT_EVT_BIT(14)
3883#define BT_EVT_MASK_SYNCH_TRAIN_COMPLETE BT_EVT_BIT(15)
3884#define BT_EVT_MASK_SYNCH_TRAIN_RX BT_EVT_BIT(16)
3885#define BT_EVT_MASK_CL_PER_BC_RX BT_EVT_BIT(17)
3886#define BT_EVT_MASK_CL_PER_BC_TIMEOUT BT_EVT_BIT(18)
3887#define BT_EVT_MASK_TRUNC_PAGE_COMPLETE BT_EVT_BIT(19)
3888#define BT_EVT_MASK_PER_PAGE_RSP_TIMEOUT BT_EVT_BIT(20)
3889#define BT_EVT_MASK_CL_PER_BC_CH_MAP_CHANGE BT_EVT_BIT(21)
3890#define BT_EVT_MASK_INQUIRY_RSP_NOT BT_EVT_BIT(22)
3891#define BT_EVT_MASK_AUTH_PAYLOAD_TIMEOUT_EXP BT_EVT_BIT(23)
3892#define BT_EVT_MASK_SAM_STATUS_CHANGE BT_EVT_BIT(24)
3893
3894#define BT_EVT_MASK_LE_CONN_COMPLETE BT_EVT_BIT(0)
3895#define BT_EVT_MASK_LE_ADVERTISING_REPORT BT_EVT_BIT(1)
3896#define BT_EVT_MASK_LE_CONN_UPDATE_COMPLETE BT_EVT_BIT(2)
3897#define BT_EVT_MASK_LE_REMOTE_FEAT_COMPLETE BT_EVT_BIT(3)
3898#define BT_EVT_MASK_LE_LTK_REQUEST BT_EVT_BIT(4)
3899#define BT_EVT_MASK_LE_CONN_PARAM_REQ BT_EVT_BIT(5)
3900#define BT_EVT_MASK_LE_DATA_LEN_CHANGE BT_EVT_BIT(6)
3901#define BT_EVT_MASK_LE_P256_PUBLIC_KEY_COMPLETE BT_EVT_BIT(7)
3902#define BT_EVT_MASK_LE_GENERATE_DHKEY_COMPLETE BT_EVT_BIT(8)
3903#define BT_EVT_MASK_LE_ENH_CONN_COMPLETE BT_EVT_BIT(9)
3904#define BT_EVT_MASK_LE_DIRECT_ADV_REPORT BT_EVT_BIT(10)
3905#define BT_EVT_MASK_LE_PHY_UPDATE_COMPLETE BT_EVT_BIT(11)
3906#define BT_EVT_MASK_LE_EXT_ADVERTISING_REPORT BT_EVT_BIT(12)
3907#define BT_EVT_MASK_LE_PER_ADV_SYNC_ESTABLISHED BT_EVT_BIT(13)
3908#define BT_EVT_MASK_LE_PER_ADVERTISING_REPORT BT_EVT_BIT(14)
3909#define BT_EVT_MASK_LE_PER_ADV_SYNC_LOST BT_EVT_BIT(15)
3910#define BT_EVT_MASK_LE_SCAN_TIMEOUT BT_EVT_BIT(16)
3911#define BT_EVT_MASK_LE_ADV_SET_TERMINATED BT_EVT_BIT(17)
3912#define BT_EVT_MASK_LE_SCAN_REQ_RECEIVED BT_EVT_BIT(18)
3913#define BT_EVT_MASK_LE_CHAN_SEL_ALGO BT_EVT_BIT(19)
3914#define BT_EVT_MASK_LE_CONNECTIONLESS_IQ_REPORT BT_EVT_BIT(20)
3915#define BT_EVT_MASK_LE_CONNECTION_IQ_REPORT BT_EVT_BIT(21)
3916#define BT_EVT_MASK_LE_CTE_REQUEST_FAILED BT_EVT_BIT(22)
3917#define BT_EVT_MASK_LE_PAST_RECEIVED BT_EVT_BIT(23)
3918#define BT_EVT_MASK_LE_CIS_ESTABLISHED BT_EVT_BIT(24)
3919#define BT_EVT_MASK_LE_CIS_REQ BT_EVT_BIT(25)
3920#define BT_EVT_MASK_LE_BIG_COMPLETE BT_EVT_BIT(26)
3921#define BT_EVT_MASK_LE_BIG_TERMINATED BT_EVT_BIT(27)
3922#define BT_EVT_MASK_LE_BIG_SYNC_ESTABLISHED BT_EVT_BIT(28)
3923#define BT_EVT_MASK_LE_BIG_SYNC_LOST BT_EVT_BIT(29)
3924#define BT_EVT_MASK_LE_REQ_PEER_SCA_COMPLETE BT_EVT_BIT(30)
3925#define BT_EVT_MASK_LE_PATH_LOSS_THRESHOLD BT_EVT_BIT(31)
3926#define BT_EVT_MASK_LE_TRANSMIT_POWER_REPORTING BT_EVT_BIT(32)
3927#define BT_EVT_MASK_LE_BIGINFO_ADV_REPORT BT_EVT_BIT(33)
3928#define BT_EVT_MASK_LE_SUBRATE_CHANGE BT_EVT_BIT(34)
3929
3930#define BT_EVT_MASK_LE_PER_ADV_SYNC_ESTABLISHED_V2 BT_EVT_BIT(35)
3931#define BT_EVT_MASK_LE_PER_ADVERTISING_REPORT_V2 BT_EVT_BIT(36)
3932#define BT_EVT_MASK_LE_PAST_RECEIVED_V2 BT_EVT_BIT(37)
3933#define BT_EVT_MASK_LE_PER_ADV_SUBEVENT_DATA_REQ BT_EVT_BIT(38)
3934#define BT_EVT_MASK_LE_PER_ADV_RESPONSE_REPORT BT_EVT_BIT(39)
3935#define BT_EVT_MASK_LE_ENH_CONN_COMPLETE_V2 BT_EVT_BIT(40)
3936
3937#define BT_EVT_MASK_LE_CS_READ_REMOTE_SUPPORTED_CAPABILITIES_COMPLETE BT_EVT_BIT(43)
3938#define BT_EVT_MASK_LE_CS_READ_REMOTE_FAE_TABLE_COMPLETE BT_EVT_BIT(44)
3939#define BT_EVT_MASK_LE_CS_SECURITY_ENABLE_COMPLETE BT_EVT_BIT(45)
3940#define BT_EVT_MASK_LE_CS_CONFIG_COMPLETE BT_EVT_BIT(46)
3941#define BT_EVT_MASK_LE_CS_PROCEDURE_ENABLE_COMPLETE BT_EVT_BIT(47)
3942#define BT_EVT_MASK_LE_CS_SUBEVENT_RESULT BT_EVT_BIT(48)
3943#define BT_EVT_MASK_LE_CS_SUBEVENT_RESULT_CONTINUE BT_EVT_BIT(49)
3944#define BT_EVT_MASK_LE_CS_TEST_END_COMPLETE BT_EVT_BIT(50)
3945
3947#define BT_HCI_ERR_SUCCESS 0x00
3948#define BT_HCI_ERR_UNKNOWN_CMD 0x01
3949#define BT_HCI_ERR_UNKNOWN_CONN_ID 0x02
3950#define BT_HCI_ERR_HW_FAILURE 0x03
3951#define BT_HCI_ERR_PAGE_TIMEOUT 0x04
3952#define BT_HCI_ERR_AUTH_FAIL 0x05
3953#define BT_HCI_ERR_PIN_OR_KEY_MISSING 0x06
3954#define BT_HCI_ERR_MEM_CAPACITY_EXCEEDED 0x07
3955#define BT_HCI_ERR_CONN_TIMEOUT 0x08
3956#define BT_HCI_ERR_CONN_LIMIT_EXCEEDED 0x09
3957#define BT_HCI_ERR_SYNC_CONN_LIMIT_EXCEEDED 0x0a
3958#define BT_HCI_ERR_CONN_ALREADY_EXISTS 0x0b
3959#define BT_HCI_ERR_CMD_DISALLOWED 0x0c
3960#define BT_HCI_ERR_INSUFFICIENT_RESOURCES 0x0d
3961#define BT_HCI_ERR_INSUFFICIENT_SECURITY 0x0e
3962#define BT_HCI_ERR_BD_ADDR_UNACCEPTABLE 0x0f
3963#define BT_HCI_ERR_CONN_ACCEPT_TIMEOUT 0x10
3964#define BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL 0x11
3965#define BT_HCI_ERR_INVALID_PARAM 0x12
3966#define BT_HCI_ERR_REMOTE_USER_TERM_CONN 0x13
3967#define BT_HCI_ERR_REMOTE_LOW_RESOURCES 0x14
3968#define BT_HCI_ERR_REMOTE_POWER_OFF 0x15
3969#define BT_HCI_ERR_LOCALHOST_TERM_CONN 0x16
3970#define BT_HCI_ERR_REPEATED_ATTEMPTS 0x17
3971#define BT_HCI_ERR_PAIRING_NOT_ALLOWED 0x18
3972#define BT_HCI_ERR_UNKNOWN_LMP_PDU 0x19
3973#define BT_HCI_ERR_UNSUPP_REMOTE_FEATURE 0x1a
3974#define BT_HCI_ERR_SCO_OFFSET_REJECTED 0x1b
3975#define BT_HCI_ERR_SCO_INTERVAL_REJECTED 0x1c
3976#define BT_HCI_ERR_SCO_AIR_MODE_REJECTED 0x1d
3977#define BT_HCI_ERR_INVALID_LL_PARAM 0x1e
3978#define BT_HCI_ERR_UNSPECIFIED 0x1f
3979#define BT_HCI_ERR_UNSUPP_LL_PARAM_VAL 0x20
3980#define BT_HCI_ERR_ROLE_CHANGE_NOT_ALLOWED 0x21
3981#define BT_HCI_ERR_LL_RESP_TIMEOUT 0x22
3982#define BT_HCI_ERR_LL_PROC_COLLISION 0x23
3983#define BT_HCI_ERR_LMP_PDU_NOT_ALLOWED 0x24
3984#define BT_HCI_ERR_ENC_MODE_NOT_ACCEPTABLE 0x25
3985#define BT_HCI_ERR_LINK_KEY_CANNOT_BE_CHANGED 0x26
3986#define BT_HCI_ERR_REQUESTED_QOS_NOT_SUPPORTED 0x27
3987#define BT_HCI_ERR_INSTANT_PASSED 0x28
3988#define BT_HCI_ERR_PAIRING_NOT_SUPPORTED 0x29
3989#define BT_HCI_ERR_DIFF_TRANS_COLLISION 0x2a
3990#define BT_HCI_ERR_QOS_UNACCEPTABLE_PARAM 0x2c
3991#define BT_HCI_ERR_QOS_REJECTED 0x2d
3992#define BT_HCI_ERR_CHAN_ASSESS_NOT_SUPPORTED 0x2e
3993#define BT_HCI_ERR_INSUFF_SECURITY 0x2f
3994#define BT_HCI_ERR_PARAM_OUT_OF_MANDATORY_RANGE 0x30
3995#define BT_HCI_ERR_ROLE_SWITCH_PENDING 0x32
3996#define BT_HCI_ERR_RESERVED_SLOT_VIOLATION 0x34
3997#define BT_HCI_ERR_ROLE_SWITCH_FAILED 0x35
3998#define BT_HCI_ERR_EXT_INQ_RESP_TOO_LARGE 0x36
3999#define BT_HCI_ERR_SIMPLE_PAIR_NOT_SUPP_BY_HOST 0x37
4000#define BT_HCI_ERR_HOST_BUSY_PAIRING 0x38
4001#define BT_HCI_ERR_CONN_REJECTED_DUE_TO_NO_CHAN 0x39
4002#define BT_HCI_ERR_CONTROLLER_BUSY 0x3a
4003#define BT_HCI_ERR_UNACCEPT_CONN_PARAM 0x3b
4004#define BT_HCI_ERR_ADV_TIMEOUT 0x3c
4005#define BT_HCI_ERR_TERM_DUE_TO_MIC_FAIL 0x3d
4006#define BT_HCI_ERR_CONN_FAIL_TO_ESTAB 0x3e
4007#define BT_HCI_ERR_MAC_CONN_FAILED 0x3f
4008#define BT_HCI_ERR_CLOCK_ADJUST_REJECTED 0x40
4009#define BT_HCI_ERR_SUBMAP_NOT_DEFINED 0x41
4010#define BT_HCI_ERR_UNKNOWN_ADV_IDENTIFIER 0x42
4011#define BT_HCI_ERR_LIMIT_REACHED 0x43
4012#define BT_HCI_ERR_OP_CANCELLED_BY_HOST 0x44
4013#define BT_HCI_ERR_PACKET_TOO_LONG 0x45
4014#define BT_HCI_ERR_TOO_LATE 0x46
4015#define BT_HCI_ERR_TOO_EARLY 0x47
4016
4017#ifdef __cplusplus
4018}
4019#endif
4020
4021#endif /* ZEPHYR_INCLUDE_BLUETOOTH_HCI_TYPES_H_ */
Bluetooth device address definitions and utilities.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
__INT8_TYPE__ int8_t
Definition stdint.h:72
__INT16_TYPE__ int16_t
Definition stdint.h:73
Bluetooth LE Device Address.
Definition addr.h:49
Bluetooth Device Address.
Definition addr.h:40
Definition hci_types.h:83
uint16_t handle
Definition hci_types.h:84
uint16_t len
Definition hci_types.h:85
Definition hci_types.h:2133
uint8_t cis_id
Definition hci_types.h:2134
uint16_t c_sdu
Definition hci_types.h:2136
uint8_t c_phy
Definition hci_types.h:2140
uint8_t p_phy
Definition hci_types.h:2141
uint16_t p_pdu
Definition hci_types.h:2139
uint8_t p_bn
Definition hci_types.h:2143
uint8_t nse
Definition hci_types.h:2135
uint16_t c_pdu
Definition hci_types.h:2138
uint8_t c_bn
Definition hci_types.h:2142
uint16_t p_sdu
Definition hci_types.h:2137
Definition hci_types.h:2102
uint8_t p_phy
Definition hci_types.h:2107
uint8_t c_phy
Definition hci_types.h:2106
uint8_t cis_id
Definition hci_types.h:2103
uint16_t c_sdu
Definition hci_types.h:2104
uint8_t c_rtn
Definition hci_types.h:2108
uint8_t p_rtn
Definition hci_types.h:2109
uint16_t p_sdu
Definition hci_types.h:2105
Definition hci_types.h:2168
uint16_t acl_handle
Definition hci_types.h:2170
uint16_t cis_handle
Definition hci_types.h:2169
Definition hci_types.h:132
uint16_t opcode
Definition hci_types.h:133
uint8_t param_len
Definition hci_types.h:134
Definition hci_types.h:977
uint8_t length
Definition hci_types.h:978
uint8_t data[0]
Definition hci_types.h:979
Definition hci_types.h:410
uint8_t role
Definition hci_types.h:412
bt_addr_t bdaddr
Definition hci_types.h:411
Definition hci_types.h:427
uint16_t max_latency
Definition hci_types.h:431
uint32_t tx_bandwidth
Definition hci_types.h:429
bt_addr_t bdaddr
Definition hci_types.h:428
uint16_t pkt_type
Definition hci_types.h:434
uint8_t retrans_effort
Definition hci_types.h:433
uint32_t rx_bandwidth
Definition hci_types.h:430
uint16_t content_format
Definition hci_types.h:432
Definition hci_types.h:475
uint16_t handle
Definition hci_types.h:476
Definition hci_types.h:965
uint16_t vs_codec_id
Definition hci_types.h:968
uint16_t company_id
Definition hci_types.h:967
uint8_t coding_format
Definition hci_types.h:966
Definition hci_types.h:810
uint8_t vs_config_len
Definition hci_types.h:813
uint8_t data_path_dir
Definition hci_types.h:811
uint8_t data_path_id
Definition hci_types.h:812
uint8_t vs_config[0]
Definition hci_types.h:814
Definition hci_types.h:401
bt_addr_t bdaddr
Definition hci_types.h:402
Definition hci_types.h:385
uint8_t pscan_rep_mode
Definition hci_types.h:388
uint16_t packet_type
Definition hci_types.h:387
bt_addr_t bdaddr
Definition hci_types.h:386
uint8_t allow_role_switch
Definition hci_types.h:391
uint16_t clock_offset
Definition hci_types.h:390
uint8_t reserved
Definition hci_types.h:389
Definition hci_types.h:395
uint8_t reason
Definition hci_types.h:397
uint16_t handle
Definition hci_types.h:396
Definition hci_types.h:743
uint16_t acl_mtu
Definition hci_types.h:744
uint8_t sco_mtu
Definition hci_types.h:745
uint16_t acl_pkts
Definition hci_types.h:746
uint16_t sco_pkts
Definition hci_types.h:747
Definition hci_types.h:756
struct bt_hci_handle_count h[0]
Definition hci_types.h:758
uint8_t num_handles
Definition hci_types.h:757
Definition hci_types.h:548
uint8_t reason
Definition hci_types.h:550
bt_addr_t bdaddr
Definition hci_types.h:549
Definition hci_types.h:519
uint8_t capability
Definition hci_types.h:521
uint8_t authentication
Definition hci_types.h:523
uint8_t oob_data
Definition hci_types.h:522
bt_addr_t bdaddr
Definition hci_types.h:520
Definition hci_types.h:2189
uint16_t handle
Definition hci_types.h:2190
Definition hci_types.h:1169
bt_addr_le_t addr
Definition hci_types.h:1170
Definition hci_types.h:1780
uint8_t sid
Definition hci_types.h:1782
bt_addr_le_t addr
Definition hci_types.h:1781
Definition hci_types.h:1354
bt_addr_le_t peer_id_addr
Definition hci_types.h:1355
uint8_t local_irk[16]
Definition hci_types.h:1357
uint8_t peer_irk[16]
Definition hci_types.h:1356
Definition hci_types.h:2247
uint8_t bcode[16]
Definition hci_types.h:2251
uint8_t mse
Definition hci_types.h:2252
uint8_t encryption
Definition hci_types.h:2250
uint16_t sync_timeout
Definition hci_types.h:2253
uint8_t big_handle
Definition hci_types.h:2248
uint8_t bis[0]
Definition hci_types.h:2255
uint16_t sync_handle
Definition hci_types.h:2249
uint8_t num_bis
Definition hci_types.h:2254
Definition hci_types.h:2259
uint8_t big_handle
Definition hci_types.h:2260
Definition hci_types.h:1948
uint8_t requested_cte_length
Definition hci_types.h:1952
uint8_t requested_cte_type
Definition hci_types.h:1953
uint16_t cte_request_interval
Definition hci_types.h:1951
uint8_t enable
Definition hci_types.h:1950
uint16_t handle
Definition hci_types.h:1949
Definition hci_types.h:1962
uint16_t handle
Definition hci_types.h:1963
uint8_t enable
Definition hci_types.h:1964
Definition hci_types.h:1301
uint16_t handle
Definition hci_types.h:1302
uint8_t reason
Definition hci_types.h:1303
Definition hci_types.h:1286
uint16_t interval_min
Definition hci_types.h:1288
uint16_t min_ce_len
Definition hci_types.h:1292
uint16_t latency
Definition hci_types.h:1290
uint16_t max_ce_len
Definition hci_types.h:1293
uint16_t handle
Definition hci_types.h:1287
uint16_t interval_max
Definition hci_types.h:1289
uint16_t timeout
Definition hci_types.h:1291
Definition hci_types.h:2221
uint16_t max_pdu
Definition hci_types.h:2229
uint8_t pto
Definition hci_types.h:2235
uint8_t sdu_interval[3]
Definition hci_types.h:2225
uint8_t bcode[16]
Definition hci_types.h:2237
uint8_t nse
Definition hci_types.h:2227
uint8_t packing
Definition hci_types.h:2231
uint8_t encryption
Definition hci_types.h:2236
uint16_t iso_interval
Definition hci_types.h:2226
uint8_t irc
Definition hci_types.h:2234
uint8_t num_bis
Definition hci_types.h:2224
uint8_t phy
Definition hci_types.h:2230
uint8_t bn
Definition hci_types.h:2233
uint16_t max_sdu
Definition hci_types.h:2228
uint8_t big_handle
Definition hci_types.h:2222
uint8_t framing
Definition hci_types.h:2232
uint8_t adv_handle
Definition hci_types.h:2223
Definition hci_types.h:2205
uint16_t max_sdu
Definition hci_types.h:2210
uint8_t bcode[16]
Definition hci_types.h:2217
uint16_t max_latency
Definition hci_types.h:2211
uint8_t rtn
Definition hci_types.h:2212
uint8_t sdu_interval[3]
Definition hci_types.h:2209
uint8_t framing
Definition hci_types.h:2215
uint8_t encryption
Definition hci_types.h:2216
uint8_t phy
Definition hci_types.h:2213
uint8_t adv_handle
Definition hci_types.h:2207
uint8_t packing
Definition hci_types.h:2214
uint8_t num_bis
Definition hci_types.h:2208
uint8_t big_handle
Definition hci_types.h:2206
Definition hci_types.h:2173
struct bt_hci_cis cis[0]
Definition hci_types.h:2175
uint8_t num_cis
Definition hci_types.h:2174
Definition hci_types.h:1144
uint16_t scan_interval
Definition hci_types.h:1145
uint8_t filter_policy
Definition hci_types.h:1147
uint16_t min_ce_len
Definition hci_types.h:1154
uint16_t conn_latency
Definition hci_types.h:1152
uint16_t max_ce_len
Definition hci_types.h:1155
uint8_t own_addr_type
Definition hci_types.h:1149
uint16_t conn_interval_min
Definition hci_types.h:1150
uint16_t conn_interval_max
Definition hci_types.h:1151
bt_addr_le_t peer_addr
Definition hci_types.h:1148
uint16_t scan_window
Definition hci_types.h:1146
uint16_t supervision_timeout
Definition hci_types.h:1153
Definition hci_types.h:2690
uint8_t ch3c_jump
Definition hci_types.h:2707
uint8_t channel_selection_type
Definition hci_types.h:2705
uint8_t sub_mode_type
Definition hci_types.h:2695
uint16_t handle
Definition hci_types.h:2691
uint8_t reserved
Definition hci_types.h:2708
uint8_t role
Definition hci_types.h:2700
uint8_t rtt_type
Definition hci_types.h:2701
uint8_t main_mode_type
Definition hci_types.h:2694
uint8_t channel_map_repetition
Definition hci_types.h:2704
uint8_t mode_0_steps
Definition hci_types.h:2699
uint8_t create_context
Definition hci_types.h:2693
uint8_t max_main_mode_steps
Definition hci_types.h:2697
uint8_t channel_map[10]
Definition hci_types.h:2703
uint8_t cs_sync_phy
Definition hci_types.h:2702
uint8_t main_mode_repetition
Definition hci_types.h:2698
uint8_t ch3c_shape
Definition hci_types.h:2706
uint8_t config_id
Definition hci_types.h:2692
uint8_t min_main_mode_steps
Definition hci_types.h:2696
Definition hci_types.h:2713
uint16_t handle
Definition hci_types.h:2714
uint8_t config_id
Definition hci_types.h:2715
Definition hci_types.h:2486
uint8_t role_enable
Definition hci_types.h:2488
uint16_t handle
Definition hci_types.h:2487
int8_t max_tx_power
Definition hci_types.h:2490
uint8_t cs_sync_antenna_selection
Definition hci_types.h:2489
Definition hci_types.h:2053
uint16_t timeout
Definition hci_types.h:2056
uint16_t skip
Definition hci_types.h:2055
uint8_t mode
Definition hci_types.h:2054
uint8_t cte_type
Definition hci_types.h:2057
Definition hci_types.h:1210
uint8_t key[16]
Definition hci_types.h:1211
uint8_t plaintext[16]
Definition hci_types.h:1212
Definition hci_types.h:1474
uint8_t rx_ch
Definition hci_types.h:1475
uint8_t mod_index
Definition hci_types.h:1477
uint8_t phy
Definition hci_types.h:1476
Definition hci_types.h:1486
uint8_t tx_ch
Definition hci_types.h:1487
uint8_t phy
Definition hci_types.h:1490
uint8_t pkt_payload
Definition hci_types.h:1489
uint8_t test_data_len
Definition hci_types.h:1488
Definition hci_types.h:1687
uint8_t own_addr_type
Definition hci_types.h:1691
bt_addr_le_t peer_addr
Definition hci_types.h:1692
uint8_t subevent
Definition hci_types.h:1689
uint8_t filter_policy
Definition hci_types.h:1690
struct bt_hci_ext_conn_phy p[0]
Definition hci_types.h:1694
uint8_t adv_handle
Definition hci_types.h:1688
uint8_t phys
Definition hci_types.h:1693
Definition hci_types.h:1679
uint8_t filter_policy
Definition hci_types.h:1680
uint8_t own_addr_type
Definition hci_types.h:1681
bt_addr_le_t peer_addr
Definition hci_types.h:1682
struct bt_hci_ext_conn_phy p[0]
Definition hci_types.h:1684
uint8_t phys
Definition hci_types.h:1683
Definition hci_types.h:1347
uint8_t key_type
Definition hci_types.h:1349
uint8_t key[64]
Definition hci_types.h:1348
Definition hci_types.h:1337
uint8_t key[64]
Definition hci_types.h:1338
Definition hci_types.h:2316
uint8_t payload_type
Definition hci_types.h:2318
uint16_t handle
Definition hci_types.h:2317
Definition hci_types.h:2340
uint16_t handle
Definition hci_types.h:2341
Definition hci_types.h:2305
uint8_t payload_type
Definition hci_types.h:2307
uint16_t handle
Definition hci_types.h:2306
Definition hci_types.h:1244
uint16_t handle
Definition hci_types.h:1245
Definition hci_types.h:1234
uint8_t ltk[16]
Definition hci_types.h:1236
uint16_t handle
Definition hci_types.h:1235
Definition hci_types.h:2039
uint8_t cte_type
Definition hci_types.h:2044
uint16_t skip
Definition hci_types.h:2042
uint16_t conn_handle
Definition hci_types.h:2040
uint8_t mode
Definition hci_types.h:2041
uint16_t timeout
Definition hci_types.h:2043
Definition hci_types.h:1763
bt_addr_le_t addr
Definition hci_types.h:1766
uint16_t sync_timeout
Definition hci_types.h:1768
uint16_t skip
Definition hci_types.h:1767
uint8_t cte_type
Definition hci_types.h:1769
uint8_t sid
Definition hci_types.h:1765
uint8_t options
Definition hci_types.h:1764
Definition hci_types.h:2016
uint16_t conn_handle
Definition hci_types.h:2017
uint16_t service_data
Definition hci_types.h:2018
uint8_t adv_handle
Definition hci_types.h:2019
Definition hci_types.h:2004
uint16_t service_data
Definition hci_types.h:2006
uint16_t sync_handle
Definition hci_types.h:2007
uint16_t conn_handle
Definition hci_types.h:2005
Definition hci_types.h:1775
uint16_t handle
Definition hci_types.h:1776
Definition hci_types.h:2537
uint8_t enable
Definition hci_types.h:2540
uint8_t config_id
Definition hci_types.h:2539
uint16_t handle
Definition hci_types.h:2538
Definition hci_types.h:1195
uint16_t handle
Definition hci_types.h:1196
Definition hci_types.h:2074
uint16_t handle
Definition hci_types.h:2075
Definition hci_types.h:1383
bt_addr_le_t peer_id_addr
Definition hci_types.h:1384
Definition hci_types.h:1374
bt_addr_le_t peer_id_addr
Definition hci_types.h:1375
Definition hci_types.h:1429
uint16_t handle
Definition hci_types.h:1430
Definition hci_types.h:2495
uint16_t handle
Definition hci_types.h:2496
Definition hci_types.h:1205
uint16_t handle
Definition hci_types.h:1206
uint16_t handle
Definition hci_types.h:2435
Definition hci_types.h:2327
uint16_t handle
Definition hci_types.h:2328
Definition hci_types.h:671
uint8_t phy
Definition hci_types.h:673
uint16_t handle
Definition hci_types.h:672
Definition hci_types.h:2194
uint16_t handle
Definition hci_types.h:2195
uint8_t reason
Definition hci_types.h:2196
Definition hci_types.h:1174
bt_addr_le_t addr
Definition hci_types.h:1175
Definition hci_types.h:1786
uint8_t sid
Definition hci_types.h:1788
bt_addr_le_t addr
Definition hci_types.h:1787
Definition hci_types.h:1361
bt_addr_le_t peer_id_addr
Definition hci_types.h:1362
Definition hci_types.h:1596
uint8_t handle
Definition hci_types.h:1597
Definition hci_types.h:2179
uint8_t cig_id
Definition hci_types.h:2180
Definition hci_types.h:2290
uint8_t path_dir
Definition hci_types.h:2292
uint16_t handle
Definition hci_types.h:2291
Definition hci_types.h:2269
uint16_t handle
Definition hci_types.h:2270
Definition hci_types.h:1834
uint8_t expected_cte_type
Definition hci_types.h:1839
uint8_t slot_durations
Definition hci_types.h:1840
uint8_t mod_index
Definition hci_types.h:1837
uint8_t ant_ids[0]
Definition hci_types.h:1842
uint8_t switch_pattern_len
Definition hci_types.h:1841
uint8_t rx_ch
Definition hci_types.h:1835
uint8_t expected_cte_len
Definition hci_types.h:1838
uint8_t phy
Definition hci_types.h:1836
Definition hci_types.h:1259
uint8_t rx_ch
Definition hci_types.h:1260
Definition hci_types.h:2467
uint16_t handle
Definition hci_types.h:2468
Definition hci_types.h:1395
uint8_t enable
Definition hci_types.h:1396
Definition hci_types.h:1089
uint8_t len
Definition hci_types.h:1090
uint8_t data[31]
Definition hci_types.h:1091
Definition hci_types.h:1104
uint8_t enable
Definition hci_types.h:1105
Definition hci_types.h:1072
uint8_t channel_map
Definition hci_types.h:1078
uint16_t min_interval
Definition hci_types.h:1073
uint8_t filter_policy
Definition hci_types.h:1079
uint8_t type
Definition hci_types.h:1075
uint16_t max_interval
Definition hci_types.h:1074
bt_addr_le_t direct_addr
Definition hci_types.h:1077
uint8_t own_addr_type
Definition hci_types.h:1076
Definition hci_types.h:1494
bt_addr_t bdaddr
Definition hci_types.h:1496
uint8_t handle
Definition hci_types.h:1495
Definition hci_types.h:2146
uint8_t p_interval[3]
Definition hci_types.h:2149
uint8_t cig_id
Definition hci_types.h:2147
uint8_t sca
Definition hci_types.h:2153
uint8_t c_ft
Definition hci_types.h:2150
uint8_t framing
Definition hci_types.h:2155
uint8_t num_cis
Definition hci_types.h:2156
struct bt_hci_cis_params_test cis[0]
Definition hci_types.h:2157
uint8_t packing
Definition hci_types.h:2154
uint8_t c_interval[3]
Definition hci_types.h:2148
uint16_t iso_interval
Definition hci_types.h:2152
uint8_t p_ft
Definition hci_types.h:2151
Definition hci_types.h:2112
uint8_t c_interval[3]
Definition hci_types.h:2114
uint8_t sca
Definition hci_types.h:2116
uint8_t p_interval[3]
Definition hci_types.h:2115
uint8_t packing
Definition hci_types.h:2117
uint8_t cig_id
Definition hci_types.h:2113
uint16_t p_latency
Definition hci_types.h:2120
uint8_t framing
Definition hci_types.h:2118
struct bt_hci_cis_params cis[0]
Definition hci_types.h:2122
uint8_t num_cis
Definition hci_types.h:2121
uint16_t c_latency
Definition hci_types.h:2119
Definition hci_types.h:1894
uint8_t max_sampled_cte
Definition hci_types.h:1898
uint8_t switch_pattern_len
Definition hci_types.h:1899
uint8_t ant_ids[0]
Definition hci_types.h:1900
uint16_t sync_handle
Definition hci_types.h:1895
uint8_t slot_durations
Definition hci_types.h:1897
uint8_t sampling_enable
Definition hci_types.h:1896
Definition hci_types.h:1881
uint8_t cte_enable
Definition hci_types.h:1883
uint8_t handle
Definition hci_types.h:1882
Definition hci_types.h:1871
uint8_t ant_ids[0]
Definition hci_types.h:1877
uint8_t switch_pattern_len
Definition hci_types.h:1876
uint8_t cte_type
Definition hci_types.h:1874
uint8_t handle
Definition hci_types.h:1872
uint8_t cte_len
Definition hci_types.h:1873
uint8_t cte_count
Definition hci_types.h:1875
Definition hci_types.h:1909
uint8_t ant_ids[0]
Definition hci_types.h:1914
uint8_t sampling_enable
Definition hci_types.h:1911
uint8_t slot_durations
Definition hci_types.h:1912
uint16_t handle
Definition hci_types.h:1910
uint8_t switch_pattern_len
Definition hci_types.h:1913
Definition hci_types.h:1930
uint8_t switch_pattern_len
Definition hci_types.h:1933
uint8_t cte_types
Definition hci_types.h:1932
uint8_t ant_ids[0]
Definition hci_types.h:1934
uint16_t handle
Definition hci_types.h:1931
Definition hci_types.h:1311
uint16_t tx_time
Definition hci_types.h:1314
uint16_t handle
Definition hci_types.h:1312
uint16_t tx_octets
Definition hci_types.h:1313
Definition hci_types.h:1447
uint8_t tx_phys
Definition hci_types.h:1449
uint8_t rx_phys
Definition hci_types.h:1450
uint8_t all_phys
Definition hci_types.h:1448
Definition hci_types.h:715
uint16_t max_latency
Definition hci_types.h:718
uint16_t supervision_timeout
Definition hci_types.h:720
uint16_t subrate_min
Definition hci_types.h:716
uint16_t subrate_max
Definition hci_types.h:717
uint16_t continuation_number
Definition hci_types.h:719
Definition hci_types.h:1028
uint8_t events[8]
Definition hci_types.h:1029
Definition hci_types.h:1553
uint8_t data[0]
Definition hci_types.h:1558
uint8_t handle
Definition hci_types.h:1554
uint8_t op
Definition hci_types.h:1555
uint8_t len
Definition hci_types.h:1557
uint8_t frag_pref
Definition hci_types.h:1556
Definition hci_types.h:1577
struct bt_hci_ext_adv_set s[0]
Definition hci_types.h:1580
uint8_t set_num
Definition hci_types.h:1579
uint8_t enable
Definition hci_types.h:1578
Definition hci_types.h:1520
uint8_t prim_adv_phy
Definition hci_types.h:1530
uint8_t prim_max_interval[3]
Definition hci_types.h:1524
uint8_t filter_policy
Definition hci_types.h:1528
uint8_t own_addr_type
Definition hci_types.h:1526
uint16_t props
Definition hci_types.h:1522
uint8_t sec_adv_max_skip
Definition hci_types.h:1531
int8_t tx_power
Definition hci_types.h:1529
uint8_t handle
Definition hci_types.h:1521
bt_addr_le_t peer_addr
Definition hci_types.h:1527
uint8_t prim_min_interval[3]
Definition hci_types.h:1523
uint8_t sec_adv_phy
Definition hci_types.h:1532
uint8_t prim_channel_map
Definition hci_types.h:1525
uint8_t scan_req_notify_enable
Definition hci_types.h:1534
uint8_t sid
Definition hci_types.h:1533
Definition hci_types.h:1659
uint8_t enable
Definition hci_types.h:1660
uint8_t filter_dup
Definition hci_types.h:1661
uint16_t period
Definition hci_types.h:1663
uint16_t duration
Definition hci_types.h:1662
Definition hci_types.h:1648
uint8_t own_addr_type
Definition hci_types.h:1649
uint8_t filter_policy
Definition hci_types.h:1650
uint8_t phys
Definition hci_types.h:1651
struct bt_hci_ext_scan_phy p[0]
Definition hci_types.h:1652
Definition hci_types.h:1562
uint8_t op
Definition hci_types.h:1564
uint8_t len
Definition hci_types.h:1566
uint8_t handle
Definition hci_types.h:1563
uint8_t data[0]
Definition hci_types.h:1567
uint8_t frag_pref
Definition hci_types.h:1565
Definition hci_types.h:1190
uint8_t ch_map[5]
Definition hci_types.h:1191
Definition hci_types.h:2353
uint8_t bit_value
Definition hci_types.h:2355
uint8_t bit_number
Definition hci_types.h:2354
uint8_t enable
Definition hci_types.h:706
uint16_t handle
Definition hci_types.h:705
uint16_t min_time_spent
Definition hci_types.h:701
uint8_t low_hysteresis
Definition hci_types.h:700
uint16_t handle
Definition hci_types.h:696
uint8_t low_threshold
Definition hci_types.h:699
uint8_t high_hysteresis
Definition hci_types.h:698
uint8_t high_threshold
Definition hci_types.h:697
Definition hci_types.h:1714
uint16_t sync_handle
Definition hci_types.h:1715
uint8_t response_data[0]
Definition hci_types.h:1721
uint8_t response_slot
Definition hci_types.h:1719
uint8_t request_subevent
Definition hci_types.h:1717
uint8_t response_data_length
Definition hci_types.h:1720
uint8_t response_subevent
Definition hci_types.h:1718
uint16_t request_event
Definition hci_types.h:1716
uint8_t response_slot_start
Definition hci_types.h:1700
uint8_t subevent_data[0]
Definition hci_types.h:1703
uint8_t subevent
Definition hci_types.h:1699
uint8_t subevent_data_length
Definition hci_types.h:1702
uint8_t response_slot_count
Definition hci_types.h:1701
Definition hci_types.h:1706
uint8_t adv_handle
Definition hci_types.h:1707
uint8_t num_subevents
Definition hci_types.h:1708
struct bt_hci_cp_le_set_pawr_subevent_data_element subevents[0]
Definition hci_types.h:1709
Definition hci_types.h:1725
uint8_t num_subevents
Definition hci_types.h:1728
uint16_t sync_handle
Definition hci_types.h:1726
uint8_t subevents[0]
Definition hci_types.h:1729
uint16_t periodic_adv_properties
Definition hci_types.h:1727
Definition hci_types.h:1621
uint8_t handle
Definition hci_types.h:1622
uint8_t op
Definition hci_types.h:1623
uint8_t data[0]
Definition hci_types.h:1625
uint8_t len
Definition hci_types.h:1624
Definition hci_types.h:1632
uint8_t handle
Definition hci_types.h:1634
uint8_t enable
Definition hci_types.h:1633
Definition hci_types.h:1734
uint8_t num_response_slots
Definition hci_types.h:1743
uint8_t response_slot_spacing
Definition hci_types.h:1742
uint8_t subevent_interval
Definition hci_types.h:1740
uint8_t num_subevents
Definition hci_types.h:1739
uint16_t max_interval
Definition hci_types.h:1737
uint8_t response_slot_delay
Definition hci_types.h:1741
uint16_t props
Definition hci_types.h:1738
uint16_t min_interval
Definition hci_types.h:1736
uint8_t handle
Definition hci_types.h:1735
Definition hci_types.h:1606
uint16_t max_interval
Definition hci_types.h:1609
uint8_t handle
Definition hci_types.h:1607
uint16_t props
Definition hci_types.h:1610
uint16_t min_interval
Definition hci_types.h:1608
Definition hci_types.h:1998
uint16_t handle
Definition hci_types.h:1999
uint8_t enable
Definition hci_types.h:2000
Definition hci_types.h:1458
uint8_t tx_phys
Definition hci_types.h:1461
uint16_t phy_opts
Definition hci_types.h:1463
uint8_t rx_phys
Definition hci_types.h:1462
uint16_t handle
Definition hci_types.h:1459
uint8_t all_phys
Definition hci_types.h:1460
Definition hci_types.h:1823
bt_addr_le_t id_addr
Definition hci_types.h:1824
uint8_t mode
Definition hci_types.h:1825
Definition hci_types.h:2515
uint16_t min_procedure_interval
Definition hci_types.h:2519
uint8_t min_subevent_len[3]
Definition hci_types.h:2522
uint16_t max_procedure_len
Definition hci_types.h:2518
uint8_t preferred_peer_antenna
Definition hci_types.h:2527
uint8_t config_id
Definition hci_types.h:2517
uint8_t snr_control_initiator
Definition hci_types.h:2528
uint8_t snr_control_reflector
Definition hci_types.h:2529
uint8_t tone_antenna_config_selection
Definition hci_types.h:2524
uint8_t max_subevent_len[3]
Definition hci_types.h:2523
uint16_t handle
Definition hci_types.h:2516
uint16_t max_procedure_count
Definition hci_types.h:2521
uint16_t max_procedure_interval
Definition hci_types.h:2520
uint8_t tx_power_delta
Definition hci_types.h:2526
uint8_t phy
Definition hci_types.h:2525
Definition hci_types.h:1046
bt_addr_t bdaddr
Definition hci_types.h:1047
Definition hci_types.h:1400
uint16_t rpa_timeout
Definition hci_types.h:1401
Definition hci_types.h:1134
uint8_t enable
Definition hci_types.h:1135
uint8_t filter_dup
Definition hci_types.h:1136
Definition hci_types.h:1118
uint16_t window
Definition hci_types.h:1121
uint8_t addr_type
Definition hci_types.h:1122
uint8_t filter_policy
Definition hci_types.h:1123
uint8_t scan_type
Definition hci_types.h:1119
uint16_t interval
Definition hci_types.h:1120
Definition hci_types.h:1095
uint8_t len
Definition hci_types.h:1096
uint8_t data[31]
Definition hci_types.h:1097
Definition hci_types.h:689
uint8_t local_enable
Definition hci_types.h:691
uint16_t handle
Definition hci_types.h:690
uint8_t remote_enable
Definition hci_types.h:692
Definition hci_types.h:2274
uint16_t handle
Definition hci_types.h:2275
uint8_t codec_config_len
Definition hci_types.h:2280
uint8_t controller_delay[3]
Definition hci_types.h:2279
struct bt_hci_cp_codec_id codec_id
Definition hci_types.h:2278
uint8_t path_id
Definition hci_types.h:2277
uint8_t path_dir
Definition hci_types.h:2276
uint8_t codec_config[0]
Definition hci_types.h:2281
Definition hci_types.h:1226
uint16_t handle
Definition hci_types.h:1227
uint16_t ediv
Definition hci_types.h:1229
uint8_t ltk[16]
Definition hci_types.h:1230
uint64_t rand
Definition hci_types.h:1228
Definition hci_types.h:723
uint16_t max_latency
Definition hci_types.h:727
uint16_t subrate_min
Definition hci_types.h:725
uint16_t handle
Definition hci_types.h:724
uint16_t subrate_max
Definition hci_types.h:726
uint16_t supervision_timeout
Definition hci_types.h:729
uint16_t continuation_number
Definition hci_types.h:728
Definition hci_types.h:2241
uint8_t reason
Definition hci_types.h:2243
uint8_t big_handle
Definition hci_types.h:2242
Definition hci_types.h:1847
uint8_t test_data_len
Definition hci_types.h:1849
uint8_t switch_pattern_len
Definition hci_types.h:1854
uint8_t cte_len
Definition hci_types.h:1852
uint8_t tx_ch
Definition hci_types.h:1848
uint8_t phy
Definition hci_types.h:1851
uint8_t pkt_payload
Definition hci_types.h:1850
uint8_t cte_type
Definition hci_types.h:1853
uint8_t ant_ids[0]
Definition hci_types.h:1855
Definition hci_types.h:2402
int8_t tx_power
Definition hci_types.h:2403
Definition hci_types.h:2381
uint8_t switch_pattern_len
Definition hci_types.h:2388
uint8_t tx_ch
Definition hci_types.h:2382
uint8_t ant_ids[0]
Definition hci_types.h:2389
uint8_t phy
Definition hci_types.h:2385
uint8_t test_data_len
Definition hci_types.h:2383
uint8_t cte_len
Definition hci_types.h:2386
uint8_t pkt_payload
Definition hci_types.h:2384
uint8_t cte_type
Definition hci_types.h:2387
Definition hci_types.h:1273
uint8_t test_data_len
Definition hci_types.h:1275
uint8_t tx_ch
Definition hci_types.h:1274
uint8_t pkt_payload
Definition hci_types.h:1276
uint16_t handle
Definition hci_types.h:2502
uint8_t remote_fae_table[72]
Definition hci_types.h:2503
uint16_t t_ip2_times_supported
Definition hci_types.h:2458
uint16_t t_ip1_times_supported
Definition hci_types.h:2457
uint16_t nadm_random_capability
Definition hci_types.h:2454
uint16_t nadm_sounding_capability
Definition hci_types.h:2453
uint16_t subfeatures_supported
Definition hci_types.h:2456
uint8_t rtt_sounding_n
Definition hci_types.h:2451
uint8_t num_config_supported
Definition hci_types.h:2443
uint16_t t_pm_times_supported
Definition hci_types.h:2460
uint16_t handle
Definition hci_types.h:2442
uint8_t rtt_random_payload_n
Definition hci_types.h:2452
uint8_t cs_sync_phys_supported
Definition hci_types.h:2455
uint8_t modes_supported
Definition hci_types.h:2448
uint8_t rtt_capability
Definition hci_types.h:2449
uint8_t max_antenna_paths_supported
Definition hci_types.h:2446
uint8_t num_antennas_supported
Definition hci_types.h:2445
uint8_t tx_snr_capability
Definition hci_types.h:2462
uint8_t t_sw_time_supported
Definition hci_types.h:2461
uint8_t rtt_aa_only_n
Definition hci_types.h:2450
uint8_t roles_supported
Definition hci_types.h:2447
uint16_t t_fcs_times_supported
Definition hci_types.h:2459
uint16_t max_consecutive_procedures_supported
Definition hci_types.h:2444
Definition hci_types.h:1329
uint16_t max_tx_octets
Definition hci_types.h:1330
uint16_t max_tx_time
Definition hci_types.h:1331
Definition hci_types.h:1814
int16_t rx_path_comp
Definition hci_types.h:1816
int16_t tx_path_comp
Definition hci_types.h:1815
Definition hci_types.h:466
bt_addr_t bdaddr
Definition hci_types.h:467
Definition hci_types.h:455
bt_addr_t bdaddr
Definition hci_types.h:456
uint8_t pin_len
Definition hci_types.h:457
uint8_t pin_code[16]
Definition hci_types.h:458
Definition hci_types.h:788
uint16_t handle
Definition hci_types.h:789
Definition hci_types.h:972
uint8_t direction
Definition hci_types.h:975
uint8_t transport
Definition hci_types.h:974
struct bt_hci_cp_codec_id codec_id
Definition hci_types.h:973
Definition hci_types.h:989
struct bt_hci_cp_codec_id codec_id
Definition hci_types.h:990
uint8_t direction
Definition hci_types.h:992
uint8_t transport
Definition hci_types.h:991
uint8_t codec_config[0]
Definition hci_types.h:994
uint8_t codec_config_len
Definition hci_types.h:993
Definition hci_types.h:1016
uint16_t handle
Definition hci_types.h:1017
Definition hci_types.h:855
uint8_t page
Definition hci_types.h:856
Definition hci_types.h:508
uint8_t page
Definition hci_types.h:510
uint16_t handle
Definition hci_types.h:509
Definition hci_types.h:503
uint16_t handle
Definition hci_types.h:504
Definition hci_types.h:514
uint16_t handle
Definition hci_types.h:515
Definition hci_types.h:1003
uint16_t handle
Definition hci_types.h:1004
Definition hci_types.h:655
uint8_t type
Definition hci_types.h:657
uint16_t handle
Definition hci_types.h:656
Definition hci_types.h:438
uint8_t reason
Definition hci_types.h:440
bt_addr_t bdaddr
Definition hci_types.h:439
Definition hci_types.h:494
bt_addr_t bdaddr
Definition hci_types.h:495
Definition hci_types.h:486
bt_addr_t bdaddr
Definition hci_types.h:487
uint16_t clock_offset
Definition hci_types.h:490
uint8_t reserved
Definition hci_types.h:489
uint8_t pscan_rep_mode
Definition hci_types.h:488
Definition hci_types.h:480
uint16_t handle
Definition hci_types.h:481
uint8_t encrypt
Definition hci_types.h:482
Definition hci_types.h:738
uint8_t flow_enable
Definition hci_types.h:739
Definition hci_types.h:772
uint8_t events_page_2[8]
Definition hci_types.h:773
Definition hci_types.h:554
uint8_t events[8]
Definition hci_types.h:555
Definition hci_types.h:416
uint32_t rx_bandwidth
Definition hci_types.h:419
uint16_t content_format
Definition hci_types.h:421
uint16_t max_latency
Definition hci_types.h:420
uint8_t retrans_effort
Definition hci_types.h:422
uint16_t pkt_type
Definition hci_types.h:423
uint32_t tx_bandwidth
Definition hci_types.h:418
uint16_t handle
Definition hci_types.h:417
Definition hci_types.h:528
bt_addr_t bdaddr
Definition hci_types.h:529
Definition hci_types.h:543
bt_addr_t bdaddr
Definition hci_types.h:544
Definition hci_types.h:537
bt_addr_t bdaddr
Definition hci_types.h:538
uint32_t passkey
Definition hci_types.h:539
Definition hci_types.h:799
uint16_t auth_payload_timeout
Definition hci_types.h:801
uint16_t handle
Definition hci_types.h:800
Definition hci_types.h:648
uint8_t class_of_device[3]
Definition hci_types.h:649
Definition hci_types.h:572
uint16_t conn_accept_timeout
Definition hci_types.h:573
Definition hci_types.h:762
uint8_t mode
Definition hci_types.h:763
Definition hci_types.h:777
uint8_t le
Definition hci_types.h:778
uint8_t simul
Definition hci_types.h:779
Definition hci_types.h:783
uint8_t sc_support
Definition hci_types.h:784
Definition hci_types.h:767
uint8_t mode
Definition hci_types.h:768
Definition hci_types.h:2754
uint16_t handle
Definition hci_types.h:2756
uint8_t status
Definition hci_types.h:2755
Definition hci_types.h:3042
uint16_t handle
Definition hci_types.h:3043
Definition hci_types.h:2795
uint8_t status
Definition hci_types.h:2796
Definition hci_types.h:2790
uint16_t opcode
Definition hci_types.h:2792
uint8_t ncmd
Definition hci_types.h:2791
Definition hci_types.h:2800
uint16_t opcode
Definition hci_types.h:2803
uint8_t ncmd
Definition hci_types.h:2802
uint8_t status
Definition hci_types.h:2801
Definition hci_types.h:2731
uint8_t status
Definition hci_types.h:2732
bt_addr_t bdaddr
Definition hci_types.h:2734
uint8_t encr_enabled
Definition hci_types.h:2736
uint16_t handle
Definition hci_types.h:2733
uint8_t link_type
Definition hci_types.h:2735
Definition hci_types.h:2740
bt_addr_t bdaddr
Definition hci_types.h:2741
uint8_t dev_class[3]
Definition hci_types.h:2742
uint8_t link_type
Definition hci_types.h:2743
Definition hci_types.h:2858
uint8_t link_type
Definition hci_types.h:2859
Definition hci_types.h:2747
uint8_t reason
Definition hci_types.h:2750
uint16_t handle
Definition hci_types.h:2749
uint8_t status
Definition hci_types.h:2748
Definition hci_types.h:2767
uint8_t encrypt
Definition hci_types.h:2770
uint16_t handle
Definition hci_types.h:2769
uint8_t status
Definition hci_types.h:2768
Definition hci_types.h:2995
uint16_t handle
Definition hci_types.h:2997
uint8_t status
Definition hci_types.h:2996
Definition hci_types.h:2983
uint8_t eir[240]
Definition hci_types.h:2991
int8_t rssi
Definition hci_types.h:2990
uint16_t clock_offset
Definition hci_types.h:2989
uint8_t num_reports
Definition hci_types.h:2984
bt_addr_t addr
Definition hci_types.h:2985
uint8_t cod[3]
Definition hci_types.h:2988
uint8_t reserved
Definition hci_types.h:2987
uint8_t pscan_rep_mode
Definition hci_types.h:2986
Definition hci_types.h:2807
uint8_t hardware_code
Definition hci_types.h:2808
Definition hci_types.h:60
uint8_t len
Definition hci_types.h:62
uint8_t evt
Definition hci_types.h:61
Definition hci_types.h:2726
uint8_t status
Definition hci_types.h:2727
Definition hci_types.h:2863
uint8_t reserved
Definition hci_types.h:2866
uint8_t pscan_rep_mode
Definition hci_types.h:2865
uint16_t clock_offset
Definition hci_types.h:2868
int8_t rssi
Definition hci_types.h:2869
uint8_t cod[3]
Definition hci_types.h:2867
bt_addr_t addr
Definition hci_types.h:2864
Definition hci_types.h:3001
bt_addr_t bdaddr
Definition hci_types.h:3002
Definition hci_types.h:3006
uint8_t authentication
Definition hci_types.h:3010
uint8_t capability
Definition hci_types.h:3008
uint8_t oob_data
Definition hci_types.h:3009
bt_addr_t bdaddr
Definition hci_types.h:3007
Definition hci_types.h:3231
uint8_t num_completed_ext_adv_evts
Definition hci_types.h:3235
uint8_t status
Definition hci_types.h:3232
uint16_t conn_handle
Definition hci_types.h:3234
uint8_t adv_handle
Definition hci_types.h:3233
Definition hci_types.h:3064
uint8_t length
Definition hci_types.h:3067
bt_addr_le_t addr
Definition hci_types.h:3066
uint8_t evt_type
Definition hci_types.h:3065
uint8_t data[0]
Definition hci_types.h:3068
Definition hci_types.h:3070
struct bt_hci_evt_le_advertising_info adv_info[0]
Definition hci_types.h:3072
uint8_t num_reports
Definition hci_types.h:3071
Definition hci_types.h:3352
uint8_t irc
Definition hci_types.h:3361
uint16_t iso_interval
Definition hci_types.h:3363
uint8_t big_handle
Definition hci_types.h:3354
uint8_t bn
Definition hci_types.h:3359
uint8_t latency[3]
Definition hci_types.h:3356
uint8_t sync_delay[3]
Definition hci_types.h:3355
uint8_t pto
Definition hci_types.h:3360
uint16_t max_pdu
Definition hci_types.h:3362
uint8_t num_bis
Definition hci_types.h:3364
uint8_t phy
Definition hci_types.h:3357
uint8_t status
Definition hci_types.h:3353
uint8_t nse
Definition hci_types.h:3358
uint16_t handle[0]
Definition hci_types.h:3365
Definition hci_types.h:3375
uint16_t max_pdu
Definition hci_types.h:3383
uint8_t num_bis
Definition hci_types.h:3385
uint8_t big_handle
Definition hci_types.h:3377
uint8_t nse
Definition hci_types.h:3379
uint8_t bn
Definition hci_types.h:3380
uint16_t handle[0]
Definition hci_types.h:3386
uint16_t iso_interval
Definition hci_types.h:3384
uint8_t pto
Definition hci_types.h:3381
uint8_t status
Definition hci_types.h:3376
uint8_t latency[3]
Definition hci_types.h:3378
uint8_t irc
Definition hci_types.h:3382
Definition hci_types.h:3390
uint8_t reason
Definition hci_types.h:3392
uint8_t big_handle
Definition hci_types.h:3391
Definition hci_types.h:3369
uint8_t reason
Definition hci_types.h:3371
uint8_t big_handle
Definition hci_types.h:3370
Definition hci_types.h:3435
uint16_t max_sdu
Definition hci_types.h:3445
uint16_t max_pdu
Definition hci_types.h:3443
uint8_t phy
Definition hci_types.h:3446
uint8_t sdu_interval[3]
Definition hci_types.h:3444
uint16_t sync_handle
Definition hci_types.h:3436
uint8_t irc
Definition hci_types.h:3442
uint8_t framing
Definition hci_types.h:3447
uint8_t bn
Definition hci_types.h:3440
uint8_t nse
Definition hci_types.h:3438
uint8_t encryption
Definition hci_types.h:3448
uint8_t num_bis
Definition hci_types.h:3437
uint16_t iso_interval
Definition hci_types.h:3439
uint8_t pto
Definition hci_types.h:3441
Definition hci_types.h:3248
uint16_t handle
Definition hci_types.h:3249
uint8_t chan_sel_algo
Definition hci_types.h:3250
Definition hci_types.h:3324
uint16_t interval
Definition hci_types.h:3340
uint8_t p_ft
Definition hci_types.h:3337
uint8_t p_phy
Definition hci_types.h:3332
uint8_t status
Definition hci_types.h:3325
uint8_t c_phy
Definition hci_types.h:3331
uint8_t nse
Definition hci_types.h:3333
uint8_t c_latency[3]
Definition hci_types.h:3329
uint16_t conn_handle
Definition hci_types.h:3326
uint8_t c_bn
Definition hci_types.h:3334
uint8_t cig_sync_delay[3]
Definition hci_types.h:3327
uint8_t p_bn
Definition hci_types.h:3335
uint8_t c_ft
Definition hci_types.h:3336
uint8_t cis_sync_delay[3]
Definition hci_types.h:3328
uint16_t p_max_pdu
Definition hci_types.h:3339
uint16_t c_max_pdu
Definition hci_types.h:3338
uint8_t p_latency[3]
Definition hci_types.h:3330
Definition hci_types.h:3344
uint8_t cis_id
Definition hci_types.h:3348
uint8_t cig_id
Definition hci_types.h:3347
uint16_t cis_handle
Definition hci_types.h:3346
uint16_t acl_handle
Definition hci_types.h:3345
Definition hci_types.h:3050
uint8_t clock_accuracy
Definition hci_types.h:3058
uint16_t supv_timeout
Definition hci_types.h:3057
uint16_t handle
Definition hci_types.h:3052
uint8_t role
Definition hci_types.h:3053
uint8_t status
Definition hci_types.h:3051
bt_addr_le_t peer_addr
Definition hci_types.h:3054
uint16_t latency
Definition hci_types.h:3056
uint16_t interval
Definition hci_types.h:3055
Definition hci_types.h:3106
uint16_t interval_max
Definition hci_types.h:3109
uint16_t handle
Definition hci_types.h:3107
uint16_t interval_min
Definition hci_types.h:3108
uint16_t latency
Definition hci_types.h:3110
uint16_t timeout
Definition hci_types.h:3111
Definition hci_types.h:3083
uint16_t interval
Definition hci_types.h:3086
uint16_t handle
Definition hci_types.h:3085
uint16_t supv_timeout
Definition hci_types.h:3088
uint8_t status
Definition hci_types.h:3084
uint16_t latency
Definition hci_types.h:3087
Definition hci_types.h:3283
uint8_t cte_type
Definition hci_types.h:3289
uint8_t rssi_ant_id
Definition hci_types.h:3288
uint16_t conn_evt_counter
Definition hci_types.h:3292
uint16_t conn_handle
Definition hci_types.h:3284
int16_t rssi
Definition hci_types.h:3287
struct bt_hci_le_iq_sample sample[0]
Definition hci_types.h:3294
uint8_t slot_durations
Definition hci_types.h:3290
uint8_t sample_count
Definition hci_types.h:3293
uint8_t rx_phy
Definition hci_types.h:3285
uint8_t data_chan_idx
Definition hci_types.h:3286
uint8_t packet_status
Definition hci_types.h:3291
Definition hci_types.h:3269
int16_t rssi
Definition hci_types.h:3272
struct bt_hci_le_iq_sample sample[0]
Definition hci_types.h:3279
uint16_t sync_handle
Definition hci_types.h:3270
uint8_t sample_count
Definition hci_types.h:3278
uint8_t cte_type
Definition hci_types.h:3274
uint8_t slot_durations
Definition hci_types.h:3275
uint8_t packet_status
Definition hci_types.h:3276
uint16_t per_evt_counter
Definition hci_types.h:3277
uint8_t chan_idx
Definition hci_types.h:3271
uint8_t rssi_ant_id
Definition hci_types.h:3273
Definition hci_types.h:3563
uint8_t main_mode_type
Definition hci_types.h:3568
uint8_t channel_map_repetition
Definition hci_types.h:3578
uint8_t min_main_mode_steps
Definition hci_types.h:3570
uint16_t handle
Definition hci_types.h:3565
uint8_t config_id
Definition hci_types.h:3566
uint8_t sub_mode_type
Definition hci_types.h:3569
uint8_t ch3c_jump
Definition hci_types.h:3581
uint8_t role
Definition hci_types.h:3574
uint8_t mode_0_steps
Definition hci_types.h:3573
uint8_t ch3c_shape
Definition hci_types.h:3580
uint8_t action
Definition hci_types.h:3567
uint8_t reserved
Definition hci_types.h:3582
uint8_t t_fcs_time
Definition hci_types.h:3585
uint8_t t_pm_time
Definition hci_types.h:3586
uint8_t main_mode_repetition
Definition hci_types.h:3572
uint8_t t_ip2_time
Definition hci_types.h:3584
uint8_t max_main_mode_steps
Definition hci_types.h:3571
uint8_t channel_selection_type
Definition hci_types.h:3579
uint8_t channel_map[10]
Definition hci_types.h:3577
uint8_t cs_sync_phy
Definition hci_types.h:3576
uint8_t rtt_type
Definition hci_types.h:3575
uint8_t status
Definition hci_types.h:3564
uint8_t t_ip1_time
Definition hci_types.h:3583
uint8_t config_id
Definition hci_types.h:3835
uint8_t status
Definition hci_types.h:3833
uint8_t tone_antenna_config_selection
Definition hci_types.h:3837
uint16_t event_interval
Definition hci_types.h:3842
uint16_t max_procedure_len
Definition hci_types.h:3845
uint8_t state
Definition hci_types.h:3836
uint16_t subevent_interval
Definition hci_types.h:3841
uint8_t subevents_per_event
Definition hci_types.h:3840
uint16_t procedure_count
Definition hci_types.h:3844
uint16_t procedure_interval
Definition hci_types.h:3843
uint16_t handle
Definition hci_types.h:3834
uint8_t subevent_len[3]
Definition hci_types.h:3839
uint8_t selected_tx_power
Definition hci_types.h:3838
uint8_t status
Definition hci_types.h:3548
uint8_t remote_fae_table[72]
Definition hci_types.h:3550
uint16_t conn_handle
Definition hci_types.h:3549
uint16_t t_ip2_times_supported
Definition hci_types.h:3539
uint8_t cs_sync_phys_supported
Definition hci_types.h:3536
uint8_t t_sw_time_supported
Definition hci_types.h:3542
uint8_t rtt_random_payload_n
Definition hci_types.h:3533
uint16_t t_fcs_times_supported
Definition hci_types.h:3540
uint8_t max_antenna_paths_supported
Definition hci_types.h:3527
uint16_t nadm_random_capability
Definition hci_types.h:3535
uint8_t num_config_supported
Definition hci_types.h:3524
uint16_t max_consecutive_procedures_supported
Definition hci_types.h:3525
uint16_t subfeatures_supported
Definition hci_types.h:3537
uint16_t t_ip1_times_supported
Definition hci_types.h:3538
uint8_t num_antennas_supported
Definition hci_types.h:3526
uint16_t nadm_sounding_capability
Definition hci_types.h:3534
uint16_t t_pm_times_supported
Definition hci_types.h:3541
uint16_t handle
Definition hci_types.h:3559
uint8_t status
Definition hci_types.h:3558
uint8_t subevent_abort_reason
Definition hci_types.h:3818
uint8_t num_antenna_paths
Definition hci_types.h:3821
uint8_t procedure_abort_reason
Definition hci_types.h:3819
uint8_t procedure_done_status
Definition hci_types.h:3812
uint16_t conn_handle
Definition hci_types.h:3810
uint8_t subevent_done_status
Definition hci_types.h:3813
uint8_t steps[]
Definition hci_types.h:3823
uint8_t config_id
Definition hci_types.h:3811
uint8_t num_steps_reported
Definition hci_types.h:3822
Definition hci_types.h:3779
uint8_t step_channel
Definition hci_types.h:3781
uint8_t step_mode
Definition hci_types.h:3780
uint8_t step_data_length
Definition hci_types.h:3782
uint8_t step_data[]
Definition hci_types.h:3783
Definition hci_types.h:3786
uint16_t start_acl_conn_event_counter
Definition hci_types.h:3789
uint8_t procedure_done_status
Definition hci_types.h:3793
uint8_t config_id
Definition hci_types.h:3788
uint16_t conn_handle
Definition hci_types.h:3787
uint8_t steps[]
Definition hci_types.h:3804
uint8_t num_antenna_paths
Definition hci_types.h:3802
uint8_t reference_power_level
Definition hci_types.h:3792
uint8_t procedure_abort_reason
Definition hci_types.h:3800
uint16_t frequency_compensation
Definition hci_types.h:3791
uint8_t subevent_abort_reason
Definition hci_types.h:3799
uint16_t procedure_counter
Definition hci_types.h:3790
uint8_t subevent_done_status
Definition hci_types.h:3794
uint8_t num_steps_reported
Definition hci_types.h:3803
Definition hci_types.h:3827
uint8_t status
Definition hci_types.h:3828
Definition hci_types.h:3300
uint8_t status
Definition hci_types.h:3306
uint16_t conn_handle
Definition hci_types.h:3307
Definition hci_types.h:3115
uint16_t max_rx_octets
Definition hci_types.h:3119
uint16_t handle
Definition hci_types.h:3116
uint16_t max_tx_time
Definition hci_types.h:3118
uint16_t max_rx_time
Definition hci_types.h:3120
uint16_t max_tx_octets
Definition hci_types.h:3117
Definition hci_types.h:3150
int8_t rssi
Definition hci_types.h:3154
bt_addr_le_t addr
Definition hci_types.h:3152
bt_addr_le_t dir_addr
Definition hci_types.h:3153
uint8_t evt_type
Definition hci_types.h:3151
Definition hci_types.h:3156
struct bt_hci_evt_le_direct_adv_info direct_adv_info[0]
Definition hci_types.h:3158
uint8_t num_reports
Definition hci_types.h:3157
Definition hci_types.h:2954
bt_addr_t peer_rpa
Definition hci_types.h:2960
bt_addr_t local_rpa
Definition hci_types.h:2959
uint16_t interval
Definition hci_types.h:2961
uint16_t supv_timeout
Definition hci_types.h:2963
uint8_t role
Definition hci_types.h:2957
uint16_t latency
Definition hci_types.h:2962
uint8_t clock_accuracy
Definition hci_types.h:2964
bt_addr_le_t peer_addr
Definition hci_types.h:2958
uint16_t sync_handle
Definition hci_types.h:2966
uint8_t adv_handle
Definition hci_types.h:2965
uint8_t status
Definition hci_types.h:2955
uint16_t handle
Definition hci_types.h:2956
Definition hci_types.h:3136
uint16_t handle
Definition hci_types.h:3138
bt_addr_le_t peer_addr
Definition hci_types.h:3140
bt_addr_t peer_rpa
Definition hci_types.h:3142
uint8_t clock_accuracy
Definition hci_types.h:3146
uint16_t latency
Definition hci_types.h:3144
uint16_t supv_timeout
Definition hci_types.h:3145
bt_addr_t local_rpa
Definition hci_types.h:3141
uint16_t interval
Definition hci_types.h:3143
uint8_t status
Definition hci_types.h:3137
uint8_t role
Definition hci_types.h:3139
Definition hci_types.h:3183
uint16_t evt_type
Definition hci_types.h:3184
uint8_t prim_phy
Definition hci_types.h:3186
uint8_t length
Definition hci_types.h:3193
bt_addr_le_t direct_addr
Definition hci_types.h:3192
int8_t tx_power
Definition hci_types.h:3189
uint8_t sid
Definition hci_types.h:3188
int8_t rssi
Definition hci_types.h:3190
uint16_t interval
Definition hci_types.h:3191
uint8_t data[0]
Definition hci_types.h:3194
bt_addr_le_t addr
Definition hci_types.h:3185
uint8_t sec_phy
Definition hci_types.h:3187
Definition hci_types.h:3196
uint8_t num_reports
Definition hci_types.h:3197
struct bt_hci_evt_le_ext_advertising_info adv_info[0]
Definition hci_types.h:3198
Definition hci_types.h:3130
uint8_t status
Definition hci_types.h:3131
uint8_t dhkey[32]
Definition hci_types.h:3132
Definition hci_types.h:3099
uint16_t ediv
Definition hci_types.h:3102
uint64_t rand
Definition hci_types.h:3101
uint16_t handle
Definition hci_types.h:3100
Definition hci_types.h:3037
uint8_t subevent
Definition hci_types.h:3038
Definition hci_types.h:3124
uint8_t status
Definition hci_types.h:3125
uint8_t key[64]
Definition hci_types.h:3126
Definition hci_types.h:2910
uint16_t sync_handle
Definition hci_types.h:2914
uint8_t adv_sid
Definition hci_types.h:2915
uint16_t interval
Definition hci_types.h:2918
uint8_t clock_accuracy
Definition hci_types.h:2919
uint8_t response_slot_delay
Definition hci_types.h:2922
uint8_t num_subevents
Definition hci_types.h:2920
uint8_t response_slot_spacing
Definition hci_types.h:2923
uint16_t service_data
Definition hci_types.h:2913
uint16_t conn_handle
Definition hci_types.h:2912
uint8_t phy
Definition hci_types.h:2917
uint8_t subevent_interval
Definition hci_types.h:2921
uint8_t status
Definition hci_types.h:2911
bt_addr_le_t addr
Definition hci_types.h:2916
Definition hci_types.h:3311
uint8_t clock_accuracy
Definition hci_types.h:3320
uint8_t adv_sid
Definition hci_types.h:3316
uint8_t status
Definition hci_types.h:3312
uint16_t conn_handle
Definition hci_types.h:3313
uint16_t sync_handle
Definition hci_types.h:3315
bt_addr_le_t addr
Definition hci_types.h:3317
uint16_t interval
Definition hci_types.h:3319
uint16_t service_data
Definition hci_types.h:3314
uint8_t phy
Definition hci_types.h:3318
Definition hci_types.h:3408
uint16_t handle
Definition hci_types.h:3409
uint8_t current_path_loss
Definition hci_types.h:3410
uint8_t zone_entered
Definition hci_types.h:3411
Definition hci_types.h:2945
uint8_t num_responses
Definition hci_types.h:2949
struct bt_hci_evt_le_per_adv_response responses[0]
Definition hci_types.h:2950
uint8_t tx_status
Definition hci_types.h:2948
uint8_t adv_handle
Definition hci_types.h:2946
uint8_t subevent
Definition hci_types.h:2947
Definition hci_types.h:2935
int8_t rssi
Definition hci_types.h:2937
uint8_t cte_type
Definition hci_types.h:2938
int8_t tx_power
Definition hci_types.h:2936
uint8_t data_status
Definition hci_types.h:2940
uint8_t response_slot
Definition hci_types.h:2939
uint8_t data[0]
Definition hci_types.h:2942
uint8_t data_length
Definition hci_types.h:2941
uint8_t subevent_data_count
Definition hci_types.h:2930
uint8_t subevent_start
Definition hci_types.h:2929
uint8_t adv_handle
Definition hci_types.h:2928
uint8_t sid
Definition hci_types.h:2885
uint8_t clock_accuracy
Definition hci_types.h:2889
uint8_t phy
Definition hci_types.h:2887
uint16_t interval
Definition hci_types.h:2888
uint8_t status
Definition hci_types.h:2883
uint8_t response_slot_spacing
Definition hci_types.h:2893
uint16_t handle
Definition hci_types.h:2884
bt_addr_le_t adv_addr
Definition hci_types.h:2886
uint8_t response_slot_delay
Definition hci_types.h:2892
uint8_t subevent_interval
Definition hci_types.h:2891
uint8_t num_subevents
Definition hci_types.h:2890
Definition hci_types.h:3202
uint16_t handle
Definition hci_types.h:3204
uint16_t interval
Definition hci_types.h:3208
uint8_t status
Definition hci_types.h:3203
uint8_t sid
Definition hci_types.h:3205
uint8_t phy
Definition hci_types.h:3207
bt_addr_le_t adv_addr
Definition hci_types.h:3206
uint8_t clock_accuracy
Definition hci_types.h:3209
Definition hci_types.h:3224
uint16_t handle
Definition hci_types.h:3225
Definition hci_types.h:2897
uint8_t length
Definition hci_types.h:2905
uint8_t cte_type
Definition hci_types.h:2901
uint16_t handle
Definition hci_types.h:2898
int8_t tx_power
Definition hci_types.h:2899
uint16_t periodic_event_counter
Definition hci_types.h:2902
uint8_t data_status
Definition hci_types.h:2904
uint8_t data[0]
Definition hci_types.h:2906
int8_t rssi
Definition hci_types.h:2900
uint8_t subevent
Definition hci_types.h:2903
Definition hci_types.h:3213
uint8_t length
Definition hci_types.h:3219
uint8_t data[0]
Definition hci_types.h:3220
int8_t tx_power
Definition hci_types.h:3215
uint8_t cte_type
Definition hci_types.h:3217
uint8_t data_status
Definition hci_types.h:3218
uint16_t handle
Definition hci_types.h:3214
int8_t rssi
Definition hci_types.h:3216
Definition hci_types.h:3162
uint16_t handle
Definition hci_types.h:3164
uint8_t status
Definition hci_types.h:3163
uint8_t tx_phy
Definition hci_types.h:3165
uint8_t rx_phy
Definition hci_types.h:3166
Definition hci_types.h:3092
uint8_t features[8]
Definition hci_types.h:3095
uint8_t status
Definition hci_types.h:3093
uint16_t handle
Definition hci_types.h:3094
Definition hci_types.h:3396
uint8_t status
Definition hci_types.h:3397
uint8_t sca
Definition hci_types.h:3399
uint16_t handle
Definition hci_types.h:3398
Definition hci_types.h:3239
uint8_t handle
Definition hci_types.h:3240
bt_addr_le_t addr
Definition hci_types.h:3241
Definition hci_types.h:3457
uint16_t supervision_timeout
Definition hci_types.h:3463
uint16_t continuation_number
Definition hci_types.h:3462
uint16_t subrate_factor
Definition hci_types.h:3460
uint16_t peripheral_latency
Definition hci_types.h:3461
uint8_t status
Definition hci_types.h:3458
uint16_t handle
Definition hci_types.h:3459
Definition hci_types.h:3424
uint8_t tx_power_level_flag
Definition hci_types.h:3430
uint8_t reason
Definition hci_types.h:3427
uint16_t handle
Definition hci_types.h:3426
int8_t tx_power_level
Definition hci_types.h:3429
int8_t delta
Definition hci_types.h:3431
uint8_t phy
Definition hci_types.h:3428
uint8_t status
Definition hci_types.h:3425
Definition hci_types.h:2819
uint8_t num_handles
Definition hci_types.h:2820
struct bt_hci_handle_count h[0]
Definition hci_types.h:2821
Definition hci_types.h:2825
bt_addr_t bdaddr
Definition hci_types.h:2826
Definition hci_types.h:2873
uint16_t handle
Definition hci_types.h:2875
uint8_t features[8]
Definition hci_types.h:2878
uint8_t status
Definition hci_types.h:2874
uint8_t page
Definition hci_types.h:2876
uint8_t max_page
Definition hci_types.h:2877
Definition hci_types.h:2774
uint8_t status
Definition hci_types.h:2775
uint8_t features[8]
Definition hci_types.h:2777
uint16_t handle
Definition hci_types.h:2776
Definition hci_types.h:2760
bt_addr_t bdaddr
Definition hci_types.h:2762
uint8_t name[248]
Definition hci_types.h:2763
uint8_t status
Definition hci_types.h:2761
Definition hci_types.h:2781
uint16_t subversion
Definition hci_types.h:2786
uint16_t handle
Definition hci_types.h:2783
uint8_t status
Definition hci_types.h:2782
uint8_t version
Definition hci_types.h:2784
uint16_t manufacturer
Definition hci_types.h:2785
Definition hci_types.h:2812
bt_addr_t bdaddr
Definition hci_types.h:2814
uint8_t role
Definition hci_types.h:2815
uint8_t status
Definition hci_types.h:2813
Definition hci_types.h:3025
uint8_t status
Definition hci_types.h:3026
bt_addr_t bdaddr
Definition hci_types.h:3027
Definition hci_types.h:2970
uint8_t tx_interval
Definition hci_types.h:2975
uint8_t air_mode
Definition hci_types.h:2979
uint8_t retansmission_window
Definition hci_types.h:2976
uint16_t rx_pkt_length
Definition hci_types.h:2977
bt_addr_t bdaddr
Definition hci_types.h:2973
uint16_t handle
Definition hci_types.h:2972
uint8_t link_type
Definition hci_types.h:2974
uint16_t tx_pkt_length
Definition hci_types.h:2978
uint8_t status
Definition hci_types.h:2971
Definition hci_types.h:3014
bt_addr_t bdaddr
Definition hci_types.h:3015
uint32_t passkey
Definition hci_types.h:3016
Definition hci_types.h:3031
uint32_t passkey
Definition hci_types.h:3033
bt_addr_t bdaddr
Definition hci_types.h:3032
Definition hci_types.h:3020
bt_addr_t bdaddr
Definition hci_types.h:3021
Definition hci_types.h:1571
uint8_t max_ext_adv_evts
Definition hci_types.h:1574
uint8_t handle
Definition hci_types.h:1572
uint16_t duration
Definition hci_types.h:1573
Definition hci_types.h:1668
uint16_t max_ce_len
Definition hci_types.h:1676
uint16_t scan_interval
Definition hci_types.h:1669
uint16_t conn_interval_max
Definition hci_types.h:1672
uint16_t conn_latency
Definition hci_types.h:1673
uint16_t conn_interval_min
Definition hci_types.h:1671
uint16_t supervision_timeout
Definition hci_types.h:1674
uint16_t scan_window
Definition hci_types.h:1670
uint16_t min_ce_len
Definition hci_types.h:1675
Definition hci_types.h:1638
uint16_t interval
Definition hci_types.h:1640
uint8_t type
Definition hci_types.h:1639
uint16_t window
Definition hci_types.h:1641
Definition hci_types.h:750
uint16_t count
Definition hci_types.h:752
uint16_t handle
Definition hci_types.h:751
Definition hci_types.h:125
uint16_t len
Definition hci_types.h:127
uint16_t handle
Definition hci_types.h:126
Definition hci_types.h:112
uint16_t slen
Definition hci_types.h:114
uint16_t sn
Definition hci_types.h:113
Definition hci_types.h:118
struct bt_hci_iso_sdu_hdr sdu
Definition hci_types.h:120
uint32_t ts
Definition hci_types.h:119
Subevent result step data format: Mode 0 Initiator
Definition hci_types.h:3654
uint8_t packet_rssi
Definition hci_types.h:3662
uint8_t packet_quality_bit_errors
Definition hci_types.h:3659
uint16_t measured_freq_offset
Definition hci_types.h:3664
uint8_t packet_quality_aa_check
Definition hci_types.h:3660
uint8_t packet_antenna
Definition hci_types.h:3663
Subevent result step data format: Mode 0 Reflector
Definition hci_types.h:3668
uint8_t packet_quality_bit_errors
Definition hci_types.h:3673
uint8_t packet_quality_aa_check
Definition hci_types.h:3674
uint8_t packet_rssi
Definition hci_types.h:3676
uint8_t packet_antenna
Definition hci_types.h:3677
Subevent result step data format: Mode 1 with sounding sequence RTT support.
Definition hci_types.h:3699
uint8_t packet_pct1[4]
Definition hci_types.h:3714
uint8_t packet_nadm
Definition hci_types.h:3707
uint8_t packet_quality_bit_errors
Definition hci_types.h:3704
uint8_t packet_rssi
Definition hci_types.h:3708
int16_t toa_tod_initiator
Definition hci_types.h:3710
uint8_t packet_pct2[4]
Definition hci_types.h:3715
uint8_t packet_antenna
Definition hci_types.h:3713
int16_t tod_toa_reflector
Definition hci_types.h:3711
uint8_t packet_quality_aa_check
Definition hci_types.h:3705
Subevent result step data format: Mode 1
Definition hci_types.h:3681
uint8_t packet_quality_bit_errors
Definition hci_types.h:3686
int16_t toa_tod_initiator
Definition hci_types.h:3692
uint8_t packet_rssi
Definition hci_types.h:3690
uint8_t packet_nadm
Definition hci_types.h:3689
uint8_t packet_quality_aa_check
Definition hci_types.h:3687
int16_t tod_toa_reflector
Definition hci_types.h:3693
uint8_t packet_antenna
Definition hci_types.h:3695
Subevent result step data format: Mode 2.
Definition hci_types.h:3732
uint8_t antenna_permutation_index
Definition hci_types.h:3733
struct bt_hci_le_cs_step_data_tone_info tone_info[]
Definition hci_types.h:3734
Subevent result step data format: Mode 3 with sounding sequence RTT support.
Definition hci_types.h:3758
uint8_t packet_quality_aa_check
Definition hci_types.h:3764
uint8_t packet_antenna
Definition hci_types.h:3772
uint8_t packet_nadm
Definition hci_types.h:3766
uint8_t packet_pct1[4]
Definition hci_types.h:3773
uint8_t antenna_permutation_index
Definition hci_types.h:3775
int16_t tod_toa_reflector
Definition hci_types.h:3770
uint8_t packet_rssi
Definition hci_types.h:3767
int16_t toa_tod_initiator
Definition hci_types.h:3769
struct bt_hci_le_cs_step_data_tone_info tone_info[]
Definition hci_types.h:3776
uint8_t packet_quality_bit_errors
Definition hci_types.h:3763
uint8_t packet_pct2[4]
Definition hci_types.h:3774
Subevent result step data format: Mode 3.
Definition hci_types.h:3738
int16_t toa_tod_initiator
Definition hci_types.h:3749
uint8_t packet_quality_bit_errors
Definition hci_types.h:3743
uint8_t packet_rssi
Definition hci_types.h:3747
uint8_t antenna_permutation_index
Definition hci_types.h:3753
struct bt_hci_le_cs_step_data_tone_info tone_info[]
Definition hci_types.h:3754
uint8_t packet_nadm
Definition hci_types.h:3746
int16_t tod_toa_reflector
Definition hci_types.h:3750
uint8_t packet_antenna
Definition hci_types.h:3752
uint8_t packet_quality_aa_check
Definition hci_types.h:3744
Format for per-antenna path step data in modes 2 and 3.
Definition hci_types.h:3720
uint8_t quality_indicator
Definition hci_types.h:3727
uint8_t extension_indicator
Definition hci_types.h:3726
uint8_t phase_correction_term[3]
Definition hci_types.h:3721
Definition hci_types.h:3264
int8_t q
Definition hci_types.h:3266
int8_t i
Definition hci_types.h:3265
Definition hci_types.h:376
uint8_t lap[3]
Definition hci_types.h:377
uint8_t num_rsp
Definition hci_types.h:379
uint8_t length
Definition hci_types.h:378
Definition hci_types.h:2659
uint8_t t_ip1_time
Definition hci_types.h:2672
uint8_t sub_mode_type
Definition hci_types.h:2661
uint8_t t_sw_time
Definition hci_types.h:2676
uint8_t override_parameters_data[]
Definition hci_types.h:2685
uint8_t max_num_subevents
Definition hci_types.h:2670
uint8_t override_parameters_length
Definition hci_types.h:2684
uint8_t snr_control_reflector
Definition hci_types.h:2680
uint8_t snr_control_initiator
Definition hci_types.h:2679
uint8_t main_mode_repetition
Definition hci_types.h:2662
uint8_t t_ip2_time
Definition hci_types.h:2673
uint8_t subevent_len[3]
Definition hci_types.h:2668
uint8_t channel_map_repetition
Definition hci_types.h:2682
uint8_t reserved
Definition hci_types.h:2678
uint8_t t_pm_time
Definition hci_types.h:2675
uint8_t t_fcs_time
Definition hci_types.h:2674
uint8_t mode_0_steps
Definition hci_types.h:2663
uint8_t tone_antenna_config_selection
Definition hci_types.h:2677
uint16_t override_config
Definition hci_types.h:2683
uint16_t subevent_interval
Definition hci_types.h:2669
uint8_t transmit_power_level
Definition hci_types.h:2671
uint8_t rtt_type
Definition hci_types.h:2665
uint16_t drbg_nonce
Definition hci_types.h:2681
uint8_t cs_sync_antenna_selection
Definition hci_types.h:2667
uint8_t cs_sync_phy
Definition hci_types.h:2666
uint8_t main_mode_type
Definition hci_types.h:2660
uint8_t role
Definition hci_types.h:2664
Definition hci_types.h:817
uint8_t status
Definition hci_types.h:818
Definition hci_types.h:404
uint8_t status
Definition hci_types.h:405
bt_addr_t bdaddr
Definition hci_types.h:406
Definition hci_types.h:2263
uint8_t big_handle
Definition hci_types.h:2265
uint8_t status
Definition hci_types.h:2264
Definition hci_types.h:1956
uint8_t status
Definition hci_types.h:1957
uint16_t handle
Definition hci_types.h:1958
Definition hci_types.h:1967
uint8_t status
Definition hci_types.h:1968
uint16_t handle
Definition hci_types.h:1969
Definition hci_types.h:1305
uint8_t status
Definition hci_types.h:1306
uint16_t handle
Definition hci_types.h:1307
Definition hci_types.h:1295
uint8_t status
Definition hci_types.h:1296
uint16_t handle
Definition hci_types.h:1297
Definition hci_types.h:2060
uint8_t status
Definition hci_types.h:2061
Definition hci_types.h:1214
uint8_t enc_data[16]
Definition hci_types.h:1216
uint8_t status
Definition hci_types.h:1215
Definition hci_types.h:2321
uint8_t status
Definition hci_types.h:2322
uint16_t handle
Definition hci_types.h:2323
Definition hci_types.h:2344
uint32_t missed_cnt
Definition hci_types.h:2348
uint8_t status
Definition hci_types.h:2345
uint16_t handle
Definition hci_types.h:2346
uint32_t received_cnt
Definition hci_types.h:2347
uint32_t failed_cnt
Definition hci_types.h:2349
Definition hci_types.h:2310
uint8_t status
Definition hci_types.h:2311
uint16_t handle
Definition hci_types.h:2312
Definition hci_types.h:1247
uint8_t status
Definition hci_types.h:1248
uint16_t handle
Definition hci_types.h:1249
Definition hci_types.h:1238
uint16_t handle
Definition hci_types.h:1240
uint8_t status
Definition hci_types.h:1239
Definition hci_types.h:2047
uint8_t status
Definition hci_types.h:2048
uint16_t conn_handle
Definition hci_types.h:2049
Definition hci_types.h:2022
uint16_t conn_handle
Definition hci_types.h:2024
uint8_t status
Definition hci_types.h:2023
Definition hci_types.h:2010
uint16_t conn_handle
Definition hci_types.h:2012
uint8_t status
Definition hci_types.h:2011
Definition hci_types.h:1220
uint8_t rand[8]
Definition hci_types.h:1222
uint8_t status
Definition hci_types.h:1221
Definition hci_types.h:1986
uint8_t num_ant
Definition hci_types.h:1989
uint8_t switch_sample_rates
Definition hci_types.h:1988
uint8_t max_cte_len
Definition hci_types.h:1991
uint8_t status
Definition hci_types.h:1987
uint8_t max_switch_pattern_len
Definition hci_types.h:1990
Definition hci_types.h:2065
uint8_t acl_max_num
Definition hci_types.h:2068
uint8_t status
Definition hci_types.h:2066
uint16_t iso_max_len
Definition hci_types.h:2069
uint8_t iso_max_num
Definition hci_types.h:2070
uint16_t acl_max_len
Definition hci_types.h:2067
Definition hci_types.h:1033
uint8_t le_max_num
Definition hci_types.h:1036
uint16_t le_max_len
Definition hci_types.h:1035
uint8_t status
Definition hci_types.h:1034
Definition hci_types.h:1198
uint8_t ch_map[5]
Definition hci_types.h:1201
uint8_t status
Definition hci_types.h:1199
uint16_t handle
Definition hci_types.h:1200
Definition hci_types.h:1083
uint8_t status
Definition hci_types.h:1084
int8_t tx_power_level
Definition hci_types.h:1085
Definition hci_types.h:1322
uint16_t max_tx_octets
Definition hci_types.h:1324
uint8_t status
Definition hci_types.h:1323
uint16_t max_tx_time
Definition hci_types.h:1325
Definition hci_types.h:1161
uint8_t status
Definition hci_types.h:1162
uint8_t fal_size
Definition hci_types.h:1163
Definition hci_types.h:2078
uint8_t status
Definition hci_types.h:2079
uint8_t offset[3]
Definition hci_types.h:2083
uint32_t timestamp
Definition hci_types.h:2082
uint16_t handle
Definition hci_types.h:2080
uint16_t seq
Definition hci_types.h:2081
Definition hci_types.h:1040
uint8_t status
Definition hci_types.h:1041
uint8_t features[8]
Definition hci_types.h:1042
Definition hci_types.h:1386
uint8_t status
Definition hci_types.h:1387
bt_addr_t local_rpa
Definition hci_types.h:1388
uint8_t roles_supported
Definition hci_types.h:2414
uint16_t nadm_random_capability
Definition hci_types.h:2421
uint16_t t_ip1_times_supported
Definition hci_types.h:2424
uint8_t tx_snr_capability
Definition hci_types.h:2429
uint8_t rtt_capability
Definition hci_types.h:2416
uint8_t rtt_aa_only_n
Definition hci_types.h:2417
uint16_t nadm_sounding_capability
Definition hci_types.h:2420
uint8_t num_config_supported
Definition hci_types.h:2410
uint8_t max_antenna_paths_supported
Definition hci_types.h:2413
uint16_t t_fcs_times_supported
Definition hci_types.h:2426
uint16_t t_ip2_times_supported
Definition hci_types.h:2425
uint16_t subfeatures_supported
Definition hci_types.h:2423
uint8_t modes_supported
Definition hci_types.h:2415
uint8_t status
Definition hci_types.h:2409
uint16_t t_pm_times_supported
Definition hci_types.h:2427
uint8_t rtt_sounding_n
Definition hci_types.h:2418
uint8_t t_sw_time_supported
Definition hci_types.h:2428
uint16_t max_consecutive_procedures_supported
Definition hci_types.h:2411
uint8_t rtt_random_payload_n
Definition hci_types.h:2419
uint8_t num_antennas_supported
Definition hci_types.h:2412
uint8_t cs_sync_phys_supported
Definition hci_types.h:2422
Definition hci_types.h:1584
uint8_t status
Definition hci_types.h:1585
uint16_t max_adv_data_len
Definition hci_types.h:1586
Definition hci_types.h:1416
uint16_t max_tx_octets
Definition hci_types.h:1418
uint8_t status
Definition hci_types.h:1417
uint16_t max_tx_time
Definition hci_types.h:1419
uint16_t max_rx_octets
Definition hci_types.h:1420
uint16_t max_rx_time
Definition hci_types.h:1421
Definition hci_types.h:1590
uint8_t status
Definition hci_types.h:1591
uint8_t num_sets
Definition hci_types.h:1592
Definition hci_types.h:1377
bt_addr_t peer_rpa
Definition hci_types.h:1379
uint8_t status
Definition hci_types.h:1378
Definition hci_types.h:1794
uint8_t status
Definition hci_types.h:1795
uint8_t list_size
Definition hci_types.h:1796
Definition hci_types.h:1432
uint8_t rx_phy
Definition hci_types.h:1436
uint8_t tx_phy
Definition hci_types.h:1435
uint8_t status
Definition hci_types.h:1433
uint16_t handle
Definition hci_types.h:1434
Definition hci_types.h:1807
int16_t rx_path_comp
Definition hci_types.h:1810
int16_t tx_path_comp
Definition hci_types.h:1809
uint8_t status
Definition hci_types.h:1808
Definition hci_types.h:1368
uint8_t rl_size
Definition hci_types.h:1370
uint8_t status
Definition hci_types.h:1369
Definition hci_types.h:1253
uint8_t le_states[8]
Definition hci_types.h:1255
uint8_t status
Definition hci_types.h:1254
Definition hci_types.h:2331
uint16_t handle
Definition hci_types.h:2333
uint32_t received_cnt
Definition hci_types.h:2334
uint8_t status
Definition hci_types.h:2332
uint32_t missed_cnt
Definition hci_types.h:2335
uint32_t failed_cnt
Definition hci_types.h:2336
Definition hci_types.h:676
uint8_t status
Definition hci_types.h:677
int8_t max_tx_power_level
Definition hci_types.h:681
int8_t current_tx_power_level
Definition hci_types.h:680
uint8_t phy
Definition hci_types.h:679
uint16_t handle
Definition hci_types.h:678
Definition hci_types.h:1800
int8_t max_tx_power
Definition hci_types.h:1803
int8_t min_tx_power
Definition hci_types.h:1802
uint8_t status
Definition hci_types.h:1801
Definition hci_types.h:2199
uint16_t handle
Definition hci_types.h:2201
uint8_t status
Definition hci_types.h:2200
Definition hci_types.h:2183
uint8_t status
Definition hci_types.h:2184
uint8_t cig_id
Definition hci_types.h:2185
Definition hci_types.h:2295
uint8_t status
Definition hci_types.h:2296
uint16_t handle
Definition hci_types.h:2297
Definition hci_types.h:2160
uint16_t handle[0]
Definition hci_types.h:2164
uint8_t num_handles
Definition hci_types.h:2163
uint8_t cig_id
Definition hci_types.h:2162
uint8_t status
Definition hci_types.h:2161
Definition hci_types.h:2125
uint16_t handle[0]
Definition hci_types.h:2129
uint8_t status
Definition hci_types.h:2126
uint8_t num_handles
Definition hci_types.h:2128
uint8_t cig_id
Definition hci_types.h:2127
Definition hci_types.h:1903
uint16_t sync_handle
Definition hci_types.h:1905
uint8_t status
Definition hci_types.h:1904
Definition hci_types.h:1917
uint16_t handle
Definition hci_types.h:1919
uint8_t status
Definition hci_types.h:1918
Definition hci_types.h:1937
uint8_t status
Definition hci_types.h:1938
uint16_t handle
Definition hci_types.h:1939
Definition hci_types.h:1316
uint16_t handle
Definition hci_types.h:1318
uint8_t status
Definition hci_types.h:1317
Definition hci_types.h:1536
uint8_t status
Definition hci_types.h:1537
int8_t tx_power
Definition hci_types.h:1538
Definition hci_types.h:2358
uint8_t status
Definition hci_types.h:2359
Definition hci_types.h:2284
uint16_t handle
Definition hci_types.h:2286
uint8_t status
Definition hci_types.h:2285
Definition hci_types.h:1280
uint8_t status
Definition hci_types.h:1281
uint16_t rx_pkt_count
Definition hci_types.h:1282
Definition hci_types.h:469
uint8_t status
Definition hci_types.h:470
bt_addr_t bdaddr
Definition hci_types.h:471
Definition hci_types.h:460
uint8_t status
Definition hci_types.h:461
bt_addr_t bdaddr
Definition hci_types.h:462
Definition hci_types.h:792
uint8_t status
Definition hci_types.h:793
uint16_t auth_payload_timeout
Definition hci_types.h:795
uint16_t handle
Definition hci_types.h:794
Definition hci_types.h:881
uint8_t status
Definition hci_types.h:882
bt_addr_t bdaddr
Definition hci_types.h:883
Definition hci_types.h:872
uint8_t status
Definition hci_types.h:873
uint8_t sco_max_len
Definition hci_types.h:875
uint16_t acl_max_num
Definition hci_types.h:876
uint16_t acl_max_len
Definition hci_types.h:874
uint16_t sco_max_num
Definition hci_types.h:877
Definition hci_types.h:981
uint8_t num_capabilities
Definition hci_types.h:983
uint8_t status
Definition hci_types.h:982
uint8_t capabilities[0]
Definition hci_types.h:985
Definition hci_types.h:959
uint8_t codecs[0]
Definition hci_types.h:962
uint8_t status
Definition hci_types.h:960
Definition hci_types.h:935
uint8_t status
Definition hci_types.h:936
uint8_t codecs[0]
Definition hci_types.h:938
Definition hci_types.h:566
uint16_t conn_accept_timeout
Definition hci_types.h:568
uint8_t status
Definition hci_types.h:567
Definition hci_types.h:996
uint8_t status
Definition hci_types.h:997
uint8_t max_ctlr_delay[3]
Definition hci_types.h:999
uint8_t min_ctlr_delay[3]
Definition hci_types.h:998
Definition hci_types.h:1019
uint8_t status
Definition hci_types.h:1020
uint16_t handle
Definition hci_types.h:1021
uint8_t key_size
Definition hci_types.h:1022
Definition hci_types.h:858
uint8_t max_page
Definition hci_types.h:861
uint8_t ext_features[8]
Definition hci_types.h:862
uint8_t page
Definition hci_types.h:860
uint8_t status
Definition hci_types.h:859
Definition hci_types.h:866
uint8_t status
Definition hci_types.h:867
uint8_t features[8]
Definition hci_types.h:868
Definition hci_types.h:839
uint16_t hci_revision
Definition hci_types.h:842
uint8_t hci_version
Definition hci_types.h:841
uint16_t lmp_subversion
Definition hci_types.h:845
uint8_t lmp_version
Definition hci_types.h:843
uint16_t manufacturer
Definition hci_types.h:844
uint8_t status
Definition hci_types.h:840
Definition hci_types.h:1006
int8_t rssi
Definition hci_types.h:1009
uint8_t status
Definition hci_types.h:1007
uint16_t handle
Definition hci_types.h:1008
Definition hci_types.h:849
uint8_t status
Definition hci_types.h:850
uint8_t commands[64]
Definition hci_types.h:851
Definition hci_types.h:660
int8_t tx_power_level
Definition hci_types.h:663
uint16_t handle
Definition hci_types.h:662
uint8_t status
Definition hci_types.h:661
Definition hci_types.h:497
bt_addr_t bdaddr
Definition hci_types.h:499
uint8_t status
Definition hci_types.h:498
Definition hci_types.h:531
bt_addr_t bdaddr
Definition hci_types.h:533
uint8_t status
Definition hci_types.h:532
Definition hci_types.h:804
uint16_t handle
Definition hci_types.h:806
uint8_t status
Definition hci_types.h:805
Definition hci_types.h:576
uint8_t status
Definition hci_types.h:577
Definition hci_types.h:53
uint8_t len
Definition hci_types.h:55
uint16_t handle
Definition hci_types.h:54
Definition hci_types.h:942
uint8_t codec_id
Definition hci_types.h:943
uint8_t transports
Definition hci_types.h:944
Definition hci_types.h:920
uint8_t codec_id
Definition hci_types.h:921
Definition hci_types.h:946
struct bt_hci_std_codec_info_v2 codec_info[0]
Definition hci_types.h:948
uint8_t num_codecs
Definition hci_types.h:947
Definition hci_types.h:923
struct bt_hci_std_codec_info codec_info[0]
Definition hci_types.h:925
uint8_t num_codecs
Definition hci_types.h:924
Definition hci_types.h:950
uint16_t company_id
Definition hci_types.h:951
uint8_t transports
Definition hci_types.h:953
uint16_t codec_id
Definition hci_types.h:952
Definition hci_types.h:927
uint16_t codec_id
Definition hci_types.h:929
uint16_t company_id
Definition hci_types.h:928
Definition hci_types.h:955
struct bt_hci_vs_codec_info_v2 codec_info[0]
Definition hci_types.h:957
uint8_t num_codecs
Definition hci_types.h:956
Definition hci_types.h:931
uint8_t num_codecs
Definition hci_types.h:932
struct bt_hci_vs_codec_info codec_info[0]
Definition hci_types.h:933
Definition hci_types.h:561
uint8_t local_name[248]
Definition hci_types.h:562
Definition hci_types.h:1179
uint16_t min_ce_len
Definition hci_types.h:1185
uint16_t max_ce_len
Definition hci_types.h:1186
uint16_t handle
Definition hci_types.h:1180
uint16_t conn_latency
Definition hci_types.h:1183
uint16_t conn_interval_max
Definition hci_types.h:1182
uint16_t supervision_timeout
Definition hci_types.h:1184
uint16_t conn_interval_min
Definition hci_types.h:1181
Misc utilities.
Macros to abstract toolchain specific capabilities.