9#ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_TYPES_H_
10#define ZEPHYR_INCLUDE_BLUETOOTH_HCI_TYPES_H_
29#define BT_HCI_H4_NONE 0x00
30#define BT_HCI_H4_CMD 0x01
31#define BT_HCI_H4_ACL 0x02
32#define BT_HCI_H4_SCO 0x03
33#define BT_HCI_H4_EVT 0x04
34#define BT_HCI_H4_ISO 0x05
37#define BT_HCI_OWN_ADDR_RPA_OR_PUBLIC 0x02
38#define BT_HCI_OWN_ADDR_RPA_OR_RANDOM 0x03
39#define BT_HCI_OWN_ADDR_RPA_MASK 0x02
41#define BT_HCI_PEER_ADDR_RPA_UNRESOLVED 0xfe
42#define BT_HCI_PEER_ADDR_ANONYMOUS 0xff
44#define BT_ENC_KEY_SIZE_MIN 0x07
45#define BT_ENC_KEY_SIZE_MAX 0x10
47#define BT_HCI_ADV_HANDLE_INVALID 0xff
48#define BT_HCI_SYNC_HANDLE_INVALID 0xffff
49#define BT_HCI_PAWR_SUBEVENT_MAX 128
56#define BT_HCI_SCO_HDR_SIZE 3
63#define BT_HCI_EVT_HDR_SIZE 2
65#define BT_ACL_START_NO_FLUSH 0x00
66#define BT_ACL_CONT 0x01
67#define BT_ACL_START 0x02
68#define BT_ACL_COMPLETE 0x03
70#define BT_ACL_POINT_TO_POINT 0x00
71#define BT_ACL_BROADCAST 0x01
73#define BT_ACL_HANDLE_MASK BIT_MASK(12)
75#define bt_acl_handle(h) ((h) & BT_ACL_HANDLE_MASK)
76#define bt_acl_flags(h) ((h) >> 12)
77#define bt_acl_flags_pb(f) ((f) & BIT_MASK(2))
78#define bt_acl_flags_bc(f) ((f) >> 2)
79#define bt_acl_handle_pack(h, f) ((h) | ((f) << 12))
86#define BT_HCI_ACL_HDR_SIZE 4
88#define BT_ISO_START 0x00
89#define BT_ISO_CONT 0x01
90#define BT_ISO_SINGLE 0x02
91#define BT_ISO_END 0x03
93#define bt_iso_handle(h) ((h) & 0x0fff)
94#define bt_iso_flags(h) ((h) >> 12)
95#define bt_iso_flags_pb(f) ((f) & 0x0003)
96#define bt_iso_flags_ts(f) (((f) >> 2) & 0x0001)
97#define bt_iso_pack_flags(pb, ts) \
98 (((pb) & 0x0003) | (((ts) & 0x0001) << 2))
99#define bt_iso_handle_pack(h, pb, ts) \
100 ((h) | (bt_iso_pack_flags(pb, ts) << 12))
101#define bt_iso_hdr_len(h) ((h) & BIT_MASK(14))
103#define BT_ISO_DATA_VALID 0x00
104#define BT_ISO_DATA_INVALID 0x01
105#define BT_ISO_DATA_NOP 0x02
107#define bt_iso_pkt_len(h) ((h) & BIT_MASK(12))
108#define bt_iso_pkt_flags(h) ((h) >> 14)
109#define bt_iso_pkt_len_pack(h, f) (((h) & BIT_MASK(12)) | ((f) << 14))
115#define BT_HCI_ISO_SDU_HDR_SIZE 4
121#define BT_HCI_ISO_SDU_TS_HDR_SIZE 8
128#define BT_HCI_ISO_HDR_SIZE 4
135#define BT_HCI_CMD_HDR_SIZE 3
138#define BT_CMD_TEST(cmd, octet, bit) (cmd[octet] & BIT(bit))
139#define BT_CMD_LE_STATES(cmd) BT_CMD_TEST(cmd, 28, 3)
141#define BT_FEAT_TEST(feat, page, octet, bit) (feat[page][octet] & BIT(bit))
143#define BT_FEAT_BREDR(feat) !BT_FEAT_TEST(feat, 0, 4, 5)
144#define BT_FEAT_LE(feat) BT_FEAT_TEST(feat, 0, 4, 6)
145#define BT_FEAT_EXT_FEATURES(feat) BT_FEAT_TEST(feat, 0, 7, 7)
146#define BT_FEAT_HOST_SSP(feat) BT_FEAT_TEST(feat, 1, 0, 0)
147#define BT_FEAT_SC(feat) BT_FEAT_TEST(feat, 2, 1, 0)
149#define BT_FEAT_LMP_SCO_CAPABLE(feat) BT_FEAT_TEST(feat, 0, 1, 3)
150#define BT_FEAT_LMP_ESCO_CAPABLE(feat) BT_FEAT_TEST(feat, 0, 3, 7)
151#define BT_FEAT_HV2_PKT(feat) BT_FEAT_TEST(feat, 0, 1, 4)
152#define BT_FEAT_HV3_PKT(feat) BT_FEAT_TEST(feat, 0, 1, 5)
153#define BT_FEAT_EV4_PKT(feat) BT_FEAT_TEST(feat, 0, 4, 0)
154#define BT_FEAT_EV5_PKT(feat) BT_FEAT_TEST(feat, 0, 4, 1)
155#define BT_FEAT_2EV3_PKT(feat) BT_FEAT_TEST(feat, 0, 5, 5)
156#define BT_FEAT_3EV3_PKT(feat) BT_FEAT_TEST(feat, 0, 5, 6)
157#define BT_FEAT_3SLOT_PKT(feat) BT_FEAT_TEST(feat, 0, 5, 7)
160#define BT_LE_FEAT_BIT_ENC 0
161#define BT_LE_FEAT_BIT_CONN_PARAM_REQ 1
162#define BT_LE_FEAT_BIT_EXT_REJ_IND 2
163#define BT_LE_FEAT_BIT_PER_INIT_FEAT_XCHG 3
164#define BT_LE_FEAT_BIT_PING 4
165#define BT_LE_FEAT_BIT_DLE 5
166#define BT_LE_FEAT_BIT_PRIVACY 6
167#define BT_LE_FEAT_BIT_EXT_SCAN 7
168#define BT_LE_FEAT_BIT_PHY_2M 8
169#define BT_LE_FEAT_BIT_SMI_TX 9
170#define BT_LE_FEAT_BIT_SMI_RX 10
171#define BT_LE_FEAT_BIT_PHY_CODED 11
172#define BT_LE_FEAT_BIT_EXT_ADV 12
173#define BT_LE_FEAT_BIT_PER_ADV 13
174#define BT_LE_FEAT_BIT_CHAN_SEL_ALGO_2 14
175#define BT_LE_FEAT_BIT_PWR_CLASS_1 15
176#define BT_LE_FEAT_BIT_MIN_USED_CHAN_PROC 16
177#define BT_LE_FEAT_BIT_CONN_CTE_REQ 17
178#define BT_LE_FEAT_BIT_CONN_CTE_RESP 18
179#define BT_LE_FEAT_BIT_CONNECTIONLESS_CTE_TX 19
180#define BT_LE_FEAT_BIT_CONNECTIONLESS_CTE_RX 20
181#define BT_LE_FEAT_BIT_ANT_SWITCH_TX_AOD 21
182#define BT_LE_FEAT_BIT_ANT_SWITCH_RX_AOA 22
183#define BT_LE_FEAT_BIT_RX_CTE 23
184#define BT_LE_FEAT_BIT_PAST_SEND 24
185#define BT_LE_FEAT_BIT_PAST_RECV 25
186#define BT_LE_FEAT_BIT_SCA_UPDATE 26
187#define BT_LE_FEAT_BIT_REMOTE_PUB_KEY_VALIDATE 27
188#define BT_LE_FEAT_BIT_CIS_CENTRAL 28
189#define BT_LE_FEAT_BIT_CIS_PERIPHERAL 29
190#define BT_LE_FEAT_BIT_ISO_BROADCASTER 30
191#define BT_LE_FEAT_BIT_SYNC_RECEIVER 31
192#define BT_LE_FEAT_BIT_ISO_CHANNELS 32
193#define BT_LE_FEAT_BIT_PWR_CTRL_REQ 33
194#define BT_LE_FEAT_BIT_PWR_CHG_IND 34
195#define BT_LE_FEAT_BIT_PATH_LOSS_MONITOR 35
196#define BT_LE_FEAT_BIT_PER_ADV_ADI_SUPP 36
197#define BT_LE_FEAT_BIT_CONN_SUBRATING 37
198#define BT_LE_FEAT_BIT_CONN_SUBRATING_HOST_SUPP 38
199#define BT_LE_FEAT_BIT_CHANNEL_CLASSIFICATION 39
201#define BT_LE_FEAT_BIT_PAWR_ADVERTISER 43
202#define BT_LE_FEAT_BIT_PAWR_SCANNER 44
204#define BT_LE_FEAT_TEST(feat, n) (feat[(n) >> 3] & \
207#define BT_FEAT_LE_ENCR(feat) BT_LE_FEAT_TEST(feat, \
209#define BT_FEAT_LE_CONN_PARAM_REQ_PROC(feat) BT_LE_FEAT_TEST(feat, \
210 BT_LE_FEAT_BIT_CONN_PARAM_REQ)
211#define BT_FEAT_LE_PER_INIT_FEAT_XCHG(feat) BT_LE_FEAT_TEST(feat, \
212 BT_LE_FEAT_BIT_PER_INIT_FEAT_XCHG)
213#define BT_FEAT_LE_DLE(feat) BT_LE_FEAT_TEST(feat, \
215#define BT_FEAT_LE_PHY_2M(feat) BT_LE_FEAT_TEST(feat, \
216 BT_LE_FEAT_BIT_PHY_2M)
217#define BT_FEAT_LE_PHY_CODED(feat) BT_LE_FEAT_TEST(feat, \
218 BT_LE_FEAT_BIT_PHY_CODED)
219#define BT_FEAT_LE_PRIVACY(feat) BT_LE_FEAT_TEST(feat, \
220 BT_LE_FEAT_BIT_PRIVACY)
221#define BT_FEAT_LE_EXT_ADV(feat) BT_LE_FEAT_TEST(feat, \
222 BT_LE_FEAT_BIT_EXT_ADV)
223#define BT_FEAT_LE_EXT_PER_ADV(feat) BT_LE_FEAT_TEST(feat, \
224 BT_LE_FEAT_BIT_PER_ADV)
225#define BT_FEAT_LE_CONNECTION_CTE_REQ(feat) BT_LE_FEAT_TEST(feat, \
226 BT_LE_FEAT_BIT_CONN_CTE_REQ)
227#define BT_FEAT_LE_CONNECTION_CTE_RESP(feat) BT_LE_FEAT_TEST(feat, \
228 BT_LE_FEAT_BIT_CONN_CTE_RESP)
229#define BT_FEAT_LE_CONNECTIONLESS_CTE_TX(feat) BT_LE_FEAT_TEST(feat, \
230 BT_LE_FEAT_BIT_CONNECTIONLESS_CTE_TX)
231#define BT_FEAT_LE_CONNECTIONLESS_CTE_RX(feat) BT_LE_FEAT_TEST(feat, \
232 BT_LE_FEAT_BIT_CONNECTIONLESS_CTE_RX)
233#define BT_FEAT_LE_ANT_SWITCH_TX_AOD(feat) BT_LE_FEAT_TEST(feat, \
234 BT_LE_FEAT_BIT_ANT_SWITCH_TX_AOD)
235#define BT_FEAT_LE_ANT_SWITCH_RX_AOA(feat) BT_LE_FEAT_TEST(feat, \
236 BT_LE_FEAT_BIT_ANT_SWITCH_RX_AOA)
237#define BT_FEAT_LE_RX_CTE(feat) BT_LE_FEAT_TEST(feat, \
238 BT_LE_FEAT_BIT_RX_CTE)
239#define BT_FEAT_LE_PAST_SEND(feat) BT_LE_FEAT_TEST(feat, \
240 BT_LE_FEAT_BIT_PAST_SEND)
241#define BT_FEAT_LE_PAST_RECV(feat) BT_LE_FEAT_TEST(feat, \
242 BT_LE_FEAT_BIT_PAST_RECV)
243#define BT_FEAT_LE_CIS_CENTRAL(feat) BT_LE_FEAT_TEST(feat, \
244 BT_LE_FEAT_BIT_CIS_CENTRAL)
245#define BT_FEAT_LE_CIS_PERIPHERAL(feat) BT_LE_FEAT_TEST(feat, \
246 BT_LE_FEAT_BIT_CIS_PERIPHERAL)
247#define BT_FEAT_LE_ISO_BROADCASTER(feat) BT_LE_FEAT_TEST(feat, \
248 BT_LE_FEAT_BIT_ISO_BROADCASTER)
249#define BT_FEAT_LE_SYNC_RECEIVER(feat) BT_LE_FEAT_TEST(feat, \
250 BT_LE_FEAT_BIT_SYNC_RECEIVER)
251#define BT_FEAT_LE_ISO_CHANNELS(feat) BT_LE_FEAT_TEST(feat, \
252 BT_LE_FEAT_BIT_ISO_CHANNELS)
253#define BT_FEAT_LE_PWR_CTRL_REQ(feat) BT_LE_FEAT_TEST(feat, \
254 BT_LE_FEAT_BIT_PWR_CTRL_REQ)
255#define BT_FEAT_LE_PWR_CHG_IND(feat) BT_LE_FEAT_TEST(feat, \
256 BT_LE_FEAT_BIT_PWR_CHG_IND)
257#define BT_FEAT_LE_PATH_LOSS_MONITOR(feat) BT_LE_FEAT_TEST(feat, \
258 BT_LE_FEAT_BIT_PATH_LOSS_MONITOR)
259#define BT_FEAT_LE_PER_ADV_ADI_SUPP(feat) BT_LE_FEAT_TEST(feat, \
260 BT_LE_FEAT_BIT_PER_ADV_ADI_SUPP)
261#define BT_FEAT_LE_CONN_SUBRATING(feat) BT_LE_FEAT_TEST(feat, \
262 BT_LE_FEAT_BIT_CONN_SUBRATING)
263#define BT_FEAT_LE_CONN_SUBRATING_HOST_SUPP(feat) BT_LE_FEAT_TEST(feat, \
264 BT_LE_FEAT_BIT_CONN_SUBRATING_HOST_SUPP)
265#define BT_FEAT_LE_CHANNEL_CLASSIFICATION(feat) BT_LE_FEAT_TEST(feat, \
266 BT_LE_FEAT_BIT_CHANNEL_CLASSIFICATION)
267#define BT_FEAT_LE_PAWR_ADVERTISER(feat) BT_LE_FEAT_TEST(feat, \
268 BT_LE_FEAT_BIT_PAWR_ADVERTISER)
269#define BT_FEAT_LE_PAWR_SCANNER(feat) BT_LE_FEAT_TEST(feat, \
270 BT_LE_FEAT_BIT_PAWR_SCANNER)
272#define BT_FEAT_LE_CIS(feat) (BT_FEAT_LE_CIS_CENTRAL(feat) | \
273 BT_FEAT_LE_CIS_PERIPHERAL(feat))
274#define BT_FEAT_LE_BIS(feat) (BT_FEAT_LE_ISO_BROADCASTER(feat) | \
275 BT_FEAT_LE_SYNC_RECEIVER(feat))
276#define BT_FEAT_LE_ISO(feat) (BT_FEAT_LE_CIS(feat) | \
277 BT_FEAT_LE_BIS(feat))
280#define BT_LE_STATES_PER_CONN_ADV(states) (states & BIT64_MASK(38))
282#if defined(CONFIG_BT_SCAN_AND_INITIATE_IN_PARALLEL)
284#define BT_LE_STATES_SCAN_INIT(states) ((states) & BIT64_MASK(22) && \
285 (states) & BIT64_MASK(23))
288#define BT_LE_STATES_SCAN_INIT(states) 0
292#define BT_HCI_NO_BONDING 0x00
293#define BT_HCI_NO_BONDING_MITM 0x01
294#define BT_HCI_DEDICATED_BONDING 0x02
295#define BT_HCI_DEDICATED_BONDING_MITM 0x03
296#define BT_HCI_GENERAL_BONDING 0x04
297#define BT_HCI_GENERAL_BONDING_MITM 0x05
306#define BT_IO_DISPLAY_ONLY 0x00
307#define BT_IO_DISPLAY_YESNO 0x01
308#define BT_IO_KEYBOARD_ONLY 0x02
309#define BT_IO_NO_INPUT_OUTPUT 0x03
312#define HCI_PKT_TYPE_HV1 0x0020
313#define HCI_PKT_TYPE_HV2 0x0040
314#define HCI_PKT_TYPE_HV3 0x0080
317#define HCI_PKT_TYPE_SCO_HV1 0x0001
318#define HCI_PKT_TYPE_SCO_HV2 0x0002
319#define HCI_PKT_TYPE_SCO_HV3 0x0004
320#define HCI_PKT_TYPE_ESCO_EV3 0x0008
321#define HCI_PKT_TYPE_ESCO_EV4 0x0010
322#define HCI_PKT_TYPE_ESCO_EV5 0x0020
323#define HCI_PKT_TYPE_ESCO_2EV3 0x0040
324#define HCI_PKT_TYPE_ESCO_3EV3 0x0080
325#define HCI_PKT_TYPE_ESCO_2EV5 0x0100
326#define HCI_PKT_TYPE_ESCO_3EV5 0x0200
329#define ESCO_PKT_MASK (HCI_PKT_TYPE_SCO_HV1 | \
330 HCI_PKT_TYPE_SCO_HV2 | \
331 HCI_PKT_TYPE_SCO_HV3 | \
332 HCI_PKT_TYPE_ESCO_EV3 | \
333 HCI_PKT_TYPE_ESCO_EV4 | \
334 HCI_PKT_TYPE_ESCO_EV5)
335#define SCO_PKT_MASK (HCI_PKT_TYPE_SCO_HV1 | \
336 HCI_PKT_TYPE_SCO_HV2 | \
337 HCI_PKT_TYPE_SCO_HV3)
338#define EDR_ESCO_PKT_MASK (HCI_PKT_TYPE_ESCO_2EV3 | \
339 HCI_PKT_TYPE_ESCO_3EV3 | \
340 HCI_PKT_TYPE_ESCO_2EV5 | \
341 HCI_PKT_TYPE_ESCO_3EV5)
344#define BT_HCI_SCO 0x00
345#define BT_HCI_ACL 0x01
346#define BT_HCI_ESCO 0x02
349#define BT_OGF_LINK_CTRL 0x01
350#define BT_OGF_BASEBAND 0x03
351#define BT_OGF_INFO 0x04
352#define BT_OGF_STATUS 0x05
353#define BT_OGF_LE 0x08
354#define BT_OGF_VS 0x3f
357#define BT_OP(ogf, ocf) ((ocf) | ((ogf) << 10))
360#define BT_OP_NOP 0x0000
363#define BT_OGF(opcode) (((opcode) >> 10) & BIT_MASK(6))
365#define BT_OCF(opcode) ((opcode) & BIT_MASK(10))
367#define BT_HCI_OP_INQUIRY BT_OP(BT_OGF_LINK_CTRL, 0x0001)
374#define BT_HCI_OP_INQUIRY_CANCEL BT_OP(BT_OGF_LINK_CTRL, 0x0002)
376#define BT_HCI_OP_CONNECT BT_OP(BT_OGF_LINK_CTRL, 0x0005)
386#define BT_HCI_OP_DISCONNECT BT_OP(BT_OGF_LINK_CTRL, 0x0006)
392#define BT_HCI_OP_CONNECT_CANCEL BT_OP(BT_OGF_LINK_CTRL, 0x0008)
401#define BT_HCI_OP_ACCEPT_CONN_REQ BT_OP(BT_OGF_LINK_CTRL, 0x0009)
407#define BT_HCI_OP_SETUP_SYNC_CONN BT_OP(BT_OGF_LINK_CTRL, 0x0028)
418#define BT_HCI_OP_ACCEPT_SYNC_CONN_REQ BT_OP(BT_OGF_LINK_CTRL, 0x0029)
429#define BT_HCI_OP_REJECT_CONN_REQ BT_OP(BT_OGF_LINK_CTRL, 0x000a)
435#define BT_HCI_OP_LINK_KEY_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x000b)
441#define BT_HCI_OP_LINK_KEY_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x000c)
446#define BT_HCI_OP_PIN_CODE_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x000d)
457#define BT_HCI_OP_PIN_CODE_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x000e)
466#define BT_HCI_OP_AUTH_REQUESTED BT_OP(BT_OGF_LINK_CTRL, 0x0011)
471#define BT_HCI_OP_SET_CONN_ENCRYPT BT_OP(BT_OGF_LINK_CTRL, 0x0013)
477#define BT_HCI_OP_REMOTE_NAME_REQUEST BT_OP(BT_OGF_LINK_CTRL, 0x0019)
485#define BT_HCI_OP_REMOTE_NAME_CANCEL BT_OP(BT_OGF_LINK_CTRL, 0x001a)
494#define BT_HCI_OP_READ_REMOTE_FEATURES BT_OP(BT_OGF_LINK_CTRL, 0x001b)
499#define BT_HCI_OP_READ_REMOTE_EXT_FEATURES BT_OP(BT_OGF_LINK_CTRL, 0x001c)
505#define BT_HCI_OP_READ_REMOTE_VERSION_INFO BT_OP(BT_OGF_LINK_CTRL, 0x001d)
510#define BT_HCI_OP_IO_CAPABILITY_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002b)
518#define BT_HCI_OP_USER_CONFIRM_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002c)
519#define BT_HCI_OP_USER_CONFIRM_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002d)
528#define BT_HCI_OP_USER_PASSKEY_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002e)
534#define BT_HCI_OP_USER_PASSKEY_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002f)
539#define BT_HCI_OP_IO_CAPABILITY_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x0034)
545#define BT_HCI_OP_SET_EVENT_MASK BT_OP(BT_OGF_BASEBAND, 0x0001)
550#define BT_HCI_OP_RESET BT_OP(BT_OGF_BASEBAND, 0x0003)
552#define BT_HCI_OP_WRITE_LOCAL_NAME BT_OP(BT_OGF_BASEBAND, 0x0013)
557#define BT_HCI_OP_READ_CONN_ACCEPT_TIMEOUT BT_OP(BT_OGF_BASEBAND, 0x0015)
563#define BT_HCI_OP_WRITE_CONN_ACCEPT_TIMEOUT BT_OP(BT_OGF_BASEBAND, 0x0016)
572#define BT_HCI_OP_WRITE_PAGE_TIMEOUT BT_OP(BT_OGF_BASEBAND, 0x0018)
574#define BT_HCI_OP_WRITE_SCAN_ENABLE BT_OP(BT_OGF_BASEBAND, 0x001a)
575#define BT_BREDR_SCAN_DISABLED 0x00
576#define BT_BREDR_SCAN_INQUIRY 0x01
577#define BT_BREDR_SCAN_PAGE 0x02
579#define BT_COD(major_service, major_device, minor_device) \
580 (((uint32_t)major_service << 13) | ((uint32_t)major_device << 8) | \
581 ((uint32_t)minor_device << 2))
582#define BT_COD_VALID(cod) ((0 == (cod[0] & (BIT(0) | BIT(1)))) ? true : false)
583#define BT_COD_MAJOR_SERVICE_CLASSES(cod) \
584 ((((uint32_t)cod[2] & 0xFF) >> 5) | (((uint32_t)cod[1] & 0xD0) >> 5))
585#define BT_COD_MAJOR_DEVICE_CLASS(cod) ((((uint32_t)cod[1]) & 0x1FUL))
586#define BT_COD_MINOR_DEVICE_CLASS(cod) (((((uint32_t)cod[0]) & 0xFF) >> 2))
588#define BT_COD_MAJOR_MISC 0x00
589#define BT_COD_MAJOR_COMPUTER 0x01
590#define BT_COD_MAJOR_PHONE 0x02
591#define BT_COD_MAJOR_LAN_NETWORK_AP 0x03
592#define BT_COD_MAJOR_AUDIO_VIDEO 0x04
593#define BT_COD_MAJOR_PERIPHERAL 0x05
594#define BT_COD_MAJOR_IMAGING 0x06
595#define BT_COD_MAJOR_WEARABLE 0x07
596#define BT_COD_MAJOR_TOY 0x08
597#define BT_COD_MAJOR_HEALTH 0x09
598#define BT_COD_MAJOR_UNCATEGORIZED 0x1F
601#define BT_COD_MAJOR_COMPUTER_MINOR_UNCATEGORIZED 0x00
602#define BT_COD_MAJOR_COMPUTER_MINOR_DESKTOP 0x01
603#define BT_COD_MAJOR_COMPUTER_MINOR_SERVER_CLASS_COMPUTER 0x02
604#define BT_COD_MAJOR_COMPUTER_MINOR_LAPTOP 0x03
605#define BT_COD_MAJOR_COMPUTER_MINOR_HANDHELD_PC_PDA 0x04
606#define BT_COD_MAJOR_COMPUTER_MINOR_PALM_SIZE_PC_PDA 0x05
607#define BT_COD_MAJOR_COMPUTER_MINOR_WEARABLE_COMPUTER 0x06
608#define BT_COD_MAJOR_COMPUTER_MINOR_TABLET 0x07
611#define BT_COD_MAJOR_PHONE_MINOR_UNCATEGORIZED 0x00
612#define BT_COD_MAJOR_PHONE_MINOR_CELLULAR 0x01
613#define BT_COD_MAJOR_PHONE_MINOR_CORDLESS 0x02
614#define BT_COD_MAJOR_PHONE_MINOR_SMARTPHONE 0x03
615#define BT_COD_MAJOR_PHONE_MINOR_WIRED_MODEM_VOICE_GATEWAY 0x04
616#define BT_COD_MAJOR_PHONE_MINOR_ISDN 0x05
619#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_UNCATEGORIZED 0x00
620#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_WEARABLE_HEADSET 0x01
621#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_HANDS_FREE 0x02
622#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_RFU 0x03
623#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_MICROPHONE 0x04
624#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_LOUDSPEAKER 0x05
625#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_HEADPHONES 0x06
626#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_PORTABLE_AUDIO 0x07
627#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_CAR_AUDIO 0x08
628#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_SET_TOP_BOX 0x09
629#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_HIFI_AUDIO 0x0A
630#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_VCR 0x0B
631#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_VIDEO_CAMERA 0x0C
632#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_CAMCORDER 0x0D
633#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_VIDEO_MONITOR 0x0E
634#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_VIDEO_DISPLAY_LOUDSPEAKER 0x0F
635#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_VIDEO_CONFERENCING 0x10
636#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_RFU2 0x11
637#define BT_COD_MAJOR_AUDIO_VIDEO_MINOR_GAME_TOY 0x12
639#define BT_HCI_OP_WRITE_CLASS_OF_DEVICE BT_OP(BT_OGF_BASEBAND, 0x0024)
644#define BT_TX_POWER_LEVEL_CURRENT 0x00
645#define BT_TX_POWER_LEVEL_MAX 0x01
646#define BT_HCI_OP_READ_TX_POWER_LEVEL BT_OP(BT_OGF_BASEBAND, 0x002d)
658#define BT_HCI_LE_TX_POWER_PHY_1M 0x01
659#define BT_HCI_LE_TX_POWER_PHY_2M 0x02
660#define BT_HCI_LE_TX_POWER_PHY_CODED_S8 0x03
661#define BT_HCI_LE_TX_POWER_PHY_CODED_S2 0x04
662#define BT_HCI_OP_LE_ENH_READ_TX_POWER_LEVEL BT_OP(BT_OGF_LE, 0x0076)
676#define BT_HCI_OP_LE_READ_REMOTE_TX_POWER_LEVEL BT_OP(BT_OGF_LE, 0x0077)
678#define BT_HCI_LE_TX_POWER_REPORT_DISABLE 0x00
679#define BT_HCI_LE_TX_POWER_REPORT_ENABLE 0x01
680#define BT_HCI_OP_LE_SET_TX_POWER_REPORT_ENABLE BT_OP(BT_OGF_LE, 0x007A)
701#define BT_HCI_OP_LE_SET_PATH_LOSS_REPORTING_PARAMETERS BT_OP(BT_OGF_LE, 0x0078)
703#define BT_HCI_LE_PATH_LOSS_REPORTING_DISABLE 0x00
704#define BT_HCI_LE_PATH_LOSS_REPORTING_ENABLE 0x01
705#define BT_HCI_OP_LE_SET_PATH_LOSS_REPORTING_ENABLE BT_OP(BT_OGF_LE, 0x0079)
724#define BT_HCI_OP_LE_SET_DEFAULT_SUBRATE BT_OP(BT_OGF_LE, 0x007D)
725#define BT_HCI_OP_LE_SUBRATE_REQUEST BT_OP(BT_OGF_LE, 0x007E)
727#define BT_HCI_CTL_TO_HOST_FLOW_DISABLE 0x00
728#define BT_HCI_CTL_TO_HOST_FLOW_ENABLE 0x01
729#define BT_HCI_OP_SET_CTL_TO_HOST_FLOW BT_OP(BT_OGF_BASEBAND, 0x0031)
734#define BT_HCI_OP_HOST_BUFFER_SIZE BT_OP(BT_OGF_BASEBAND, 0x0033)
747#define BT_HCI_OP_HOST_NUM_COMPLETED_PACKETS BT_OP(BT_OGF_BASEBAND, 0x0035)
753#define BT_HCI_OP_WRITE_INQUIRY_MODE BT_OP(BT_OGF_BASEBAND, 0x0045)
758#define BT_HCI_OP_WRITE_SSP_MODE BT_OP(BT_OGF_BASEBAND, 0x0056)
763#define BT_HCI_OP_SET_EVENT_MASK_PAGE_2 BT_OP(BT_OGF_BASEBAND, 0x0063)
768#define BT_HCI_OP_LE_WRITE_LE_HOST_SUPP BT_OP(BT_OGF_BASEBAND, 0x006d)
774#define BT_HCI_OP_WRITE_SC_HOST_SUPP BT_OP(BT_OGF_BASEBAND, 0x007a)
779#define BT_HCI_OP_READ_AUTH_PAYLOAD_TIMEOUT BT_OP(BT_OGF_BASEBAND, 0x007b)
790#define BT_HCI_OP_WRITE_AUTH_PAYLOAD_TIMEOUT BT_OP(BT_OGF_BASEBAND, 0x007c)
801#define BT_HCI_OP_CONFIGURE_DATA_PATH BT_OP(BT_OGF_BASEBAND, 0x0083)
814#define BT_HCI_VERSION_1_0B 0
815#define BT_HCI_VERSION_1_1 1
816#define BT_HCI_VERSION_1_2 2
817#define BT_HCI_VERSION_2_0 3
818#define BT_HCI_VERSION_2_1 4
819#define BT_HCI_VERSION_3_0 5
820#define BT_HCI_VERSION_4_0 6
821#define BT_HCI_VERSION_4_1 7
822#define BT_HCI_VERSION_4_2 8
823#define BT_HCI_VERSION_5_0 9
824#define BT_HCI_VERSION_5_1 10
825#define BT_HCI_VERSION_5_2 11
826#define BT_HCI_VERSION_5_3 12
827#define BT_HCI_VERSION_5_4 13
829#define BT_HCI_OP_READ_LOCAL_VERSION_INFO BT_OP(BT_OGF_INFO, 0x0001)
839#define BT_HCI_OP_READ_SUPPORTED_COMMANDS BT_OP(BT_OGF_INFO, 0x0002)
845#define BT_HCI_OP_READ_LOCAL_EXT_FEATURES BT_OP(BT_OGF_INFO, 0x0004)
856#define BT_HCI_OP_READ_LOCAL_FEATURES BT_OP(BT_OGF_INFO, 0x0003)
862#define BT_HCI_OP_READ_BUFFER_SIZE BT_OP(BT_OGF_INFO, 0x0005)
871#define BT_HCI_OP_READ_BD_ADDR BT_OP(BT_OGF_INFO, 0x0009)
878#define BT_HCI_CODEC_TRANSPORT_MASK_BREDR_ACL BIT(0)
879#define BT_HCI_CODEC_TRANSPORT_MASK_BREDR_SCO BIT(1)
880#define BT_HCI_CODEC_TRANSPORT_MASK_LE_CIS BIT(2)
881#define BT_HCI_CODEC_TRANSPORT_MASK_LE_BIS BIT(3)
884#define BT_HCI_LOGICAL_TRANSPORT_TYPE_BREDR_ACL 0x00
885#define BT_HCI_LOGICAL_TRANSPORT_TYPE_BREDR_SCO 0x01
886#define BT_HCI_LOGICAL_TRANSPORT_TYPE_LE_CIS 0x02
887#define BT_HCI_LOGICAL_TRANSPORT_TYPE_LE_BIS 0x03
890#define BT_HCI_DATAPATH_DIR_HOST_TO_CTLR 0x00
891#define BT_HCI_DATAPATH_DIR_CTLR_TO_HOST 0x01
894#define BT_HCI_DATAPATH_ID_HCI 0x00
895#define BT_HCI_DATAPATH_ID_VS 0x01
896#define BT_HCI_DATAPATH_ID_VS_END 0xfe
899#define BT_HCI_CODING_FORMAT_ULAW_LOG 0x00
900#define BT_HCI_CODING_FORMAT_ALAW_LOG 0x01
901#define BT_HCI_CODING_FORMAT_CVSD 0x02
902#define BT_HCI_CODING_FORMAT_TRANSPARENT 0x03
903#define BT_HCI_CODING_FORMAT_LINEAR_PCM 0x04
904#define BT_HCI_CODING_FORMAT_MSBC 0x05
905#define BT_HCI_CODING_FORMAT_LC3 0x06
906#define BT_HCI_CODING_FORMAT_G729A 0x07
907#define BT_HCI_CODING_FORMAT_VS 0xFF
910#define BT_HCI_OP_READ_CODECS BT_OP(BT_OGF_INFO, 0x000b)
932#define BT_HCI_OP_READ_CODECS_V2 BT_OP(BT_OGF_INFO, 0x000d)
962#define BT_HCI_OP_READ_CODEC_CAPABILITIES BT_OP(BT_OGF_INFO, 0x000e)
979#define BT_HCI_OP_READ_CTLR_DELAY BT_OP(BT_OGF_INFO, 0x000f)
993#define BT_HCI_OP_READ_RSSI BT_OP(BT_OGF_STATUS, 0x0005)
1003#define BT_HCI_ENCRYPTION_KEY_SIZE_MIN 7
1004#define BT_HCI_ENCRYPTION_KEY_SIZE_MAX 16
1006#define BT_HCI_OP_READ_ENCRYPTION_KEY_SIZE BT_OP(BT_OGF_STATUS, 0x0008)
1018#define BT_HCI_OP_LE_SET_EVENT_MASK BT_OP(BT_OGF_LE, 0x0001)
1023#define BT_HCI_OP_LE_READ_BUFFER_SIZE BT_OP(BT_OGF_LE, 0x0002)
1030#define BT_HCI_OP_LE_READ_LOCAL_FEATURES BT_OP(BT_OGF_LE, 0x0003)
1036#define BT_HCI_OP_LE_SET_RANDOM_ADDRESS BT_OP(BT_OGF_LE, 0x0005)
1041#define BT_HCI_ADV_IND 0x00
1042#define BT_HCI_ADV_DIRECT_IND 0x01
1043#define BT_HCI_ADV_SCAN_IND 0x02
1044#define BT_HCI_ADV_NONCONN_IND 0x03
1045#define BT_HCI_ADV_DIRECT_IND_LOW_DUTY 0x04
1046#define BT_HCI_ADV_SCAN_RSP 0x04
1048#define BT_LE_ADV_INTERVAL_MIN 0x0020
1049#define BT_LE_ADV_INTERVAL_MAX 0x4000
1050#define BT_LE_ADV_INTERVAL_DEFAULT 0x0800
1052#define BT_LE_ADV_CHAN_MAP_CHAN_37 0x01
1053#define BT_LE_ADV_CHAN_MAP_CHAN_38 0x02
1054#define BT_LE_ADV_CHAN_MAP_CHAN_39 0x04
1055#define BT_LE_ADV_CHAN_MAP_ALL 0x07
1057#define BT_LE_ADV_FP_NO_FILTER 0x00
1058#define BT_LE_ADV_FP_FILTER_SCAN_REQ 0x01
1059#define BT_LE_ADV_FP_FILTER_CONN_IND 0x02
1060#define BT_LE_ADV_FP_FILTER_BOTH 0x03
1062#define BT_HCI_OP_LE_SET_ADV_PARAM BT_OP(BT_OGF_LE, 0x0006)
1073#define BT_HCI_OP_LE_READ_ADV_CHAN_TX_POWER BT_OP(BT_OGF_LE, 0x0007)
1079#define BT_HCI_OP_LE_SET_ADV_DATA BT_OP(BT_OGF_LE, 0x0008)
1085#define BT_HCI_OP_LE_SET_SCAN_RSP_DATA BT_OP(BT_OGF_LE, 0x0009)
1091#define BT_HCI_LE_ADV_DISABLE 0x00
1092#define BT_HCI_LE_ADV_ENABLE 0x01
1094#define BT_HCI_OP_LE_SET_ADV_ENABLE BT_OP(BT_OGF_LE, 0x000a)
1100#define BT_HCI_OP_LE_SET_SCAN_PARAM BT_OP(BT_OGF_LE, 0x000b)
1101#define BT_HCI_LE_SCAN_PASSIVE 0x00
1102#define BT_HCI_LE_SCAN_ACTIVE 0x01
1104#define BT_HCI_LE_SCAN_FP_BASIC_NO_FILTER 0x00
1105#define BT_HCI_LE_SCAN_FP_BASIC_FILTER 0x01
1106#define BT_HCI_LE_SCAN_FP_EXT_NO_FILTER 0x02
1107#define BT_HCI_LE_SCAN_FP_EXT_FILTER 0x03
1117#define BT_HCI_OP_LE_SET_SCAN_ENABLE BT_OP(BT_OGF_LE, 0x000c)
1119#define BT_HCI_LE_SCAN_DISABLE 0x00
1120#define BT_HCI_LE_SCAN_ENABLE 0x01
1122#define BT_HCI_LE_SCAN_FILTER_DUP_DISABLE 0x00
1123#define BT_HCI_LE_SCAN_FILTER_DUP_ENABLE 0x01
1130#define BT_HCI_OP_LE_CREATE_CONN BT_OP(BT_OGF_LE, 0x000d)
1132#define BT_HCI_LE_CREATE_CONN_FP_NO_FILTER 0x00
1133#define BT_HCI_LE_CREATE_CONN_FP_FILTER 0x01
1149#define BT_HCI_OP_LE_CREATE_CONN_CANCEL BT_OP(BT_OGF_LE, 0x000e)
1151#define BT_HCI_OP_LE_READ_FAL_SIZE BT_OP(BT_OGF_LE, 0x000f)
1157#define BT_HCI_OP_LE_CLEAR_FAL BT_OP(BT_OGF_LE, 0x0010)
1159#define BT_HCI_OP_LE_ADD_DEV_TO_FAL BT_OP(BT_OGF_LE, 0x0011)
1164#define BT_HCI_OP_LE_REM_DEV_FROM_FAL BT_OP(BT_OGF_LE, 0x0012)
1169#define BT_HCI_OP_LE_CONN_UPDATE BT_OP(BT_OGF_LE, 0x0013)
1180#define BT_HCI_OP_LE_SET_HOST_CHAN_CLASSIF BT_OP(BT_OGF_LE, 0x0014)
1185#define BT_HCI_OP_LE_READ_CHAN_MAP BT_OP(BT_OGF_LE, 0x0015)
1195#define BT_HCI_OP_LE_READ_REMOTE_FEATURES BT_OP(BT_OGF_LE, 0x0016)
1200#define BT_HCI_OP_LE_ENCRYPT BT_OP(BT_OGF_LE, 0x0017)
1210#define BT_HCI_OP_LE_RAND BT_OP(BT_OGF_LE, 0x0018)
1216#define BT_HCI_OP_LE_START_ENCRYPTION BT_OP(BT_OGF_LE, 0x0019)
1224#define BT_HCI_OP_LE_LTK_REQ_REPLY BT_OP(BT_OGF_LE, 0x001a)
1234#define BT_HCI_OP_LE_LTK_REQ_NEG_REPLY BT_OP(BT_OGF_LE, 0x001b)
1243#define BT_HCI_OP_LE_READ_SUPP_STATES BT_OP(BT_OGF_LE, 0x001c)
1249#define BT_HCI_OP_LE_RX_TEST BT_OP(BT_OGF_LE, 0x001d)
1254#define BT_HCI_TEST_PKT_PAYLOAD_PRBS9 0x00
1255#define BT_HCI_TEST_PKT_PAYLOAD_11110000 0x01
1256#define BT_HCI_TEST_PKT_PAYLOAD_10101010 0x02
1257#define BT_HCI_TEST_PKT_PAYLOAD_PRBS15 0x03
1258#define BT_HCI_TEST_PKT_PAYLOAD_11111111 0x04
1259#define BT_HCI_TEST_PKT_PAYLOAD_00000000 0x05
1260#define BT_HCI_TEST_PKT_PAYLOAD_00001111 0x06
1261#define BT_HCI_TEST_PKT_PAYLOAD_01010101 0x07
1263#define BT_HCI_OP_LE_TX_TEST BT_OP(BT_OGF_LE, 0x001e)
1270#define BT_HCI_OP_LE_TEST_END BT_OP(BT_OGF_LE, 0x001f)
1276#define BT_HCI_OP_LE_CONN_PARAM_REQ_REPLY BT_OP(BT_OGF_LE, 0x0020)
1291#define BT_HCI_OP_LE_CONN_PARAM_REQ_NEG_REPLY BT_OP(BT_OGF_LE, 0x0021)
1301#define BT_HCI_OP_LE_SET_DATA_LEN BT_OP(BT_OGF_LE, 0x0022)
1312#define BT_HCI_OP_LE_READ_DEFAULT_DATA_LEN BT_OP(BT_OGF_LE, 0x0023)
1319#define BT_HCI_OP_LE_WRITE_DEFAULT_DATA_LEN BT_OP(BT_OGF_LE, 0x0024)
1325#define BT_HCI_OP_LE_P256_PUBLIC_KEY BT_OP(BT_OGF_LE, 0x0025)
1327#define BT_HCI_OP_LE_GENERATE_DHKEY BT_OP(BT_OGF_LE, 0x0026)
1333#define BT_HCI_OP_LE_GENERATE_DHKEY_V2 BT_OP(BT_OGF_LE, 0x005e)
1335#define BT_HCI_LE_KEY_TYPE_GENERATED 0x00
1336#define BT_HCI_LE_KEY_TYPE_DEBUG 0x01
1344#define BT_HCI_OP_LE_ADD_DEV_TO_RL BT_OP(BT_OGF_LE, 0x0027)
1351#define BT_HCI_OP_LE_REM_DEV_FROM_RL BT_OP(BT_OGF_LE, 0x0028)
1356#define BT_HCI_OP_LE_CLEAR_RL BT_OP(BT_OGF_LE, 0x0029)
1358#define BT_HCI_OP_LE_READ_RL_SIZE BT_OP(BT_OGF_LE, 0x002a)
1364#define BT_HCI_OP_LE_READ_PEER_RPA BT_OP(BT_OGF_LE, 0x002b)
1373#define BT_HCI_OP_LE_READ_LOCAL_RPA BT_OP(BT_OGF_LE, 0x002c)
1382#define BT_HCI_ADDR_RES_DISABLE 0x00
1383#define BT_HCI_ADDR_RES_ENABLE 0x01
1385#define BT_HCI_OP_LE_SET_ADDR_RES_ENABLE BT_OP(BT_OGF_LE, 0x002d)
1390#define BT_HCI_OP_LE_SET_RPA_TIMEOUT BT_OP(BT_OGF_LE, 0x002e)
1396#define BT_HCI_LE_MAX_TX_OCTETS_MIN 0x001B
1397#define BT_HCI_LE_MAX_TX_OCTETS_MAX 0x00FB
1398#define BT_HCI_LE_MAX_RX_OCTETS_MIN 0x001B
1399#define BT_HCI_LE_MAX_RX_OCTETS_MAX 0x00FB
1401#define BT_HCI_LE_MAX_TX_TIME_MIN 0x0148
1402#define BT_HCI_LE_MAX_TX_TIME_MAX 0x4290
1403#define BT_HCI_LE_MAX_RX_TIME_MIN 0x0148
1404#define BT_HCI_LE_MAX_RX_TIME_MAX 0x4290
1406#define BT_HCI_OP_LE_READ_MAX_DATA_LEN BT_OP(BT_OGF_LE, 0x002f)
1415#define BT_HCI_LE_PHY_1M 0x01
1416#define BT_HCI_LE_PHY_2M 0x02
1417#define BT_HCI_LE_PHY_CODED 0x03
1419#define BT_HCI_OP_LE_READ_PHY BT_OP(BT_OGF_LE, 0x0030)
1430#define BT_HCI_LE_PHY_TX_ANY BIT(0)
1431#define BT_HCI_LE_PHY_RX_ANY BIT(1)
1433#define BT_HCI_LE_PHY_PREFER_1M BIT(0)
1434#define BT_HCI_LE_PHY_PREFER_2M BIT(1)
1435#define BT_HCI_LE_PHY_PREFER_CODED BIT(2)
1437#define BT_HCI_OP_LE_SET_DEFAULT_PHY BT_OP(BT_OGF_LE, 0x0031)
1444#define BT_HCI_LE_PHY_CODED_ANY 0x00
1445#define BT_HCI_LE_PHY_CODED_S2 0x01
1446#define BT_HCI_LE_PHY_CODED_S8 0x02
1448#define BT_HCI_OP_LE_SET_PHY BT_OP(BT_OGF_LE, 0x0032)
1457#define BT_HCI_LE_MOD_INDEX_STANDARD 0x00
1458#define BT_HCI_LE_MOD_INDEX_STABLE 0x01
1460#define BT_HCI_LE_RX_PHY_1M 0x01
1461#define BT_HCI_LE_RX_PHY_2M 0x02
1462#define BT_HCI_LE_RX_PHY_CODED 0x03
1464#define BT_HCI_OP_LE_ENH_RX_TEST BT_OP(BT_OGF_LE, 0x0033)
1471#define BT_HCI_LE_TX_PHY_1M 0x01
1472#define BT_HCI_LE_TX_PHY_2M 0x02
1473#define BT_HCI_LE_TX_PHY_CODED_S8 0x03
1474#define BT_HCI_LE_TX_PHY_CODED_S2 0x04
1476#define BT_HCI_OP_LE_ENH_TX_TEST BT_OP(BT_OGF_LE, 0x0034)
1484#define BT_HCI_OP_LE_SET_ADV_SET_RANDOM_ADDR BT_OP(BT_OGF_LE, 0x0035)
1490#define BT_HCI_LE_ADV_PROP_CONN BIT(0)
1491#define BT_HCI_LE_ADV_PROP_SCAN BIT(1)
1492#define BT_HCI_LE_ADV_PROP_DIRECT BIT(2)
1493#define BT_HCI_LE_ADV_PROP_HI_DC_CONN BIT(3)
1494#define BT_HCI_LE_ADV_PROP_LEGACY BIT(4)
1495#define BT_HCI_LE_ADV_PROP_ANON BIT(5)
1496#define BT_HCI_LE_ADV_PROP_TX_POWER BIT(6)
1498#define BT_HCI_LE_PRIM_ADV_INTERVAL_MIN 0x000020
1499#define BT_HCI_LE_PRIM_ADV_INTERVAL_MAX 0xFFFFFF
1501#define BT_HCI_LE_ADV_SCAN_REQ_ENABLE 1
1502#define BT_HCI_LE_ADV_SCAN_REQ_DISABLE 0
1504#define BT_HCI_LE_ADV_TX_POWER_NO_PREF 0x7F
1506#define BT_HCI_LE_ADV_HANDLE_MAX 0xEF
1508#define BT_HCI_LE_EXT_ADV_SID_INVALID 0xFF
1510#define BT_HCI_OP_LE_SET_EXT_ADV_PARAM BT_OP(BT_OGF_LE, 0x0036)
1532#define BT_HCI_LE_EXT_ADV_OP_INTERM_FRAG 0x00
1533#define BT_HCI_LE_EXT_ADV_OP_FIRST_FRAG 0x01
1534#define BT_HCI_LE_EXT_ADV_OP_LAST_FRAG 0x02
1535#define BT_HCI_LE_EXT_ADV_OP_COMPLETE_DATA 0x03
1536#define BT_HCI_LE_EXT_ADV_OP_UNCHANGED_DATA 0x04
1538#define BT_HCI_LE_EXT_ADV_FRAG_ENABLED 0x00
1539#define BT_HCI_LE_EXT_ADV_FRAG_DISABLED 0x01
1541#define BT_HCI_LE_EXT_ADV_FRAG_MAX_LEN 251
1543#define BT_HCI_OP_LE_SET_EXT_ADV_DATA BT_OP(BT_OGF_LE, 0x0037)
1552#define BT_HCI_OP_LE_SET_EXT_SCAN_RSP_DATA BT_OP(BT_OGF_LE, 0x0038)
1561#define BT_HCI_OP_LE_SET_EXT_ADV_ENABLE BT_OP(BT_OGF_LE, 0x0039)
1574#define BT_HCI_OP_LE_READ_MAX_ADV_DATA_LEN BT_OP(BT_OGF_LE, 0x003a)
1580#define BT_HCI_OP_LE_READ_NUM_ADV_SETS BT_OP(BT_OGF_LE, 0x003b)
1586#define BT_HCI_OP_LE_REMOVE_ADV_SET BT_OP(BT_OGF_LE, 0x003c)
1591#define BT_HCI_OP_CLEAR_ADV_SETS BT_OP(BT_OGF_LE, 0x003d)
1593#define BT_HCI_LE_PER_ADV_INTERVAL_MIN 0x0006
1594#define BT_HCI_LE_PER_ADV_INTERVAL_MAX 0xFFFF
1596#define BT_HCI_OP_LE_SET_PER_ADV_PARAM BT_OP(BT_OGF_LE, 0x003e)
1604#define BT_HCI_LE_PER_ADV_OP_INTERM_FRAG 0x00
1605#define BT_HCI_LE_PER_ADV_OP_FIRST_FRAG 0x01
1606#define BT_HCI_LE_PER_ADV_OP_LAST_FRAG 0x02
1607#define BT_HCI_LE_PER_ADV_OP_COMPLETE_DATA 0x03
1609#define BT_HCI_LE_PER_ADV_FRAG_MAX_LEN 252
1611#define BT_HCI_OP_LE_SET_PER_ADV_DATA BT_OP(BT_OGF_LE, 0x003f)
1619#define BT_HCI_LE_SET_PER_ADV_ENABLE_ENABLE BIT(0)
1620#define BT_HCI_LE_SET_PER_ADV_ENABLE_ADI BIT(1)
1622#define BT_HCI_OP_LE_SET_PER_ADV_ENABLE BT_OP(BT_OGF_LE, 0x0040)
1628#define BT_HCI_OP_LE_SET_EXT_SCAN_PARAM BT_OP(BT_OGF_LE, 0x0041)
1635#define BT_HCI_LE_EXT_SCAN_PHY_1M BIT(0)
1636#define BT_HCI_LE_EXT_SCAN_PHY_2M BIT(1)
1637#define BT_HCI_LE_EXT_SCAN_PHY_CODED BIT(2)
1647#define BT_HCI_LE_EXT_SCAN_FILTER_DUP_ENABLE_RESET 0x02
1649#define BT_HCI_OP_LE_SET_EXT_SCAN_ENABLE BT_OP(BT_OGF_LE, 0x0042)
1657#define BT_HCI_OP_LE_EXT_CREATE_CONN BT_OP(BT_OGF_LE, 0x0043)
1658#define BT_HCI_OP_LE_EXT_CREATE_CONN_V2 BT_OP(BT_OGF_LE, 0x0085)
1688#define BT_HCI_OP_LE_SET_PER_ADV_SUBEVENT_DATA BT_OP(BT_OGF_LE, 0x0082)
1704#define BT_HCI_OP_LE_SET_PER_ADV_RESPONSE_DATA BT_OP(BT_OGF_LE, 0x0083)
1715#define BT_HCI_OP_LE_SET_PER_ADV_SYNC_SUBEVENT BT_OP(BT_OGF_LE, 0x0084)
1724#define BT_HCI_OP_LE_SET_PER_ADV_PARAM_V2 BT_OP(BT_OGF_LE, 0x0086)
1738#define BT_HCI_LE_PER_ADV_CREATE_SYNC_FP_USE_LIST BIT(0)
1739#define BT_HCI_LE_PER_ADV_CREATE_SYNC_FP_REPORTS_DISABLED BIT(1)
1740#define BT_HCI_LE_PER_ADV_CREATE_SYNC_FP_FILTER_DUPLICATE BIT(2)
1742#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_FILTERING 0
1743#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_AOA BIT(0)
1744#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_AOD_1US BIT(1)
1745#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_AOD_2US BIT(2)
1746#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_CTE BIT(3)
1747#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_ONLY_CTE BIT(4)
1749#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_ALLOWED_BITS 5
1750#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_INVALID_VALUE \
1751 (~BIT_MASK(BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_ALLOWED_BITS))
1753#define BT_HCI_OP_LE_PER_ADV_CREATE_SYNC BT_OP(BT_OGF_LE, 0x0044)
1763#define BT_HCI_OP_LE_PER_ADV_CREATE_SYNC_CANCEL BT_OP(BT_OGF_LE, 0x0045)
1765#define BT_HCI_OP_LE_PER_ADV_TERMINATE_SYNC BT_OP(BT_OGF_LE, 0x0046)
1770#define BT_HCI_OP_LE_ADD_DEV_TO_PER_ADV_LIST BT_OP(BT_OGF_LE, 0x0047)
1776#define BT_HCI_OP_LE_REM_DEV_FROM_PER_ADV_LIST BT_OP(BT_OGF_LE, 0x0048)
1782#define BT_HCI_OP_LE_CLEAR_PER_ADV_LIST BT_OP(BT_OGF_LE, 0x0049)
1784#define BT_HCI_OP_LE_READ_PER_ADV_LIST_SIZE BT_OP(BT_OGF_LE, 0x004a)
1790#define BT_HCI_OP_LE_READ_TX_POWER BT_OP(BT_OGF_LE, 0x004b)
1797#define BT_HCI_OP_LE_READ_RF_PATH_COMP BT_OP(BT_OGF_LE, 0x004c)
1804#define BT_HCI_OP_LE_WRITE_RF_PATH_COMP BT_OP(BT_OGF_LE, 0x004d)
1810#define BT_HCI_LE_PRIVACY_MODE_NETWORK 0x00
1811#define BT_HCI_LE_PRIVACY_MODE_DEVICE 0x01
1813#define BT_HCI_OP_LE_SET_PRIVACY_MODE BT_OP(BT_OGF_LE, 0x004e)
1819#define BT_HCI_LE_TEST_CTE_DISABLED 0x00
1820#define BT_HCI_LE_TEST_CTE_TYPE_ANY 0x00
1821#define BT_HCI_LE_TEST_SLOT_DURATION_ANY 0x00
1822#define BT_HCI_LE_TEST_SWITCH_PATTERN_LEN_ANY 0x00
1824#define BT_HCI_OP_LE_RX_TEST_V3 BT_OP(BT_OGF_LE, 0x004f)
1836#define BT_HCI_OP_LE_TX_TEST_V3 BT_OP(BT_OGF_LE, 0x0050)
1850#define BT_HCI_LE_CTE_LEN_MIN 0x2
1851#define BT_HCI_LE_CTE_LEN_MAX 0x14
1853#define BT_HCI_LE_AOA_CTE 0x0
1854#define BT_HCI_LE_AOD_CTE_1US 0x1
1855#define BT_HCI_LE_AOD_CTE_2US 0x2
1856#define BT_HCI_LE_NO_CTE 0xFF
1858#define BT_HCI_LE_CTE_COUNT_MIN 0x1
1859#define BT_HCI_LE_CTE_COUNT_MAX 0x10
1861#define BT_HCI_OP_LE_SET_CL_CTE_TX_PARAMS BT_OP(BT_OGF_LE, 0x0051)
1871#define BT_HCI_OP_LE_SET_CL_CTE_TX_ENABLE BT_OP(BT_OGF_LE, 0x0052)
1877#define BT_HCI_LE_ANTENNA_SWITCHING_SLOT_1US 0x1
1878#define BT_HCI_LE_ANTENNA_SWITCHING_SLOT_2US 0x2
1880#define BT_HCI_LE_SAMPLE_CTE_ALL 0x0
1881#define BT_HCI_LE_SAMPLE_CTE_COUNT_MIN 0x1
1882#define BT_HCI_LE_SAMPLE_CTE_COUNT_MAX 0x10
1884#define BT_HCI_OP_LE_SET_CL_CTE_SAMPLING_ENABLE BT_OP(BT_OGF_LE, 0x0053)
1899#define BT_HCI_OP_LE_SET_CONN_CTE_RX_PARAMS BT_OP(BT_OGF_LE, 0x0054)
1913#define BT_HCI_LE_AOA_CTE_RSP BIT(0)
1914#define BT_HCI_LE_AOD_CTE_RSP_1US BIT(1)
1915#define BT_HCI_LE_AOD_CTE_RSP_2US BIT(2)
1917#define BT_HCI_LE_SWITCH_PATTERN_LEN_MIN 0x2
1918#define BT_HCI_LE_SWITCH_PATTERN_LEN_MAX 0x4B
1920#define BT_HCI_OP_LE_SET_CONN_CTE_TX_PARAMS BT_OP(BT_OGF_LE, 0x0055)
1934#define BT_HCI_REQUEST_CTE_ONCE 0x0
1935#define BT_HCI_REQUEST_CTE_INTERVAL_MIN 0x1
1936#define BT_HCI_REQUEST_CTE_INTERVAL_MAX 0xFFFF
1938#define BT_HCI_OP_LE_CONN_CTE_REQ_ENABLE BT_OP(BT_OGF_LE, 0x0056)
1952#define BT_HCI_OP_LE_CONN_CTE_RSP_ENABLE BT_OP(BT_OGF_LE, 0x0057)
1963#define BT_HCI_LE_1US_AOD_TX BIT(0)
1964#define BT_HCI_LE_1US_AOD_RX BIT(1)
1965#define BT_HCI_LE_1US_AOA_RX BIT(2)
1967#define BT_HCI_LE_NUM_ANT_MIN 0x1
1968#define BT_HCI_LE_NUM_ANT_MAX 0x4B
1970#define BT_HCI_LE_MAX_SWITCH_PATTERN_LEN_MIN 0x2
1971#define BT_HCI_LE_MAX_SWITCH_PATTERN_LEN_MAX 0x4B
1973#define BT_HCI_LE_MAX_CTE_LEN_MIN 0x2
1974#define BT_HCI_LE_MAX_CTE_LEN_MAX 0x14
1976#define BT_HCI_OP_LE_READ_ANT_INFO BT_OP(BT_OGF_LE, 0x0058)
1985#define BT_HCI_LE_SET_PER_ADV_RECV_ENABLE_ENABLE BIT(0)
1986#define BT_HCI_LE_SET_PER_ADV_RECV_ENABLE_FILTER_DUPLICATE BIT(1)
1988#define BT_HCI_OP_LE_SET_PER_ADV_RECV_ENABLE BT_OP(BT_OGF_LE, 0x0059)
1994#define BT_HCI_OP_LE_PER_ADV_SYNC_TRANSFER BT_OP(BT_OGF_LE, 0x005a)
2006#define BT_HCI_OP_LE_PER_ADV_SET_INFO_TRANSFER BT_OP(BT_OGF_LE, 0x005b)
2018#define BT_HCI_LE_PAST_MODE_NO_SYNC 0x00
2019#define BT_HCI_LE_PAST_MODE_NO_REPORTS 0x01
2020#define BT_HCI_LE_PAST_MODE_SYNC 0x02
2021#define BT_HCI_LE_PAST_MODE_SYNC_FILTER_DUPLICATES 0x03
2023#define BT_HCI_LE_PAST_CTE_TYPE_NO_AOA BIT(0)
2024#define BT_HCI_LE_PAST_CTE_TYPE_NO_AOD_1US BIT(1)
2025#define BT_HCI_LE_PAST_CTE_TYPE_NO_AOD_2US BIT(2)
2026#define BT_HCI_LE_PAST_CTE_TYPE_NO_CTE BIT(3)
2027#define BT_HCI_LE_PAST_CTE_TYPE_ONLY_CTE BIT(4)
2029#define BT_HCI_OP_LE_PAST_PARAM BT_OP(BT_OGF_LE, 0x005c)
2043#define BT_HCI_OP_LE_DEFAULT_PAST_PARAM BT_OP(BT_OGF_LE, 0x005d)
2055#define BT_HCI_OP_LE_READ_BUFFER_SIZE_V2 BT_OP(BT_OGF_LE, 0x0060)
2064#define BT_HCI_OP_LE_READ_ISO_TX_SYNC BT_OP(BT_OGF_LE, 0x0061)
2077#define BT_HCI_ISO_CIG_ID_MAX 0xFE
2078#define BT_HCI_ISO_CIS_COUNT_MAX 0x1F
2079#define BT_HCI_ISO_SDU_INTERVAL_MIN 0x0000FF
2080#define BT_HCI_ISO_SDU_INTERVAL_MAX 0x0FFFFF
2081#define BT_HCI_ISO_WORST_CASE_SCA_VALID_MASK 0x07
2082#define BT_HCI_ISO_PACKING_VALID_MASK 0x01
2083#define BT_HCI_ISO_FRAMING_VALID_MASK 0x01
2084#define BT_HCI_ISO_MAX_TRANSPORT_LATENCY_MIN 0x0005
2085#define BT_HCI_ISO_MAX_TRANSPORT_LATENCY_MAX 0x0FA0
2086#define BT_HCI_ISO_CIS_ID_VALID_MAX 0xEF
2087#define BT_HCI_ISO_MAX_SDU_VALID_MASK 0x0FFF
2088#define BT_HCI_ISO_PHY_VALID_MASK 0x07
2089#define BT_HCI_ISO_INTERVAL_MIN 0x0004
2090#define BT_HCI_ISO_INTERVAL_MAX 0x0C80
2092#define BT_HCI_OP_LE_SET_CIG_PARAMS BT_OP(BT_OGF_LE, 0x0062)
2123#define BT_HCI_OP_LE_SET_CIG_PARAMS_TEST BT_OP(BT_OGF_LE, 0x0063)
2158#define BT_HCI_OP_LE_CREATE_CIS BT_OP(BT_OGF_LE, 0x0064)
2169#define BT_HCI_OP_LE_REMOVE_CIG BT_OP(BT_OGF_LE, 0x0065)
2179#define BT_HCI_OP_LE_ACCEPT_CIS BT_OP(BT_OGF_LE, 0x0066)
2184#define BT_HCI_OP_LE_REJECT_CIS BT_OP(BT_OGF_LE, 0x0067)
2195#define BT_HCI_OP_LE_CREATE_BIG BT_OP(BT_OGF_LE, 0x0068)
2211#define BT_HCI_OP_LE_CREATE_BIG_TEST BT_OP(BT_OGF_LE, 0x0069)
2231#define BT_HCI_OP_LE_TERMINATE_BIG BT_OP(BT_OGF_LE, 0x006a)
2237#define BT_HCI_OP_LE_BIG_CREATE_SYNC BT_OP(BT_OGF_LE, 0x006b)
2249#define BT_HCI_OP_LE_BIG_TERMINATE_SYNC BT_OP(BT_OGF_LE, 0x006c)
2259#define BT_HCI_OP_LE_REQ_PEER_SC BT_OP(BT_OGF_LE, 0x006d)
2264#define BT_HCI_OP_LE_SETUP_ISO_PATH BT_OP(BT_OGF_LE, 0x006e)
2280#define BT_HCI_OP_LE_REMOVE_ISO_PATH BT_OP(BT_OGF_LE, 0x006f)
2291#define BT_HCI_ISO_TEST_ZERO_SIZE_SDU 0
2292#define BT_HCI_ISO_TEST_VARIABLE_SIZE_SDU 1
2293#define BT_HCI_ISO_TEST_MAX_SIZE_SDU 2
2295#define BT_HCI_OP_LE_ISO_TRANSMIT_TEST BT_OP(BT_OGF_LE, 0x0070)
2306#define BT_HCI_OP_LE_ISO_RECEIVE_TEST BT_OP(BT_OGF_LE, 0x0071)
2317#define BT_HCI_OP_LE_ISO_READ_TEST_COUNTERS BT_OP(BT_OGF_LE, 0x0072)
2330#define BT_HCI_OP_LE_ISO_TEST_END BT_OP(BT_OGF_LE, 0x0073)
2343#define BT_HCI_OP_LE_SET_HOST_FEATURE BT_OP(BT_OGF_LE, 0x0074)
2353#define BT_HCI_OP_LE_READ_ISO_LINK_QUALITY BT_OP(BT_OGF_LE, 0x0075)
2370#define BT_HCI_OP_LE_TX_TEST_V4 BT_OP(BT_OGF_LE, 0x007B)
2383#define BT_HCI_TX_TEST_POWER_MIN -0x7F
2384#define BT_HCI_TX_TEST_POWER_MAX 0x14
2386#define BT_HCI_TX_TEST_POWER_MIN_SET 0x7E
2387#define BT_HCI_TX_TEST_POWER_MAX_SET 0x7F
2399#define BT_HCI_EVT_UNKNOWN 0x00
2400#define BT_HCI_EVT_VENDOR 0xff
2402#define BT_HCI_EVT_INQUIRY_COMPLETE 0x01
2407#define BT_HCI_EVT_CONN_COMPLETE 0x03
2416#define BT_HCI_EVT_CONN_REQUEST 0x04
2423#define BT_HCI_EVT_DISCONN_COMPLETE 0x05
2430#define BT_HCI_EVT_AUTH_COMPLETE 0x06
2436#define BT_HCI_EVT_REMOTE_NAME_REQ_COMPLETE 0x07
2443#define BT_HCI_EVT_ENCRYPT_CHANGE 0x08
2450#define BT_HCI_EVT_REMOTE_FEATURES 0x0b
2457#define BT_HCI_EVT_REMOTE_VERSION_INFO 0x0c
2466#define BT_HCI_EVT_CMD_COMPLETE 0x0e
2476#define BT_HCI_EVT_CMD_STATUS 0x0f
2483#define BT_HCI_EVT_HARDWARE_ERROR 0x10
2488#define BT_HCI_EVT_ROLE_CHANGE 0x12
2495#define BT_HCI_EVT_NUM_COMPLETED_PACKETS 0x13
2501#define BT_HCI_EVT_PIN_CODE_REQ 0x16
2506#define BT_HCI_EVT_LINK_KEY_REQ 0x17
2512#define BT_LK_COMBINATION 0x00
2513#define BT_LK_LOCAL_UNIT 0x01
2514#define BT_LK_REMOTE_UNIT 0x02
2515#define BT_LK_DEBUG_COMBINATION 0x03
2516#define BT_LK_UNAUTH_COMBINATION_P192 0x04
2517#define BT_LK_AUTH_COMBINATION_P192 0x05
2518#define BT_LK_CHANGED_COMBINATION 0x06
2519#define BT_LK_UNAUTH_COMBINATION_P256 0x07
2520#define BT_LK_AUTH_COMBINATION_P256 0x08
2522#define BT_HCI_EVT_LINK_KEY_NOTIFY 0x18
2530#define BT_OVERFLOW_LINK_SYNCH 0x00
2531#define BT_OVERFLOW_LINK_ACL 0x01
2532#define BT_OVERFLOW_LINK_ISO 0x02
2534#define BT_HCI_EVT_DATA_BUF_OVERFLOW 0x1a
2539#define BT_HCI_EVT_INQUIRY_RESULT_WITH_RSSI 0x22
2549#define BT_HCI_EVT_REMOTE_EXT_FEATURES 0x23
2558#define BT_HCI_EVT_LE_PER_ADV_SYNC_ESTABLISHED_V2 0x24
2573#define BT_HCI_EVT_LE_PER_ADVERTISING_REPORT_V2 0x25
2586#define BT_HCI_EVT_LE_PAST_RECEIVED_V2 0x26
2603#define BT_HCI_EVT_LE_PER_ADV_SUBEVENT_DATA_REQUEST 0x27
2610#define BT_HCI_EVT_LE_PER_ADV_RESPONSE_REPORT 0x28
2630#define BT_HCI_EVT_LE_ENH_CONN_COMPLETE_V2 0x29
2646#define BT_HCI_EVT_SYNC_CONN_COMPLETE 0x2c
2659#define BT_HCI_EVT_EXTENDED_INQUIRY_RESULT 0x2f
2671#define BT_HCI_EVT_ENCRYPT_KEY_REFRESH_COMPLETE 0x30
2677#define BT_HCI_EVT_IO_CAPA_REQ 0x31
2682#define BT_HCI_EVT_IO_CAPA_RESP 0x32
2690#define BT_HCI_EVT_USER_CONFIRM_REQ 0x33
2696#define BT_HCI_EVT_USER_PASSKEY_REQ 0x34
2701#define BT_HCI_EVT_SSP_COMPLETE 0x36
2707#define BT_HCI_EVT_USER_PASSKEY_NOTIFY 0x3b
2713#define BT_HCI_EVT_LE_META_EVENT 0x3e
2718#define BT_HCI_EVT_AUTH_PAYLOAD_TIMEOUT_EXP 0x57
2723#define BT_HCI_ROLE_CENTRAL 0x00
2724#define BT_HCI_ROLE_PERIPHERAL 0x01
2726#define BT_HCI_EVT_LE_CONN_COMPLETE 0x01
2738#define BT_HCI_LE_RSSI_NOT_AVAILABLE 0x7F
2740#define BT_HCI_EVT_LE_ADVERTISING_REPORT 0x02
2752#define BT_HCI_EVT_LE_CONN_UPDATE_COMPLETE 0x03
2761#define BT_HCI_EVT_LE_REMOTE_FEAT_COMPLETE 0x04
2768#define BT_HCI_EVT_LE_LTK_REQUEST 0x05
2775#define BT_HCI_EVT_LE_CONN_PARAM_REQ 0x06
2784#define BT_HCI_EVT_LE_DATA_LEN_CHANGE 0x07
2793#define BT_HCI_EVT_LE_P256_PUBLIC_KEY_COMPLETE 0x08
2799#define BT_HCI_EVT_LE_GENERATE_DHKEY_COMPLETE 0x09
2805#define BT_HCI_EVT_LE_ENH_CONN_COMPLETE 0x0a
2819#define BT_HCI_EVT_LE_DIRECT_ADV_REPORT 0x0b
2831#define BT_HCI_EVT_LE_PHY_UPDATE_COMPLETE 0x0c
2839#define BT_HCI_EVT_LE_EXT_ADVERTISING_REPORT 0x0d
2841#define BT_HCI_LE_ADV_EVT_TYPE_CONN BIT(0)
2842#define BT_HCI_LE_ADV_EVT_TYPE_SCAN BIT(1)
2843#define BT_HCI_LE_ADV_EVT_TYPE_DIRECT BIT(2)
2844#define BT_HCI_LE_ADV_EVT_TYPE_SCAN_RSP BIT(3)
2845#define BT_HCI_LE_ADV_EVT_TYPE_LEGACY BIT(4)
2847#define BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS(ev_type) (((ev_type) >> 5) & 0x03)
2848#define BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_COMPLETE 0
2849#define BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_PARTIAL 1
2850#define BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_INCOMPLETE 2
2851#define BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_RX_FAILED 0xFF
2871#define BT_HCI_EVT_LE_PER_ADV_SYNC_ESTABLISHED 0x0e
2882#define BT_HCI_EVT_LE_PER_ADVERTISING_REPORT 0x0f
2893#define BT_HCI_EVT_LE_PER_ADV_SYNC_LOST 0x10
2898#define BT_HCI_EVT_LE_SCAN_TIMEOUT 0x11
2900#define BT_HCI_EVT_LE_ADV_SET_TERMINATED 0x12
2908#define BT_HCI_EVT_LE_SCAN_REQ_RECEIVED 0x13
2914#define BT_HCI_LE_CHAN_SEL_ALGO_1 0x00
2915#define BT_HCI_LE_CHAN_SEL_ALGO_2 0x01
2917#define BT_HCI_EVT_LE_CHAN_SEL_ALGO 0x14
2923#define BT_HCI_LE_CTE_CRC_OK 0x0
2924#define BT_HCI_LE_CTE_CRC_ERR_CTE_BASED_TIME 0x1
2925#define BT_HCI_LE_CTE_CRC_ERR_CTE_BASED_OTHER 0x2
2926#define BT_HCI_LE_CTE_INSUFFICIENT_RESOURCES 0xFF
2928#define B_HCI_LE_CTE_REPORT_SAMPLE_COUNT_MIN 0x9
2929#define B_HCI_LE_CTE_REPORT_SAMPLE_COUNT_MAX 0x52
2931#define BT_HCI_LE_CTE_REPORT_NO_VALID_SAMPLE 0x80
2933#define BT_HCI_EVT_LE_CONNECTIONLESS_IQ_REPORT 0x15
2952#define BT_HCI_EVT_LE_CONNECTION_IQ_REPORT 0x16
2967#define BT_HCI_CTE_REQ_STATUS_RSP_WITHOUT_CTE 0x0
2969#define BT_HCI_EVT_LE_CTE_REQUEST_FAILED 0x17
2980#define BT_HCI_EVT_LE_PAST_RECEIVED 0x18
2993#define BT_HCI_EVT_LE_CIS_ESTABLISHED 0x19
3013#define BT_HCI_EVT_LE_CIS_REQ 0x1a
3021#define BT_HCI_EVT_LE_BIG_COMPLETE 0x1b
3038#define BT_HCI_EVT_LE_BIG_TERMINATE 0x1c
3044#define BT_HCI_EVT_LE_BIG_SYNC_ESTABLISHED 0x1d
3059#define BT_HCI_EVT_LE_BIG_SYNC_LOST 0x1e
3065#define BT_HCI_EVT_LE_REQ_PEER_SCA_COMPLETE 0x1f
3072#define BT_HCI_LE_ZONE_ENTERED_LOW 0x0
3073#define BT_HCI_LE_ZONE_ENTERED_MIDDLE 0x1
3074#define BT_HCI_LE_ZONE_ENTERED_HIGH 0x2
3075#define BT_HCI_LE_PATH_LOSS_UNAVAILABLE 0xFF
3077#define BT_HCI_EVT_LE_PATH_LOSS_THRESHOLD 0x20
3087#define BT_HCI_LE_TX_POWER_REPORT_REASON_LOCAL_CHANGED 0x00
3089#define BT_HCI_LE_TX_POWER_REPORT_REASON_REMOTE_CHANGED 0x01
3091#define BT_HCI_LE_TX_POWER_REPORT_REASON_READ_REMOTE_COMPLETED 0x02
3093#define BT_HCI_EVT_LE_TRANSMIT_POWER_REPORT 0x21
3104#define BT_HCI_EVT_LE_BIGINFO_ADV_REPORT 0x22
3121#define BT_HCI_EVT_LE_SUBRATE_CHANGE 0x23
3133#define BT_EVT_BIT(n) (1ULL << (n))
3135#define BT_EVT_MASK_INQUIRY_COMPLETE BT_EVT_BIT(0)
3136#define BT_EVT_MASK_CONN_COMPLETE BT_EVT_BIT(2)
3137#define BT_EVT_MASK_CONN_REQUEST BT_EVT_BIT(3)
3138#define BT_EVT_MASK_DISCONN_COMPLETE BT_EVT_BIT(4)
3139#define BT_EVT_MASK_AUTH_COMPLETE BT_EVT_BIT(5)
3140#define BT_EVT_MASK_REMOTE_NAME_REQ_COMPLETE BT_EVT_BIT(6)
3141#define BT_EVT_MASK_ENCRYPT_CHANGE BT_EVT_BIT(7)
3142#define BT_EVT_MASK_REMOTE_FEATURES BT_EVT_BIT(10)
3143#define BT_EVT_MASK_REMOTE_VERSION_INFO BT_EVT_BIT(11)
3144#define BT_EVT_MASK_HARDWARE_ERROR BT_EVT_BIT(15)
3145#define BT_EVT_MASK_ROLE_CHANGE BT_EVT_BIT(17)
3146#define BT_EVT_MASK_PIN_CODE_REQ BT_EVT_BIT(21)
3147#define BT_EVT_MASK_LINK_KEY_REQ BT_EVT_BIT(22)
3148#define BT_EVT_MASK_LINK_KEY_NOTIFY BT_EVT_BIT(23)
3149#define BT_EVT_MASK_DATA_BUFFER_OVERFLOW BT_EVT_BIT(25)
3150#define BT_EVT_MASK_INQUIRY_RESULT_WITH_RSSI BT_EVT_BIT(33)
3151#define BT_EVT_MASK_REMOTE_EXT_FEATURES BT_EVT_BIT(34)
3152#define BT_EVT_MASK_SYNC_CONN_COMPLETE BT_EVT_BIT(43)
3153#define BT_EVT_MASK_EXTENDED_INQUIRY_RESULT BT_EVT_BIT(46)
3154#define BT_EVT_MASK_ENCRYPT_KEY_REFRESH_COMPLETE BT_EVT_BIT(47)
3155#define BT_EVT_MASK_IO_CAPA_REQ BT_EVT_BIT(48)
3156#define BT_EVT_MASK_IO_CAPA_RESP BT_EVT_BIT(49)
3157#define BT_EVT_MASK_USER_CONFIRM_REQ BT_EVT_BIT(50)
3158#define BT_EVT_MASK_USER_PASSKEY_REQ BT_EVT_BIT(51)
3159#define BT_EVT_MASK_SSP_COMPLETE BT_EVT_BIT(53)
3160#define BT_EVT_MASK_USER_PASSKEY_NOTIFY BT_EVT_BIT(58)
3161#define BT_EVT_MASK_LE_META_EVENT BT_EVT_BIT(61)
3164#define BT_EVT_MASK_NUM_COMPLETE_DATA_BLOCKS BT_EVT_BIT(8)
3165#define BT_EVT_MASK_TRIGG_CLOCK_CAPTURE BT_EVT_BIT(14)
3166#define BT_EVT_MASK_SYNCH_TRAIN_COMPLETE BT_EVT_BIT(15)
3167#define BT_EVT_MASK_SYNCH_TRAIN_RX BT_EVT_BIT(16)
3168#define BT_EVT_MASK_CL_PER_BC_RX BT_EVT_BIT(17)
3169#define BT_EVT_MASK_CL_PER_BC_TIMEOUT BT_EVT_BIT(18)
3170#define BT_EVT_MASK_TRUNC_PAGE_COMPLETE BT_EVT_BIT(19)
3171#define BT_EVT_MASK_PER_PAGE_RSP_TIMEOUT BT_EVT_BIT(20)
3172#define BT_EVT_MASK_CL_PER_BC_CH_MAP_CHANGE BT_EVT_BIT(21)
3173#define BT_EVT_MASK_INQUIRY_RSP_NOT BT_EVT_BIT(22)
3174#define BT_EVT_MASK_AUTH_PAYLOAD_TIMEOUT_EXP BT_EVT_BIT(23)
3175#define BT_EVT_MASK_SAM_STATUS_CHANGE BT_EVT_BIT(24)
3177#define BT_EVT_MASK_LE_CONN_COMPLETE BT_EVT_BIT(0)
3178#define BT_EVT_MASK_LE_ADVERTISING_REPORT BT_EVT_BIT(1)
3179#define BT_EVT_MASK_LE_CONN_UPDATE_COMPLETE BT_EVT_BIT(2)
3180#define BT_EVT_MASK_LE_REMOTE_FEAT_COMPLETE BT_EVT_BIT(3)
3181#define BT_EVT_MASK_LE_LTK_REQUEST BT_EVT_BIT(4)
3182#define BT_EVT_MASK_LE_CONN_PARAM_REQ BT_EVT_BIT(5)
3183#define BT_EVT_MASK_LE_DATA_LEN_CHANGE BT_EVT_BIT(6)
3184#define BT_EVT_MASK_LE_P256_PUBLIC_KEY_COMPLETE BT_EVT_BIT(7)
3185#define BT_EVT_MASK_LE_GENERATE_DHKEY_COMPLETE BT_EVT_BIT(8)
3186#define BT_EVT_MASK_LE_ENH_CONN_COMPLETE BT_EVT_BIT(9)
3187#define BT_EVT_MASK_LE_DIRECT_ADV_REPORT BT_EVT_BIT(10)
3188#define BT_EVT_MASK_LE_PHY_UPDATE_COMPLETE BT_EVT_BIT(11)
3189#define BT_EVT_MASK_LE_EXT_ADVERTISING_REPORT BT_EVT_BIT(12)
3190#define BT_EVT_MASK_LE_PER_ADV_SYNC_ESTABLISHED BT_EVT_BIT(13)
3191#define BT_EVT_MASK_LE_PER_ADVERTISING_REPORT BT_EVT_BIT(14)
3192#define BT_EVT_MASK_LE_PER_ADV_SYNC_LOST BT_EVT_BIT(15)
3193#define BT_EVT_MASK_LE_SCAN_TIMEOUT BT_EVT_BIT(16)
3194#define BT_EVT_MASK_LE_ADV_SET_TERMINATED BT_EVT_BIT(17)
3195#define BT_EVT_MASK_LE_SCAN_REQ_RECEIVED BT_EVT_BIT(18)
3196#define BT_EVT_MASK_LE_CHAN_SEL_ALGO BT_EVT_BIT(19)
3197#define BT_EVT_MASK_LE_CONNECTIONLESS_IQ_REPORT BT_EVT_BIT(20)
3198#define BT_EVT_MASK_LE_CONNECTION_IQ_REPORT BT_EVT_BIT(21)
3199#define BT_EVT_MASK_LE_CTE_REQUEST_FAILED BT_EVT_BIT(22)
3200#define BT_EVT_MASK_LE_PAST_RECEIVED BT_EVT_BIT(23)
3201#define BT_EVT_MASK_LE_CIS_ESTABLISHED BT_EVT_BIT(24)
3202#define BT_EVT_MASK_LE_CIS_REQ BT_EVT_BIT(25)
3203#define BT_EVT_MASK_LE_BIG_COMPLETE BT_EVT_BIT(26)
3204#define BT_EVT_MASK_LE_BIG_TERMINATED BT_EVT_BIT(27)
3205#define BT_EVT_MASK_LE_BIG_SYNC_ESTABLISHED BT_EVT_BIT(28)
3206#define BT_EVT_MASK_LE_BIG_SYNC_LOST BT_EVT_BIT(29)
3207#define BT_EVT_MASK_LE_REQ_PEER_SCA_COMPLETE BT_EVT_BIT(30)
3208#define BT_EVT_MASK_LE_PATH_LOSS_THRESHOLD BT_EVT_BIT(31)
3209#define BT_EVT_MASK_LE_TRANSMIT_POWER_REPORTING BT_EVT_BIT(32)
3210#define BT_EVT_MASK_LE_BIGINFO_ADV_REPORT BT_EVT_BIT(33)
3211#define BT_EVT_MASK_LE_SUBRATE_CHANGE BT_EVT_BIT(34)
3213#define BT_EVT_MASK_LE_PER_ADV_SYNC_ESTABLISHED_V2 BT_EVT_BIT(35)
3214#define BT_EVT_MASK_LE_PER_ADVERTISING_REPORT_V2 BT_EVT_BIT(36)
3215#define BT_EVT_MASK_LE_PAST_RECEIVED_V2 BT_EVT_BIT(37)
3216#define BT_EVT_MASK_LE_PER_ADV_SUBEVENT_DATA_REQ BT_EVT_BIT(38)
3217#define BT_EVT_MASK_LE_PER_ADV_RESPONSE_REPORT BT_EVT_BIT(39)
3218#define BT_EVT_MASK_LE_ENH_CONN_COMPLETE_V2 BT_EVT_BIT(40)
3221#define BT_HCI_ERR_SUCCESS 0x00
3222#define BT_HCI_ERR_UNKNOWN_CMD 0x01
3223#define BT_HCI_ERR_UNKNOWN_CONN_ID 0x02
3224#define BT_HCI_ERR_HW_FAILURE 0x03
3225#define BT_HCI_ERR_PAGE_TIMEOUT 0x04
3226#define BT_HCI_ERR_AUTH_FAIL 0x05
3227#define BT_HCI_ERR_PIN_OR_KEY_MISSING 0x06
3228#define BT_HCI_ERR_MEM_CAPACITY_EXCEEDED 0x07
3229#define BT_HCI_ERR_CONN_TIMEOUT 0x08
3230#define BT_HCI_ERR_CONN_LIMIT_EXCEEDED 0x09
3231#define BT_HCI_ERR_SYNC_CONN_LIMIT_EXCEEDED 0x0a
3232#define BT_HCI_ERR_CONN_ALREADY_EXISTS 0x0b
3233#define BT_HCI_ERR_CMD_DISALLOWED 0x0c
3234#define BT_HCI_ERR_INSUFFICIENT_RESOURCES 0x0d
3235#define BT_HCI_ERR_INSUFFICIENT_SECURITY 0x0e
3236#define BT_HCI_ERR_BD_ADDR_UNACCEPTABLE 0x0f
3237#define BT_HCI_ERR_CONN_ACCEPT_TIMEOUT 0x10
3238#define BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL 0x11
3239#define BT_HCI_ERR_INVALID_PARAM 0x12
3240#define BT_HCI_ERR_REMOTE_USER_TERM_CONN 0x13
3241#define BT_HCI_ERR_REMOTE_LOW_RESOURCES 0x14
3242#define BT_HCI_ERR_REMOTE_POWER_OFF 0x15
3243#define BT_HCI_ERR_LOCALHOST_TERM_CONN 0x16
3244#define BT_HCI_ERR_REPEATED_ATTEMPTS 0x17
3245#define BT_HCI_ERR_PAIRING_NOT_ALLOWED 0x18
3246#define BT_HCI_ERR_UNKNOWN_LMP_PDU 0x19
3247#define BT_HCI_ERR_UNSUPP_REMOTE_FEATURE 0x1a
3248#define BT_HCI_ERR_SCO_OFFSET_REJECTED 0x1b
3249#define BT_HCI_ERR_SCO_INTERVAL_REJECTED 0x1c
3250#define BT_HCI_ERR_SCO_AIR_MODE_REJECTED 0x1d
3251#define BT_HCI_ERR_INVALID_LL_PARAM 0x1e
3252#define BT_HCI_ERR_UNSPECIFIED 0x1f
3253#define BT_HCI_ERR_UNSUPP_LL_PARAM_VAL 0x20
3254#define BT_HCI_ERR_ROLE_CHANGE_NOT_ALLOWED 0x21
3255#define BT_HCI_ERR_LL_RESP_TIMEOUT 0x22
3256#define BT_HCI_ERR_LL_PROC_COLLISION 0x23
3257#define BT_HCI_ERR_LMP_PDU_NOT_ALLOWED 0x24
3258#define BT_HCI_ERR_ENC_MODE_NOT_ACCEPTABLE 0x25
3259#define BT_HCI_ERR_LINK_KEY_CANNOT_BE_CHANGED 0x26
3260#define BT_HCI_ERR_REQUESTED_QOS_NOT_SUPPORTED 0x27
3261#define BT_HCI_ERR_INSTANT_PASSED 0x28
3262#define BT_HCI_ERR_PAIRING_NOT_SUPPORTED 0x29
3263#define BT_HCI_ERR_DIFF_TRANS_COLLISION 0x2a
3264#define BT_HCI_ERR_QOS_UNACCEPTABLE_PARAM 0x2c
3265#define BT_HCI_ERR_QOS_REJECTED 0x2d
3266#define BT_HCI_ERR_CHAN_ASSESS_NOT_SUPPORTED 0x2e
3267#define BT_HCI_ERR_INSUFF_SECURITY 0x2f
3268#define BT_HCI_ERR_PARAM_OUT_OF_MANDATORY_RANGE 0x30
3269#define BT_HCI_ERR_ROLE_SWITCH_PENDING 0x32
3270#define BT_HCI_ERR_RESERVED_SLOT_VIOLATION 0x34
3271#define BT_HCI_ERR_ROLE_SWITCH_FAILED 0x35
3272#define BT_HCI_ERR_EXT_INQ_RESP_TOO_LARGE 0x36
3273#define BT_HCI_ERR_SIMPLE_PAIR_NOT_SUPP_BY_HOST 0x37
3274#define BT_HCI_ERR_HOST_BUSY_PAIRING 0x38
3275#define BT_HCI_ERR_CONN_REJECTED_DUE_TO_NO_CHAN 0x39
3276#define BT_HCI_ERR_CONTROLLER_BUSY 0x3a
3277#define BT_HCI_ERR_UNACCEPT_CONN_PARAM 0x3b
3278#define BT_HCI_ERR_ADV_TIMEOUT 0x3c
3279#define BT_HCI_ERR_TERM_DUE_TO_MIC_FAIL 0x3d
3280#define BT_HCI_ERR_CONN_FAIL_TO_ESTAB 0x3e
3281#define BT_HCI_ERR_MAC_CONN_FAILED 0x3f
3282#define BT_HCI_ERR_CLOCK_ADJUST_REJECTED 0x40
3283#define BT_HCI_ERR_SUBMAP_NOT_DEFINED 0x41
3284#define BT_HCI_ERR_UNKNOWN_ADV_IDENTIFIER 0x42
3285#define BT_HCI_ERR_LIMIT_REACHED 0x43
3286#define BT_HCI_ERR_OP_CANCELLED_BY_HOST 0x44
3287#define BT_HCI_ERR_PACKET_TOO_LONG 0x45
3288#define BT_HCI_ERR_TOO_LATE 0x46
3289#define BT_HCI_ERR_TOO_EARLY 0x47
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:82
uint16_t handle
Definition: hci_types.h:83
uint16_t len
Definition: hci_types.h:84
Definition: hci_types.h:2124
uint8_t cis_id
Definition: hci_types.h:2125
uint16_t c_sdu
Definition: hci_types.h:2127
uint8_t c_phy
Definition: hci_types.h:2131
uint8_t p_phy
Definition: hci_types.h:2132
uint16_t p_pdu
Definition: hci_types.h:2130
uint8_t p_bn
Definition: hci_types.h:2134
uint8_t nse
Definition: hci_types.h:2126
uint16_t c_pdu
Definition: hci_types.h:2129
uint8_t c_bn
Definition: hci_types.h:2133
uint16_t p_sdu
Definition: hci_types.h:2128
Definition: hci_types.h:2093
uint8_t p_phy
Definition: hci_types.h:2098
uint8_t c_phy
Definition: hci_types.h:2097
uint8_t cis_id
Definition: hci_types.h:2094
uint16_t c_sdu
Definition: hci_types.h:2095
uint8_t c_rtn
Definition: hci_types.h:2099
uint8_t p_rtn
Definition: hci_types.h:2100
uint16_t p_sdu
Definition: hci_types.h:2096
Definition: hci_types.h:2159
uint16_t acl_handle
Definition: hci_types.h:2161
uint16_t cis_handle
Definition: hci_types.h:2160
Definition: hci_types.h:131
uint16_t opcode
Definition: hci_types.h:132
uint8_t param_len
Definition: hci_types.h:133
Definition: hci_types.h:968
uint8_t length
Definition: hci_types.h:969
uint8_t data[0]
Definition: hci_types.h:970
Definition: hci_types.h:402
uint8_t role
Definition: hci_types.h:404
bt_addr_t bdaddr
Definition: hci_types.h:403
Definition: hci_types.h:419
uint16_t max_latency
Definition: hci_types.h:423
uint32_t tx_bandwidth
Definition: hci_types.h:421
bt_addr_t bdaddr
Definition: hci_types.h:420
uint16_t pkt_type
Definition: hci_types.h:426
uint8_t retrans_effort
Definition: hci_types.h:425
uint32_t rx_bandwidth
Definition: hci_types.h:422
uint16_t content_format
Definition: hci_types.h:424
Definition: hci_types.h:467
uint16_t handle
Definition: hci_types.h:468
Definition: hci_types.h:956
uint16_t vs_codec_id
Definition: hci_types.h:959
uint16_t company_id
Definition: hci_types.h:958
uint8_t coding_format
Definition: hci_types.h:957
Definition: hci_types.h:393
bt_addr_t bdaddr
Definition: hci_types.h:394
Definition: hci_types.h:377
uint8_t pscan_rep_mode
Definition: hci_types.h:380
uint16_t packet_type
Definition: hci_types.h:379
bt_addr_t bdaddr
Definition: hci_types.h:378
uint8_t allow_role_switch
Definition: hci_types.h:383
uint16_t clock_offset
Definition: hci_types.h:382
uint8_t reserved
Definition: hci_types.h:381
Definition: hci_types.h:387
uint8_t reason
Definition: hci_types.h:389
uint16_t handle
Definition: hci_types.h:388
Definition: hci_types.h:735
uint16_t acl_mtu
Definition: hci_types.h:736
uint8_t sco_mtu
Definition: hci_types.h:737
uint16_t acl_pkts
Definition: hci_types.h:738
uint16_t sco_pkts
Definition: hci_types.h:739
Definition: hci_types.h:748
struct bt_hci_handle_count h[0]
Definition: hci_types.h:750
uint8_t num_handles
Definition: hci_types.h:749
Definition: hci_types.h:540
uint8_t reason
Definition: hci_types.h:542
bt_addr_t bdaddr
Definition: hci_types.h:541
Definition: hci_types.h:511
uint8_t capability
Definition: hci_types.h:513
uint8_t authentication
Definition: hci_types.h:515
uint8_t oob_data
Definition: hci_types.h:514
bt_addr_t bdaddr
Definition: hci_types.h:512
Definition: hci_types.h:2180
uint16_t handle
Definition: hci_types.h:2181
Definition: hci_types.h:1160
bt_addr_le_t addr
Definition: hci_types.h:1161
Definition: hci_types.h:1771
uint8_t sid
Definition: hci_types.h:1773
bt_addr_le_t addr
Definition: hci_types.h:1772
Definition: hci_types.h:1345
bt_addr_le_t peer_id_addr
Definition: hci_types.h:1346
uint8_t local_irk[16]
Definition: hci_types.h:1348
uint8_t peer_irk[16]
Definition: hci_types.h:1347
Definition: hci_types.h:2238
uint8_t bcode[16]
Definition: hci_types.h:2242
uint8_t mse
Definition: hci_types.h:2243
uint8_t encryption
Definition: hci_types.h:2241
uint16_t sync_timeout
Definition: hci_types.h:2244
uint8_t big_handle
Definition: hci_types.h:2239
uint8_t bis[0]
Definition: hci_types.h:2246
uint16_t sync_handle
Definition: hci_types.h:2240
uint8_t num_bis
Definition: hci_types.h:2245
Definition: hci_types.h:2250
uint8_t big_handle
Definition: hci_types.h:2251
Definition: hci_types.h:1939
uint8_t requested_cte_length
Definition: hci_types.h:1943
uint8_t requested_cte_type
Definition: hci_types.h:1944
uint16_t cte_request_interval
Definition: hci_types.h:1942
uint8_t enable
Definition: hci_types.h:1941
uint16_t handle
Definition: hci_types.h:1940
Definition: hci_types.h:1953
uint16_t handle
Definition: hci_types.h:1954
uint8_t enable
Definition: hci_types.h:1955
Definition: hci_types.h:1292
uint16_t handle
Definition: hci_types.h:1293
uint8_t reason
Definition: hci_types.h:1294
Definition: hci_types.h:1277
uint16_t interval_min
Definition: hci_types.h:1279
uint16_t min_ce_len
Definition: hci_types.h:1283
uint16_t latency
Definition: hci_types.h:1281
uint16_t max_ce_len
Definition: hci_types.h:1284
uint16_t handle
Definition: hci_types.h:1278
uint16_t interval_max
Definition: hci_types.h:1280
uint16_t timeout
Definition: hci_types.h:1282
Definition: hci_types.h:2212
uint16_t max_pdu
Definition: hci_types.h:2220
uint8_t pto
Definition: hci_types.h:2226
uint8_t sdu_interval[3]
Definition: hci_types.h:2216
uint8_t bcode[16]
Definition: hci_types.h:2228
uint8_t nse
Definition: hci_types.h:2218
uint8_t packing
Definition: hci_types.h:2222
uint8_t encryption
Definition: hci_types.h:2227
uint16_t iso_interval
Definition: hci_types.h:2217
uint8_t irc
Definition: hci_types.h:2225
uint8_t num_bis
Definition: hci_types.h:2215
uint8_t phy
Definition: hci_types.h:2221
uint8_t bn
Definition: hci_types.h:2224
uint16_t max_sdu
Definition: hci_types.h:2219
uint8_t big_handle
Definition: hci_types.h:2213
uint8_t framing
Definition: hci_types.h:2223
uint8_t adv_handle
Definition: hci_types.h:2214
Definition: hci_types.h:2196
uint16_t max_sdu
Definition: hci_types.h:2201
uint8_t bcode[16]
Definition: hci_types.h:2208
uint16_t max_latency
Definition: hci_types.h:2202
uint8_t rtn
Definition: hci_types.h:2203
uint8_t sdu_interval[3]
Definition: hci_types.h:2200
uint8_t framing
Definition: hci_types.h:2206
uint8_t encryption
Definition: hci_types.h:2207
uint8_t phy
Definition: hci_types.h:2204
uint8_t adv_handle
Definition: hci_types.h:2198
uint8_t packing
Definition: hci_types.h:2205
uint8_t num_bis
Definition: hci_types.h:2199
uint8_t big_handle
Definition: hci_types.h:2197
Definition: hci_types.h:2164
struct bt_hci_cis cis[0]
Definition: hci_types.h:2166
uint8_t num_cis
Definition: hci_types.h:2165
Definition: hci_types.h:1135
uint16_t scan_interval
Definition: hci_types.h:1136
uint8_t filter_policy
Definition: hci_types.h:1138
uint16_t min_ce_len
Definition: hci_types.h:1145
uint16_t conn_latency
Definition: hci_types.h:1143
uint16_t max_ce_len
Definition: hci_types.h:1146
uint8_t own_addr_type
Definition: hci_types.h:1140
uint16_t conn_interval_min
Definition: hci_types.h:1141
uint16_t conn_interval_max
Definition: hci_types.h:1142
bt_addr_le_t peer_addr
Definition: hci_types.h:1139
uint16_t scan_window
Definition: hci_types.h:1137
uint16_t supervision_timeout
Definition: hci_types.h:1144
Definition: hci_types.h:2044
uint16_t timeout
Definition: hci_types.h:2047
uint16_t skip
Definition: hci_types.h:2046
uint8_t mode
Definition: hci_types.h:2045
uint8_t cte_type
Definition: hci_types.h:2048
Definition: hci_types.h:1201
uint8_t key[16]
Definition: hci_types.h:1202
uint8_t plaintext[16]
Definition: hci_types.h:1203
Definition: hci_types.h:1465
uint8_t rx_ch
Definition: hci_types.h:1466
uint8_t mod_index
Definition: hci_types.h:1468
uint8_t phy
Definition: hci_types.h:1467
Definition: hci_types.h:1477
uint8_t tx_ch
Definition: hci_types.h:1478
uint8_t phy
Definition: hci_types.h:1481
uint8_t pkt_payload
Definition: hci_types.h:1480
uint8_t test_data_len
Definition: hci_types.h:1479
Definition: hci_types.h:1678
uint8_t own_addr_type
Definition: hci_types.h:1682
bt_addr_le_t peer_addr
Definition: hci_types.h:1683
uint8_t subevent
Definition: hci_types.h:1680
uint8_t filter_policy
Definition: hci_types.h:1681
struct bt_hci_ext_conn_phy p[0]
Definition: hci_types.h:1685
uint8_t adv_handle
Definition: hci_types.h:1679
uint8_t phys
Definition: hci_types.h:1684
Definition: hci_types.h:1670
uint8_t filter_policy
Definition: hci_types.h:1671
uint8_t own_addr_type
Definition: hci_types.h:1672
bt_addr_le_t peer_addr
Definition: hci_types.h:1673
struct bt_hci_ext_conn_phy p[0]
Definition: hci_types.h:1675
uint8_t phys
Definition: hci_types.h:1674
Definition: hci_types.h:1338
uint8_t key_type
Definition: hci_types.h:1340
uint8_t key[64]
Definition: hci_types.h:1339
Definition: hci_types.h:1328
uint8_t key[64]
Definition: hci_types.h:1329
Definition: hci_types.h:2307
uint8_t payload_type
Definition: hci_types.h:2309
uint16_t handle
Definition: hci_types.h:2308
Definition: hci_types.h:2331
uint16_t handle
Definition: hci_types.h:2332
Definition: hci_types.h:2296
uint8_t payload_type
Definition: hci_types.h:2298
uint16_t handle
Definition: hci_types.h:2297
Definition: hci_types.h:1235
uint16_t handle
Definition: hci_types.h:1236
Definition: hci_types.h:1225
uint8_t ltk[16]
Definition: hci_types.h:1227
uint16_t handle
Definition: hci_types.h:1226
Definition: hci_types.h:2030
uint8_t cte_type
Definition: hci_types.h:2035
uint16_t skip
Definition: hci_types.h:2033
uint16_t conn_handle
Definition: hci_types.h:2031
uint8_t mode
Definition: hci_types.h:2032
uint16_t timeout
Definition: hci_types.h:2034
Definition: hci_types.h:1754
bt_addr_le_t addr
Definition: hci_types.h:1757
uint16_t sync_timeout
Definition: hci_types.h:1759
uint16_t skip
Definition: hci_types.h:1758
uint8_t cte_type
Definition: hci_types.h:1760
uint8_t sid
Definition: hci_types.h:1756
uint8_t options
Definition: hci_types.h:1755
Definition: hci_types.h:2007
uint16_t conn_handle
Definition: hci_types.h:2008
uint16_t service_data
Definition: hci_types.h:2009
uint8_t adv_handle
Definition: hci_types.h:2010
Definition: hci_types.h:1995
uint16_t service_data
Definition: hci_types.h:1997
uint16_t sync_handle
Definition: hci_types.h:1998
uint16_t conn_handle
Definition: hci_types.h:1996
Definition: hci_types.h:1766
uint16_t handle
Definition: hci_types.h:1767
Definition: hci_types.h:1186
uint16_t handle
Definition: hci_types.h:1187
Definition: hci_types.h:2354
uint16_t handle
Definition: hci_types.h:2355
Definition: hci_types.h:2065
uint16_t handle
Definition: hci_types.h:2066
Definition: hci_types.h:1374
bt_addr_le_t peer_id_addr
Definition: hci_types.h:1375
Definition: hci_types.h:1365
bt_addr_le_t peer_id_addr
Definition: hci_types.h:1366
Definition: hci_types.h:1420
uint16_t handle
Definition: hci_types.h:1421
Definition: hci_types.h:1196
uint16_t handle
Definition: hci_types.h:1197
Definition: hci_types.h:2318
uint16_t handle
Definition: hci_types.h:2319
Definition: hci_types.h:663
uint8_t phy
Definition: hci_types.h:665
uint16_t handle
Definition: hci_types.h:664
Definition: hci_types.h:2185
uint16_t handle
Definition: hci_types.h:2186
uint8_t reason
Definition: hci_types.h:2187
Definition: hci_types.h:1165
bt_addr_le_t addr
Definition: hci_types.h:1166
Definition: hci_types.h:1777
uint8_t sid
Definition: hci_types.h:1779
bt_addr_le_t addr
Definition: hci_types.h:1778
Definition: hci_types.h:1352
bt_addr_le_t peer_id_addr
Definition: hci_types.h:1353
Definition: hci_types.h:1587
uint8_t handle
Definition: hci_types.h:1588
Definition: hci_types.h:2170
uint8_t cig_id
Definition: hci_types.h:2171
Definition: hci_types.h:2281
uint8_t path_dir
Definition: hci_types.h:2283
uint16_t handle
Definition: hci_types.h:2282
Definition: hci_types.h:2260
uint16_t handle
Definition: hci_types.h:2261
Definition: hci_types.h:1825
uint8_t expected_cte_type
Definition: hci_types.h:1830
uint8_t slot_durations
Definition: hci_types.h:1831
uint8_t mod_index
Definition: hci_types.h:1828
uint8_t ant_ids[0]
Definition: hci_types.h:1833
uint8_t switch_pattern_len
Definition: hci_types.h:1832
uint8_t rx_ch
Definition: hci_types.h:1826
uint8_t expected_cte_len
Definition: hci_types.h:1829
uint8_t phy
Definition: hci_types.h:1827
Definition: hci_types.h:1250
uint8_t rx_ch
Definition: hci_types.h:1251
Definition: hci_types.h:1386
uint8_t enable
Definition: hci_types.h:1387
Definition: hci_types.h:1080
uint8_t len
Definition: hci_types.h:1081
uint8_t data[31]
Definition: hci_types.h:1082
Definition: hci_types.h:1095
uint8_t enable
Definition: hci_types.h:1096
Definition: hci_types.h:1063
uint8_t channel_map
Definition: hci_types.h:1069
uint16_t min_interval
Definition: hci_types.h:1064
uint8_t filter_policy
Definition: hci_types.h:1070
uint8_t type
Definition: hci_types.h:1066
uint16_t max_interval
Definition: hci_types.h:1065
bt_addr_le_t direct_addr
Definition: hci_types.h:1068
uint8_t own_addr_type
Definition: hci_types.h:1067
Definition: hci_types.h:1485
bt_addr_t bdaddr
Definition: hci_types.h:1487
uint8_t handle
Definition: hci_types.h:1486
Definition: hci_types.h:2137
uint8_t p_interval[3]
Definition: hci_types.h:2140
uint8_t cig_id
Definition: hci_types.h:2138
uint8_t sca
Definition: hci_types.h:2144
uint8_t c_ft
Definition: hci_types.h:2141
uint8_t framing
Definition: hci_types.h:2146
uint8_t num_cis
Definition: hci_types.h:2147
struct bt_hci_cis_params_test cis[0]
Definition: hci_types.h:2148
uint8_t packing
Definition: hci_types.h:2145
uint8_t c_interval[3]
Definition: hci_types.h:2139
uint16_t iso_interval
Definition: hci_types.h:2143
uint8_t p_ft
Definition: hci_types.h:2142
Definition: hci_types.h:2103
uint8_t c_interval[3]
Definition: hci_types.h:2105
uint8_t sca
Definition: hci_types.h:2107
uint8_t p_interval[3]
Definition: hci_types.h:2106
uint8_t packing
Definition: hci_types.h:2108
uint8_t cig_id
Definition: hci_types.h:2104
uint16_t p_latency
Definition: hci_types.h:2111
uint8_t framing
Definition: hci_types.h:2109
struct bt_hci_cis_params cis[0]
Definition: hci_types.h:2113
uint8_t num_cis
Definition: hci_types.h:2112
uint16_t c_latency
Definition: hci_types.h:2110
Definition: hci_types.h:1885
uint8_t max_sampled_cte
Definition: hci_types.h:1889
uint8_t switch_pattern_len
Definition: hci_types.h:1890
uint8_t ant_ids[0]
Definition: hci_types.h:1891
uint16_t sync_handle
Definition: hci_types.h:1886
uint8_t slot_durations
Definition: hci_types.h:1888
uint8_t sampling_enable
Definition: hci_types.h:1887
Definition: hci_types.h:1872
uint8_t cte_enable
Definition: hci_types.h:1874
uint8_t handle
Definition: hci_types.h:1873
Definition: hci_types.h:1862
uint8_t ant_ids[0]
Definition: hci_types.h:1868
uint8_t switch_pattern_len
Definition: hci_types.h:1867
uint8_t cte_type
Definition: hci_types.h:1865
uint8_t handle
Definition: hci_types.h:1863
uint8_t cte_len
Definition: hci_types.h:1864
uint8_t cte_count
Definition: hci_types.h:1866
Definition: hci_types.h:1900
uint8_t ant_ids[0]
Definition: hci_types.h:1905
uint8_t sampling_enable
Definition: hci_types.h:1902
uint8_t slot_durations
Definition: hci_types.h:1903
uint16_t handle
Definition: hci_types.h:1901
uint8_t switch_pattern_len
Definition: hci_types.h:1904
Definition: hci_types.h:1921
uint8_t switch_pattern_len
Definition: hci_types.h:1924
uint8_t cte_types
Definition: hci_types.h:1923
uint8_t ant_ids[0]
Definition: hci_types.h:1925
uint16_t handle
Definition: hci_types.h:1922
Definition: hci_types.h:1302
uint16_t tx_time
Definition: hci_types.h:1305
uint16_t handle
Definition: hci_types.h:1303
uint16_t tx_octets
Definition: hci_types.h:1304
Definition: hci_types.h:1438
uint8_t tx_phys
Definition: hci_types.h:1440
uint8_t rx_phys
Definition: hci_types.h:1441
uint8_t all_phys
Definition: hci_types.h:1439
Definition: hci_types.h:707
uint16_t max_latency
Definition: hci_types.h:710
uint16_t supervision_timeout
Definition: hci_types.h:712
uint16_t subrate_min
Definition: hci_types.h:708
uint16_t subrate_max
Definition: hci_types.h:709
uint16_t continuation_number
Definition: hci_types.h:711
Definition: hci_types.h:1019
uint8_t events[8]
Definition: hci_types.h:1020
Definition: hci_types.h:1544
uint8_t data[0]
Definition: hci_types.h:1549
uint8_t handle
Definition: hci_types.h:1545
uint8_t op
Definition: hci_types.h:1546
uint8_t len
Definition: hci_types.h:1548
uint8_t frag_pref
Definition: hci_types.h:1547
Definition: hci_types.h:1568
struct bt_hci_ext_adv_set s[0]
Definition: hci_types.h:1571
uint8_t set_num
Definition: hci_types.h:1570
uint8_t enable
Definition: hci_types.h:1569
Definition: hci_types.h:1511
uint8_t prim_adv_phy
Definition: hci_types.h:1521
uint8_t prim_max_interval[3]
Definition: hci_types.h:1515
uint8_t filter_policy
Definition: hci_types.h:1519
uint8_t own_addr_type
Definition: hci_types.h:1517
uint16_t props
Definition: hci_types.h:1513
uint8_t sec_adv_max_skip
Definition: hci_types.h:1522
int8_t tx_power
Definition: hci_types.h:1520
uint8_t handle
Definition: hci_types.h:1512
bt_addr_le_t peer_addr
Definition: hci_types.h:1518
uint8_t prim_min_interval[3]
Definition: hci_types.h:1514
uint8_t sec_adv_phy
Definition: hci_types.h:1523
uint8_t prim_channel_map
Definition: hci_types.h:1516
uint8_t scan_req_notify_enable
Definition: hci_types.h:1525
uint8_t sid
Definition: hci_types.h:1524
Definition: hci_types.h:1650
uint8_t enable
Definition: hci_types.h:1651
uint8_t filter_dup
Definition: hci_types.h:1652
uint16_t period
Definition: hci_types.h:1654
uint16_t duration
Definition: hci_types.h:1653
Definition: hci_types.h:1639
uint8_t own_addr_type
Definition: hci_types.h:1640
uint8_t filter_policy
Definition: hci_types.h:1641
uint8_t phys
Definition: hci_types.h:1642
struct bt_hci_ext_scan_phy p[0]
Definition: hci_types.h:1643
Definition: hci_types.h:1553
uint8_t op
Definition: hci_types.h:1555
uint8_t len
Definition: hci_types.h:1557
uint8_t handle
Definition: hci_types.h:1554
uint8_t data[0]
Definition: hci_types.h:1558
uint8_t frag_pref
Definition: hci_types.h:1556
Definition: hci_types.h:1181
uint8_t ch_map[5]
Definition: hci_types.h:1182
Definition: hci_types.h:2344
uint8_t bit_value
Definition: hci_types.h:2346
uint8_t bit_number
Definition: hci_types.h:2345
Definition: hci_types.h:696
uint8_t enable
Definition: hci_types.h:698
uint16_t handle
Definition: hci_types.h:697
Definition: hci_types.h:687
uint16_t min_time_spent
Definition: hci_types.h:693
uint8_t low_hysteresis
Definition: hci_types.h:692
uint16_t handle
Definition: hci_types.h:688
uint8_t low_threshold
Definition: hci_types.h:691
uint8_t high_hysteresis
Definition: hci_types.h:690
uint8_t high_threshold
Definition: hci_types.h:689
Definition: hci_types.h:1705
uint16_t sync_handle
Definition: hci_types.h:1706
uint8_t response_data[0]
Definition: hci_types.h:1712
uint8_t response_slot
Definition: hci_types.h:1710
uint8_t request_subevent
Definition: hci_types.h:1708
uint8_t response_data_length
Definition: hci_types.h:1711
uint8_t response_subevent
Definition: hci_types.h:1709
uint16_t request_event
Definition: hci_types.h:1707
Definition: hci_types.h:1689
uint8_t response_slot_start
Definition: hci_types.h:1691
uint8_t subevent_data[0]
Definition: hci_types.h:1694
uint8_t subevent
Definition: hci_types.h:1690
uint8_t subevent_data_length
Definition: hci_types.h:1693
uint8_t response_slot_count
Definition: hci_types.h:1692
Definition: hci_types.h:1697
uint8_t adv_handle
Definition: hci_types.h:1698
uint8_t num_subevents
Definition: hci_types.h:1699
struct bt_hci_cp_le_set_pawr_subevent_data_element subevents[0]
Definition: hci_types.h:1700
Definition: hci_types.h:1716
uint8_t num_subevents
Definition: hci_types.h:1719
uint16_t sync_handle
Definition: hci_types.h:1717
uint8_t subevents[0]
Definition: hci_types.h:1720
uint16_t periodic_adv_properties
Definition: hci_types.h:1718
Definition: hci_types.h:1612
uint8_t handle
Definition: hci_types.h:1613
uint8_t op
Definition: hci_types.h:1614
uint8_t data[0]
Definition: hci_types.h:1616
uint8_t len
Definition: hci_types.h:1615
Definition: hci_types.h:1623
uint8_t handle
Definition: hci_types.h:1625
uint8_t enable
Definition: hci_types.h:1624
Definition: hci_types.h:1725
uint8_t num_response_slots
Definition: hci_types.h:1734
uint8_t response_slot_spacing
Definition: hci_types.h:1733
uint8_t subevent_interval
Definition: hci_types.h:1731
uint8_t num_subevents
Definition: hci_types.h:1730
uint16_t max_interval
Definition: hci_types.h:1728
uint8_t response_slot_delay
Definition: hci_types.h:1732
uint16_t props
Definition: hci_types.h:1729
uint16_t min_interval
Definition: hci_types.h:1727
uint8_t handle
Definition: hci_types.h:1726
Definition: hci_types.h:1597
uint16_t max_interval
Definition: hci_types.h:1600
uint8_t handle
Definition: hci_types.h:1598
uint16_t props
Definition: hci_types.h:1601
uint16_t min_interval
Definition: hci_types.h:1599
Definition: hci_types.h:1989
uint16_t handle
Definition: hci_types.h:1990
uint8_t enable
Definition: hci_types.h:1991
Definition: hci_types.h:1449
uint8_t tx_phys
Definition: hci_types.h:1452
uint16_t phy_opts
Definition: hci_types.h:1454
uint8_t rx_phys
Definition: hci_types.h:1453
uint16_t handle
Definition: hci_types.h:1450
uint8_t all_phys
Definition: hci_types.h:1451
Definition: hci_types.h:1814
bt_addr_le_t id_addr
Definition: hci_types.h:1815
uint8_t mode
Definition: hci_types.h:1816
Definition: hci_types.h:1037
bt_addr_t bdaddr
Definition: hci_types.h:1038
Definition: hci_types.h:1391
uint16_t rpa_timeout
Definition: hci_types.h:1392
Definition: hci_types.h:1125
uint8_t enable
Definition: hci_types.h:1126
uint8_t filter_dup
Definition: hci_types.h:1127
Definition: hci_types.h:1109
uint16_t window
Definition: hci_types.h:1112
uint8_t addr_type
Definition: hci_types.h:1113
uint8_t filter_policy
Definition: hci_types.h:1114
uint8_t scan_type
Definition: hci_types.h:1110
uint16_t interval
Definition: hci_types.h:1111
Definition: hci_types.h:1086
uint8_t len
Definition: hci_types.h:1087
uint8_t data[31]
Definition: hci_types.h:1088
Definition: hci_types.h:681
uint8_t local_enable
Definition: hci_types.h:683
uint16_t handle
Definition: hci_types.h:682
uint8_t remote_enable
Definition: hci_types.h:684
Definition: hci_types.h:2265
uint16_t handle
Definition: hci_types.h:2266
uint8_t codec_config_len
Definition: hci_types.h:2271
uint8_t controller_delay[3]
Definition: hci_types.h:2270
struct bt_hci_cp_codec_id codec_id
Definition: hci_types.h:2269
uint8_t path_id
Definition: hci_types.h:2268
uint8_t path_dir
Definition: hci_types.h:2267
uint8_t codec_config[0]
Definition: hci_types.h:2272
Definition: hci_types.h:1217
uint16_t handle
Definition: hci_types.h:1218
uint16_t ediv
Definition: hci_types.h:1220
uint8_t ltk[16]
Definition: hci_types.h:1221
uint64_t rand
Definition: hci_types.h:1219
Definition: hci_types.h:715
uint16_t max_latency
Definition: hci_types.h:719
uint16_t subrate_min
Definition: hci_types.h:717
uint16_t handle
Definition: hci_types.h:716
uint16_t subrate_max
Definition: hci_types.h:718
uint16_t supervision_timeout
Definition: hci_types.h:721
uint16_t continuation_number
Definition: hci_types.h:720
Definition: hci_types.h:2232
uint8_t reason
Definition: hci_types.h:2234
uint8_t big_handle
Definition: hci_types.h:2233
Definition: hci_types.h:1838
uint8_t test_data_len
Definition: hci_types.h:1840
uint8_t switch_pattern_len
Definition: hci_types.h:1845
uint8_t cte_len
Definition: hci_types.h:1843
uint8_t tx_ch
Definition: hci_types.h:1839
uint8_t phy
Definition: hci_types.h:1842
uint8_t pkt_payload
Definition: hci_types.h:1841
uint8_t cte_type
Definition: hci_types.h:1844
uint8_t ant_ids[0]
Definition: hci_types.h:1846
Definition: hci_types.h:2393
int8_t tx_power
Definition: hci_types.h:2394
Definition: hci_types.h:2372
uint8_t switch_pattern_len
Definition: hci_types.h:2379
uint8_t tx_ch
Definition: hci_types.h:2373
uint8_t ant_ids[0]
Definition: hci_types.h:2380
uint8_t phy
Definition: hci_types.h:2376
uint8_t test_data_len
Definition: hci_types.h:2374
uint8_t cte_len
Definition: hci_types.h:2377
uint8_t pkt_payload
Definition: hci_types.h:2375
uint8_t cte_type
Definition: hci_types.h:2378
Definition: hci_types.h:1264
uint8_t test_data_len
Definition: hci_types.h:1266
uint8_t tx_ch
Definition: hci_types.h:1265
uint8_t pkt_payload
Definition: hci_types.h:1267
Definition: hci_types.h:1320
uint16_t max_tx_octets
Definition: hci_types.h:1321
uint16_t max_tx_time
Definition: hci_types.h:1322
Definition: hci_types.h:1805
int16_t rx_path_comp
Definition: hci_types.h:1807
int16_t tx_path_comp
Definition: hci_types.h:1806
Definition: hci_types.h:442
bt_addr_t bdaddr
Definition: hci_types.h:443
Definition: hci_types.h:436
uint8_t link_key[16]
Definition: hci_types.h:438
bt_addr_t bdaddr
Definition: hci_types.h:437
Definition: hci_types.h:458
bt_addr_t bdaddr
Definition: hci_types.h:459
Definition: hci_types.h:447
bt_addr_t bdaddr
Definition: hci_types.h:448
uint8_t pin_len
Definition: hci_types.h:449
uint8_t pin_code[16]
Definition: hci_types.h:450
Definition: hci_types.h:780
uint16_t handle
Definition: hci_types.h:781
Definition: hci_types.h:963
uint8_t direction
Definition: hci_types.h:966
uint8_t transport
Definition: hci_types.h:965
struct bt_hci_cp_codec_id codec_id
Definition: hci_types.h:964
Definition: hci_types.h:980
struct bt_hci_cp_codec_id codec_id
Definition: hci_types.h:981
uint8_t direction
Definition: hci_types.h:983
uint8_t transport
Definition: hci_types.h:982
uint8_t codec_config[0]
Definition: hci_types.h:985
uint8_t codec_config_len
Definition: hci_types.h:984
Definition: hci_types.h:1007
uint16_t handle
Definition: hci_types.h:1008
Definition: hci_types.h:846
uint8_t page
Definition: hci_types.h:847
Definition: hci_types.h:500
uint8_t page
Definition: hci_types.h:502
uint16_t handle
Definition: hci_types.h:501
Definition: hci_types.h:495
uint16_t handle
Definition: hci_types.h:496
Definition: hci_types.h:506
uint16_t handle
Definition: hci_types.h:507
Definition: hci_types.h:647
uint8_t type
Definition: hci_types.h:649
uint16_t handle
Definition: hci_types.h:648
Definition: hci_types.h:430
uint8_t reason
Definition: hci_types.h:432
bt_addr_t bdaddr
Definition: hci_types.h:431
Definition: hci_types.h:486
bt_addr_t bdaddr
Definition: hci_types.h:487
Definition: hci_types.h:478
bt_addr_t bdaddr
Definition: hci_types.h:479
uint16_t clock_offset
Definition: hci_types.h:482
uint8_t reserved
Definition: hci_types.h:481
uint8_t pscan_rep_mode
Definition: hci_types.h:480
Definition: hci_types.h:472
uint16_t handle
Definition: hci_types.h:473
uint8_t encrypt
Definition: hci_types.h:474
Definition: hci_types.h:730
uint8_t flow_enable
Definition: hci_types.h:731
Definition: hci_types.h:764
uint8_t events_page_2[8]
Definition: hci_types.h:765
Definition: hci_types.h:546
uint8_t events[8]
Definition: hci_types.h:547
Definition: hci_types.h:408
uint32_t rx_bandwidth
Definition: hci_types.h:411
uint16_t content_format
Definition: hci_types.h:413
uint16_t max_latency
Definition: hci_types.h:412
uint8_t retrans_effort
Definition: hci_types.h:414
uint16_t pkt_type
Definition: hci_types.h:415
uint32_t tx_bandwidth
Definition: hci_types.h:410
uint16_t handle
Definition: hci_types.h:409
Definition: hci_types.h:520
bt_addr_t bdaddr
Definition: hci_types.h:521
Definition: hci_types.h:535
bt_addr_t bdaddr
Definition: hci_types.h:536
Definition: hci_types.h:529
bt_addr_t bdaddr
Definition: hci_types.h:530
uint32_t passkey
Definition: hci_types.h:531
Definition: hci_types.h:791
uint16_t auth_payload_timeout
Definition: hci_types.h:793
uint16_t handle
Definition: hci_types.h:792
Definition: hci_types.h:640
uint8_t class_of_device[3]
Definition: hci_types.h:641
Definition: hci_types.h:564
uint16_t conn_accept_timeout
Definition: hci_types.h:565
Definition: hci_types.h:754
uint8_t mode
Definition: hci_types.h:755
Definition: hci_types.h:769
uint8_t le
Definition: hci_types.h:770
uint8_t simul
Definition: hci_types.h:771
Definition: hci_types.h:775
uint8_t sc_support
Definition: hci_types.h:776
Definition: hci_types.h:759
uint8_t mode
Definition: hci_types.h:760
Definition: hci_types.h:2431
uint16_t handle
Definition: hci_types.h:2433
uint8_t status
Definition: hci_types.h:2432
Definition: hci_types.h:2719
uint16_t handle
Definition: hci_types.h:2720
Definition: hci_types.h:2472
uint8_t status
Definition: hci_types.h:2473
Definition: hci_types.h:2467
uint16_t opcode
Definition: hci_types.h:2469
uint8_t ncmd
Definition: hci_types.h:2468
Definition: hci_types.h:2477
uint16_t opcode
Definition: hci_types.h:2480
uint8_t ncmd
Definition: hci_types.h:2479
uint8_t status
Definition: hci_types.h:2478
Definition: hci_types.h:2408
uint8_t status
Definition: hci_types.h:2409
bt_addr_t bdaddr
Definition: hci_types.h:2411
uint8_t encr_enabled
Definition: hci_types.h:2413
uint16_t handle
Definition: hci_types.h:2410
uint8_t link_type
Definition: hci_types.h:2412
Definition: hci_types.h:2417
bt_addr_t bdaddr
Definition: hci_types.h:2418
uint8_t dev_class[3]
Definition: hci_types.h:2419
uint8_t link_type
Definition: hci_types.h:2420
Definition: hci_types.h:2535
uint8_t link_type
Definition: hci_types.h:2536
Definition: hci_types.h:2424
uint8_t reason
Definition: hci_types.h:2427
uint16_t handle
Definition: hci_types.h:2426
uint8_t status
Definition: hci_types.h:2425
Definition: hci_types.h:2444
uint8_t encrypt
Definition: hci_types.h:2447
uint16_t handle
Definition: hci_types.h:2446
uint8_t status
Definition: hci_types.h:2445
Definition: hci_types.h:2672
uint16_t handle
Definition: hci_types.h:2674
uint8_t status
Definition: hci_types.h:2673
Definition: hci_types.h:2660
uint8_t eir[240]
Definition: hci_types.h:2668
int8_t rssi
Definition: hci_types.h:2667
uint16_t clock_offset
Definition: hci_types.h:2666
uint8_t num_reports
Definition: hci_types.h:2661
bt_addr_t addr
Definition: hci_types.h:2662
uint8_t cod[3]
Definition: hci_types.h:2665
uint8_t reserved
Definition: hci_types.h:2664
uint8_t pscan_rep_mode
Definition: hci_types.h:2663
Definition: hci_types.h:2484
uint8_t hardware_code
Definition: hci_types.h:2485
Definition: hci_types.h:59
uint8_t len
Definition: hci_types.h:61
uint8_t evt
Definition: hci_types.h:60
Definition: hci_types.h:2403
uint8_t status
Definition: hci_types.h:2404
Definition: hci_types.h:2678
bt_addr_t bdaddr
Definition: hci_types.h:2679
Definition: hci_types.h:2683
uint8_t authentication
Definition: hci_types.h:2687
uint8_t capability
Definition: hci_types.h:2685
uint8_t oob_data
Definition: hci_types.h:2686
bt_addr_t bdaddr
Definition: hci_types.h:2684
Definition: hci_types.h:2901
uint8_t num_completed_ext_adv_evts
Definition: hci_types.h:2905
uint8_t status
Definition: hci_types.h:2902
uint16_t conn_handle
Definition: hci_types.h:2904
uint8_t adv_handle
Definition: hci_types.h:2903
Definition: hci_types.h:2741
uint8_t length
Definition: hci_types.h:2744
bt_addr_le_t addr
Definition: hci_types.h:2743
uint8_t evt_type
Definition: hci_types.h:2742
uint8_t data[0]
Definition: hci_types.h:2745
Definition: hci_types.h:2747
struct bt_hci_evt_le_advertising_info adv_info[0]
Definition: hci_types.h:2749
uint8_t num_reports
Definition: hci_types.h:2748
Definition: hci_types.h:3022
uint8_t irc
Definition: hci_types.h:3031
uint16_t iso_interval
Definition: hci_types.h:3033
uint8_t big_handle
Definition: hci_types.h:3024
uint8_t bn
Definition: hci_types.h:3029
uint8_t latency[3]
Definition: hci_types.h:3026
uint8_t sync_delay[3]
Definition: hci_types.h:3025
uint8_t pto
Definition: hci_types.h:3030
uint16_t max_pdu
Definition: hci_types.h:3032
uint8_t num_bis
Definition: hci_types.h:3034
uint8_t phy
Definition: hci_types.h:3027
uint8_t status
Definition: hci_types.h:3023
uint8_t nse
Definition: hci_types.h:3028
uint16_t handle[0]
Definition: hci_types.h:3035
Definition: hci_types.h:3045
uint16_t max_pdu
Definition: hci_types.h:3053
uint8_t num_bis
Definition: hci_types.h:3055
uint8_t big_handle
Definition: hci_types.h:3047
uint8_t nse
Definition: hci_types.h:3049
uint8_t bn
Definition: hci_types.h:3050
uint16_t handle[0]
Definition: hci_types.h:3056
uint16_t iso_interval
Definition: hci_types.h:3054
uint8_t pto
Definition: hci_types.h:3051
uint8_t status
Definition: hci_types.h:3046
uint8_t latency[3]
Definition: hci_types.h:3048
uint8_t irc
Definition: hci_types.h:3052
Definition: hci_types.h:3060
uint8_t reason
Definition: hci_types.h:3062
uint8_t big_handle
Definition: hci_types.h:3061
Definition: hci_types.h:3039
uint8_t reason
Definition: hci_types.h:3041
uint8_t big_handle
Definition: hci_types.h:3040
Definition: hci_types.h:3105
uint16_t max_sdu
Definition: hci_types.h:3115
uint16_t max_pdu
Definition: hci_types.h:3113
uint8_t phy
Definition: hci_types.h:3116
uint8_t sdu_interval[3]
Definition: hci_types.h:3114
uint16_t sync_handle
Definition: hci_types.h:3106
uint8_t irc
Definition: hci_types.h:3112
uint8_t framing
Definition: hci_types.h:3117
uint8_t bn
Definition: hci_types.h:3110
uint8_t nse
Definition: hci_types.h:3108
uint8_t encryption
Definition: hci_types.h:3118
uint8_t num_bis
Definition: hci_types.h:3107
uint16_t iso_interval
Definition: hci_types.h:3109
uint8_t pto
Definition: hci_types.h:3111
Definition: hci_types.h:2918
uint16_t handle
Definition: hci_types.h:2919
uint8_t chan_sel_algo
Definition: hci_types.h:2920
Definition: hci_types.h:2994
uint16_t interval
Definition: hci_types.h:3010
uint8_t p_ft
Definition: hci_types.h:3007
uint8_t p_phy
Definition: hci_types.h:3002
uint8_t status
Definition: hci_types.h:2995
uint8_t c_phy
Definition: hci_types.h:3001
uint8_t nse
Definition: hci_types.h:3003
uint8_t c_latency[3]
Definition: hci_types.h:2999
uint16_t conn_handle
Definition: hci_types.h:2996
uint8_t c_bn
Definition: hci_types.h:3004
uint8_t cig_sync_delay[3]
Definition: hci_types.h:2997
uint8_t p_bn
Definition: hci_types.h:3005
uint8_t c_ft
Definition: hci_types.h:3006
uint8_t cis_sync_delay[3]
Definition: hci_types.h:2998
uint16_t p_max_pdu
Definition: hci_types.h:3009
uint16_t c_max_pdu
Definition: hci_types.h:3008
uint8_t p_latency[3]
Definition: hci_types.h:3000
Definition: hci_types.h:3014
uint8_t cis_id
Definition: hci_types.h:3018
uint8_t cig_id
Definition: hci_types.h:3017
uint16_t cis_handle
Definition: hci_types.h:3016
uint16_t acl_handle
Definition: hci_types.h:3015
Definition: hci_types.h:2727
uint8_t clock_accuracy
Definition: hci_types.h:2735
uint16_t supv_timeout
Definition: hci_types.h:2734
uint16_t handle
Definition: hci_types.h:2729
uint8_t role
Definition: hci_types.h:2730
uint8_t status
Definition: hci_types.h:2728
bt_addr_le_t peer_addr
Definition: hci_types.h:2731
uint16_t latency
Definition: hci_types.h:2733
uint16_t interval
Definition: hci_types.h:2732
Definition: hci_types.h:2776
uint16_t interval_max
Definition: hci_types.h:2779
uint16_t handle
Definition: hci_types.h:2777
uint16_t interval_min
Definition: hci_types.h:2778
uint16_t latency
Definition: hci_types.h:2780
uint16_t timeout
Definition: hci_types.h:2781
Definition: hci_types.h:2753
uint16_t interval
Definition: hci_types.h:2756
uint16_t handle
Definition: hci_types.h:2755
uint16_t supv_timeout
Definition: hci_types.h:2758
uint8_t status
Definition: hci_types.h:2754
uint16_t latency
Definition: hci_types.h:2757
Definition: hci_types.h:2953
uint8_t cte_type
Definition: hci_types.h:2959
uint8_t rssi_ant_id
Definition: hci_types.h:2958
uint16_t conn_evt_counter
Definition: hci_types.h:2962
uint16_t conn_handle
Definition: hci_types.h:2954
int16_t rssi
Definition: hci_types.h:2957
struct bt_hci_le_iq_sample sample[0]
Definition: hci_types.h:2964
uint8_t slot_durations
Definition: hci_types.h:2960
uint8_t sample_count
Definition: hci_types.h:2963
uint8_t rx_phy
Definition: hci_types.h:2955
uint8_t data_chan_idx
Definition: hci_types.h:2956
uint8_t packet_status
Definition: hci_types.h:2961
Definition: hci_types.h:2939
int16_t rssi
Definition: hci_types.h:2942
struct bt_hci_le_iq_sample sample[0]
Definition: hci_types.h:2949
uint16_t sync_handle
Definition: hci_types.h:2940
uint8_t sample_count
Definition: hci_types.h:2948
uint8_t cte_type
Definition: hci_types.h:2944
uint8_t slot_durations
Definition: hci_types.h:2945
uint8_t packet_status
Definition: hci_types.h:2946
uint16_t per_evt_counter
Definition: hci_types.h:2947
uint8_t chan_idx
Definition: hci_types.h:2941
uint8_t rssi_ant_id
Definition: hci_types.h:2943
Definition: hci_types.h:2970
uint8_t status
Definition: hci_types.h:2976
uint16_t conn_handle
Definition: hci_types.h:2977
Definition: hci_types.h:2785
uint16_t max_rx_octets
Definition: hci_types.h:2789
uint16_t handle
Definition: hci_types.h:2786
uint16_t max_tx_time
Definition: hci_types.h:2788
uint16_t max_rx_time
Definition: hci_types.h:2790
uint16_t max_tx_octets
Definition: hci_types.h:2787
Definition: hci_types.h:2820
int8_t rssi
Definition: hci_types.h:2824
bt_addr_le_t addr
Definition: hci_types.h:2822
bt_addr_le_t dir_addr
Definition: hci_types.h:2823
uint8_t evt_type
Definition: hci_types.h:2821
Definition: hci_types.h:2826
struct bt_hci_evt_le_direct_adv_info direct_adv_info[0]
Definition: hci_types.h:2828
uint8_t num_reports
Definition: hci_types.h:2827
Definition: hci_types.h:2631
bt_addr_t peer_rpa
Definition: hci_types.h:2637
bt_addr_t local_rpa
Definition: hci_types.h:2636
uint16_t interval
Definition: hci_types.h:2638
uint16_t supv_timeout
Definition: hci_types.h:2640
uint8_t role
Definition: hci_types.h:2634
uint16_t latency
Definition: hci_types.h:2639
uint8_t clock_accuracy
Definition: hci_types.h:2641
bt_addr_le_t peer_addr
Definition: hci_types.h:2635
uint16_t sync_handle
Definition: hci_types.h:2643
uint8_t adv_handle
Definition: hci_types.h:2642
uint8_t status
Definition: hci_types.h:2632
uint16_t handle
Definition: hci_types.h:2633
Definition: hci_types.h:2806
uint16_t handle
Definition: hci_types.h:2808
bt_addr_le_t peer_addr
Definition: hci_types.h:2810
bt_addr_t peer_rpa
Definition: hci_types.h:2812
uint8_t clock_accuracy
Definition: hci_types.h:2816
uint16_t latency
Definition: hci_types.h:2814
uint16_t supv_timeout
Definition: hci_types.h:2815
bt_addr_t local_rpa
Definition: hci_types.h:2811
uint16_t interval
Definition: hci_types.h:2813
uint8_t status
Definition: hci_types.h:2807
uint8_t role
Definition: hci_types.h:2809
Definition: hci_types.h:2853
uint16_t evt_type
Definition: hci_types.h:2854
uint8_t prim_phy
Definition: hci_types.h:2856
uint8_t length
Definition: hci_types.h:2863
bt_addr_le_t direct_addr
Definition: hci_types.h:2862
int8_t tx_power
Definition: hci_types.h:2859
uint8_t sid
Definition: hci_types.h:2858
int8_t rssi
Definition: hci_types.h:2860
uint16_t interval
Definition: hci_types.h:2861
uint8_t data[0]
Definition: hci_types.h:2864
bt_addr_le_t addr
Definition: hci_types.h:2855
uint8_t sec_phy
Definition: hci_types.h:2857
Definition: hci_types.h:2866
uint8_t num_reports
Definition: hci_types.h:2867
struct bt_hci_evt_le_ext_advertising_info adv_info[0]
Definition: hci_types.h:2868
Definition: hci_types.h:2800
uint8_t status
Definition: hci_types.h:2801
uint8_t dhkey[32]
Definition: hci_types.h:2802
Definition: hci_types.h:2769
uint16_t ediv
Definition: hci_types.h:2772
uint64_t rand
Definition: hci_types.h:2771
uint16_t handle
Definition: hci_types.h:2770
Definition: hci_types.h:2794
uint8_t status
Definition: hci_types.h:2795
uint8_t key[64]
Definition: hci_types.h:2796
Definition: hci_types.h:2587
uint16_t sync_handle
Definition: hci_types.h:2591
uint8_t adv_sid
Definition: hci_types.h:2592
uint16_t interval
Definition: hci_types.h:2595
uint8_t clock_accuracy
Definition: hci_types.h:2596
uint8_t response_slot_delay
Definition: hci_types.h:2599
uint8_t num_subevents
Definition: hci_types.h:2597
uint8_t response_slot_spacing
Definition: hci_types.h:2600
uint16_t service_data
Definition: hci_types.h:2590
uint16_t conn_handle
Definition: hci_types.h:2589
uint8_t phy
Definition: hci_types.h:2594
uint8_t subevent_interval
Definition: hci_types.h:2598
uint8_t status
Definition: hci_types.h:2588
bt_addr_le_t addr
Definition: hci_types.h:2593
Definition: hci_types.h:2981
uint8_t clock_accuracy
Definition: hci_types.h:2990
uint8_t adv_sid
Definition: hci_types.h:2986
uint8_t status
Definition: hci_types.h:2982
uint16_t conn_handle
Definition: hci_types.h:2983
uint16_t sync_handle
Definition: hci_types.h:2985
bt_addr_le_t addr
Definition: hci_types.h:2987
uint16_t interval
Definition: hci_types.h:2989
uint16_t service_data
Definition: hci_types.h:2984
uint8_t phy
Definition: hci_types.h:2988
Definition: hci_types.h:3078
uint16_t handle
Definition: hci_types.h:3079
uint8_t current_path_loss
Definition: hci_types.h:3080
uint8_t zone_entered
Definition: hci_types.h:3081
Definition: hci_types.h:2622
uint8_t num_responses
Definition: hci_types.h:2626
struct bt_hci_evt_le_per_adv_response responses[0]
Definition: hci_types.h:2627
uint8_t tx_status
Definition: hci_types.h:2625
uint8_t adv_handle
Definition: hci_types.h:2623
uint8_t subevent
Definition: hci_types.h:2624
Definition: hci_types.h:2612
int8_t rssi
Definition: hci_types.h:2614
uint8_t cte_type
Definition: hci_types.h:2615
int8_t tx_power
Definition: hci_types.h:2613
uint8_t data_status
Definition: hci_types.h:2617
uint8_t response_slot
Definition: hci_types.h:2616
uint8_t data[0]
Definition: hci_types.h:2619
uint8_t data_length
Definition: hci_types.h:2618
Definition: hci_types.h:2604
uint8_t subevent_data_count
Definition: hci_types.h:2607
uint8_t subevent_start
Definition: hci_types.h:2606
uint8_t adv_handle
Definition: hci_types.h:2605
Definition: hci_types.h:2559
uint8_t sid
Definition: hci_types.h:2562
uint8_t clock_accuracy
Definition: hci_types.h:2566
uint8_t phy
Definition: hci_types.h:2564
uint16_t interval
Definition: hci_types.h:2565
uint8_t status
Definition: hci_types.h:2560
uint8_t response_slot_spacing
Definition: hci_types.h:2570
uint16_t handle
Definition: hci_types.h:2561
bt_addr_le_t adv_addr
Definition: hci_types.h:2563
uint8_t response_slot_delay
Definition: hci_types.h:2569
uint8_t subevent_interval
Definition: hci_types.h:2568
uint8_t num_subevents
Definition: hci_types.h:2567
Definition: hci_types.h:2872
uint16_t handle
Definition: hci_types.h:2874
uint16_t interval
Definition: hci_types.h:2878
uint8_t status
Definition: hci_types.h:2873
uint8_t sid
Definition: hci_types.h:2875
uint8_t phy
Definition: hci_types.h:2877
bt_addr_le_t adv_addr
Definition: hci_types.h:2876
uint8_t clock_accuracy
Definition: hci_types.h:2879
Definition: hci_types.h:2894
uint16_t handle
Definition: hci_types.h:2895
Definition: hci_types.h:2574
uint8_t length
Definition: hci_types.h:2582
uint8_t cte_type
Definition: hci_types.h:2578
uint16_t handle
Definition: hci_types.h:2575
int8_t tx_power
Definition: hci_types.h:2576
uint16_t periodic_event_counter
Definition: hci_types.h:2579
uint8_t data_status
Definition: hci_types.h:2581
uint8_t data[0]
Definition: hci_types.h:2583
int8_t rssi
Definition: hci_types.h:2577
uint8_t subevent
Definition: hci_types.h:2580
Definition: hci_types.h:2883
uint8_t length
Definition: hci_types.h:2889
uint8_t data[0]
Definition: hci_types.h:2890
int8_t tx_power
Definition: hci_types.h:2885
uint8_t cte_type
Definition: hci_types.h:2887
uint8_t data_status
Definition: hci_types.h:2888
uint16_t handle
Definition: hci_types.h:2884
int8_t rssi
Definition: hci_types.h:2886
Definition: hci_types.h:2832
uint16_t handle
Definition: hci_types.h:2834
uint8_t status
Definition: hci_types.h:2833
uint8_t tx_phy
Definition: hci_types.h:2835
uint8_t rx_phy
Definition: hci_types.h:2836
Definition: hci_types.h:2762
uint8_t features[8]
Definition: hci_types.h:2765
uint8_t status
Definition: hci_types.h:2763
uint16_t handle
Definition: hci_types.h:2764
Definition: hci_types.h:3066
uint8_t status
Definition: hci_types.h:3067
uint8_t sca
Definition: hci_types.h:3069
uint16_t handle
Definition: hci_types.h:3068
Definition: hci_types.h:2909
uint8_t handle
Definition: hci_types.h:2910
bt_addr_le_t addr
Definition: hci_types.h:2911
Definition: hci_types.h:3122
uint16_t supervision_timeout
Definition: hci_types.h:3128
uint16_t continuation_number
Definition: hci_types.h:3127
uint16_t subrate_factor
Definition: hci_types.h:3125
uint16_t peripheral_latency
Definition: hci_types.h:3126
uint8_t status
Definition: hci_types.h:3123
uint16_t handle
Definition: hci_types.h:3124
Definition: hci_types.h:3094
uint8_t tx_power_level_flag
Definition: hci_types.h:3100
uint8_t reason
Definition: hci_types.h:3097
uint16_t handle
Definition: hci_types.h:3096
int8_t tx_power_level
Definition: hci_types.h:3099
int8_t delta
Definition: hci_types.h:3101
uint8_t phy
Definition: hci_types.h:3098
uint8_t status
Definition: hci_types.h:3095
Definition: hci_types.h:2523
bt_addr_t bdaddr
Definition: hci_types.h:2524
uint8_t link_key[16]
Definition: hci_types.h:2525
uint8_t key_type
Definition: hci_types.h:2526
Definition: hci_types.h:2507
bt_addr_t bdaddr
Definition: hci_types.h:2508
Definition: hci_types.h:2496
uint8_t num_handles
Definition: hci_types.h:2497
struct bt_hci_handle_count h[0]
Definition: hci_types.h:2498
Definition: hci_types.h:2502
bt_addr_t bdaddr
Definition: hci_types.h:2503
Definition: hci_types.h:2550
uint16_t handle
Definition: hci_types.h:2552
uint8_t features[8]
Definition: hci_types.h:2555
uint8_t status
Definition: hci_types.h:2551
uint8_t page
Definition: hci_types.h:2553
uint8_t max_page
Definition: hci_types.h:2554
Definition: hci_types.h:2451
uint8_t status
Definition: hci_types.h:2452
uint8_t features[8]
Definition: hci_types.h:2454
uint16_t handle
Definition: hci_types.h:2453
Definition: hci_types.h:2437
bt_addr_t bdaddr
Definition: hci_types.h:2439
uint8_t name[248]
Definition: hci_types.h:2440
uint8_t status
Definition: hci_types.h:2438
Definition: hci_types.h:2458
uint16_t subversion
Definition: hci_types.h:2463
uint16_t handle
Definition: hci_types.h:2460
uint8_t status
Definition: hci_types.h:2459
uint8_t version
Definition: hci_types.h:2461
uint16_t manufacturer
Definition: hci_types.h:2462
Definition: hci_types.h:2489
bt_addr_t bdaddr
Definition: hci_types.h:2491
uint8_t role
Definition: hci_types.h:2492
uint8_t status
Definition: hci_types.h:2490
Definition: hci_types.h:2702
uint8_t status
Definition: hci_types.h:2703
bt_addr_t bdaddr
Definition: hci_types.h:2704
Definition: hci_types.h:2647
uint8_t tx_interval
Definition: hci_types.h:2652
uint8_t air_mode
Definition: hci_types.h:2656
uint8_t retansmission_window
Definition: hci_types.h:2653
uint16_t rx_pkt_length
Definition: hci_types.h:2654
bt_addr_t bdaddr
Definition: hci_types.h:2650
uint16_t handle
Definition: hci_types.h:2649
uint8_t link_type
Definition: hci_types.h:2651
uint16_t tx_pkt_length
Definition: hci_types.h:2655
uint8_t status
Definition: hci_types.h:2648
Definition: hci_types.h:2691
bt_addr_t bdaddr
Definition: hci_types.h:2692
uint32_t passkey
Definition: hci_types.h:2693
Definition: hci_types.h:2708
uint32_t passkey
Definition: hci_types.h:2710
bt_addr_t bdaddr
Definition: hci_types.h:2709
Definition: hci_types.h:2697
bt_addr_t bdaddr
Definition: hci_types.h:2698
Definition: hci_types.h:1562
uint8_t max_ext_adv_evts
Definition: hci_types.h:1565
uint8_t handle
Definition: hci_types.h:1563
uint16_t duration
Definition: hci_types.h:1564
Definition: hci_types.h:1659
uint16_t max_ce_len
Definition: hci_types.h:1667
uint16_t scan_interval
Definition: hci_types.h:1660
uint16_t conn_interval_max
Definition: hci_types.h:1663
uint16_t conn_latency
Definition: hci_types.h:1664
uint16_t conn_interval_min
Definition: hci_types.h:1662
uint16_t supervision_timeout
Definition: hci_types.h:1665
uint16_t scan_window
Definition: hci_types.h:1661
uint16_t min_ce_len
Definition: hci_types.h:1666
Definition: hci_types.h:1629
uint16_t interval
Definition: hci_types.h:1631
uint8_t type
Definition: hci_types.h:1630
uint16_t window
Definition: hci_types.h:1632
Definition: hci_types.h:742
uint16_t count
Definition: hci_types.h:744
uint16_t handle
Definition: hci_types.h:743
Definition: hci_types.h:124
uint16_t len
Definition: hci_types.h:126
uint16_t handle
Definition: hci_types.h:125
Definition: hci_types.h:111
uint16_t slen
Definition: hci_types.h:113
uint16_t sn
Definition: hci_types.h:112
Definition: hci_types.h:117
struct bt_hci_iso_sdu_hdr sdu
Definition: hci_types.h:119
uint32_t ts
Definition: hci_types.h:118
Definition: hci_types.h:2934
int8_t q
Definition: hci_types.h:2936
int8_t i
Definition: hci_types.h:2935
Definition: hci_types.h:368
uint8_t lap[3]
Definition: hci_types.h:369
uint8_t num_rsp
Definition: hci_types.h:371
uint8_t length
Definition: hci_types.h:370
Definition: hci_types.h:396
uint8_t status
Definition: hci_types.h:397
bt_addr_t bdaddr
Definition: hci_types.h:398
Definition: hci_types.h:2254
uint8_t big_handle
Definition: hci_types.h:2256
uint8_t status
Definition: hci_types.h:2255
Definition: hci_types.h:1947
uint8_t status
Definition: hci_types.h:1948
uint16_t handle
Definition: hci_types.h:1949
Definition: hci_types.h:1958
uint8_t status
Definition: hci_types.h:1959
uint16_t handle
Definition: hci_types.h:1960
Definition: hci_types.h:1296
uint8_t status
Definition: hci_types.h:1297
uint16_t handle
Definition: hci_types.h:1298
Definition: hci_types.h:1286
uint8_t status
Definition: hci_types.h:1287
uint16_t handle
Definition: hci_types.h:1288
Definition: hci_types.h:2051
uint8_t status
Definition: hci_types.h:2052
Definition: hci_types.h:1205
uint8_t enc_data[16]
Definition: hci_types.h:1207
uint8_t status
Definition: hci_types.h:1206
Definition: hci_types.h:2312
uint8_t status
Definition: hci_types.h:2313
uint16_t handle
Definition: hci_types.h:2314
Definition: hci_types.h:2335
uint32_t missed_cnt
Definition: hci_types.h:2339
uint8_t status
Definition: hci_types.h:2336
uint16_t handle
Definition: hci_types.h:2337
uint32_t received_cnt
Definition: hci_types.h:2338
uint32_t failed_cnt
Definition: hci_types.h:2340
Definition: hci_types.h:2301
uint8_t status
Definition: hci_types.h:2302
uint16_t handle
Definition: hci_types.h:2303
Definition: hci_types.h:1238
uint8_t status
Definition: hci_types.h:1239
uint16_t handle
Definition: hci_types.h:1240
Definition: hci_types.h:1229
uint16_t handle
Definition: hci_types.h:1231
uint8_t status
Definition: hci_types.h:1230
Definition: hci_types.h:2038
uint8_t status
Definition: hci_types.h:2039
uint16_t conn_handle
Definition: hci_types.h:2040
Definition: hci_types.h:2013
uint16_t conn_handle
Definition: hci_types.h:2015
uint8_t status
Definition: hci_types.h:2014
Definition: hci_types.h:2001
uint16_t conn_handle
Definition: hci_types.h:2003
uint8_t status
Definition: hci_types.h:2002
Definition: hci_types.h:1211
uint8_t rand[8]
Definition: hci_types.h:1213
uint8_t status
Definition: hci_types.h:1212
Definition: hci_types.h:1977
uint8_t num_ant
Definition: hci_types.h:1980
uint8_t switch_sample_rates
Definition: hci_types.h:1979
uint8_t max_cte_len
Definition: hci_types.h:1982
uint8_t status
Definition: hci_types.h:1978
uint8_t max_switch_pattern_len
Definition: hci_types.h:1981
Definition: hci_types.h:2056
uint8_t acl_max_num
Definition: hci_types.h:2059
uint8_t status
Definition: hci_types.h:2057
uint16_t iso_max_len
Definition: hci_types.h:2060
uint8_t iso_max_num
Definition: hci_types.h:2061
uint16_t acl_max_len
Definition: hci_types.h:2058
Definition: hci_types.h:1024
uint8_t le_max_num
Definition: hci_types.h:1027
uint16_t le_max_len
Definition: hci_types.h:1026
uint8_t status
Definition: hci_types.h:1025
Definition: hci_types.h:1189
uint8_t ch_map[5]
Definition: hci_types.h:1192
uint8_t status
Definition: hci_types.h:1190
uint16_t handle
Definition: hci_types.h:1191
Definition: hci_types.h:1074
uint8_t status
Definition: hci_types.h:1075
int8_t tx_power_level
Definition: hci_types.h:1076
Definition: hci_types.h:1313
uint16_t max_tx_octets
Definition: hci_types.h:1315
uint8_t status
Definition: hci_types.h:1314
uint16_t max_tx_time
Definition: hci_types.h:1316
Definition: hci_types.h:1152
uint8_t status
Definition: hci_types.h:1153
uint8_t fal_size
Definition: hci_types.h:1154
Definition: hci_types.h:2358
uint32_t tx_last_subevent_packets
Definition: hci_types.h:2363
uint32_t tx_flushed_packets
Definition: hci_types.h:2362
uint32_t crc_error_packets
Definition: hci_types.h:2365
uint32_t duplicate_packets
Definition: hci_types.h:2367
uint32_t rx_unreceived_packets
Definition: hci_types.h:2366
uint32_t retransmitted_packets
Definition: hci_types.h:2364
uint16_t handle
Definition: hci_types.h:2360
uint32_t tx_unacked_packets
Definition: hci_types.h:2361
uint8_t status
Definition: hci_types.h:2359
Definition: hci_types.h:2069
uint8_t status
Definition: hci_types.h:2070
uint8_t offset[3]
Definition: hci_types.h:2074
uint32_t timestamp
Definition: hci_types.h:2073
uint16_t handle
Definition: hci_types.h:2071
uint16_t seq
Definition: hci_types.h:2072
Definition: hci_types.h:1031
uint8_t status
Definition: hci_types.h:1032
uint8_t features[8]
Definition: hci_types.h:1033
Definition: hci_types.h:1377
uint8_t status
Definition: hci_types.h:1378
bt_addr_t local_rpa
Definition: hci_types.h:1379
Definition: hci_types.h:1575
uint8_t status
Definition: hci_types.h:1576
uint16_t max_adv_data_len
Definition: hci_types.h:1577
Definition: hci_types.h:1407
uint16_t max_tx_octets
Definition: hci_types.h:1409
uint8_t status
Definition: hci_types.h:1408
uint16_t max_tx_time
Definition: hci_types.h:1410
uint16_t max_rx_octets
Definition: hci_types.h:1411
uint16_t max_rx_time
Definition: hci_types.h:1412
Definition: hci_types.h:1581
uint8_t status
Definition: hci_types.h:1582
uint8_t num_sets
Definition: hci_types.h:1583
Definition: hci_types.h:1368
bt_addr_t peer_rpa
Definition: hci_types.h:1370
uint8_t status
Definition: hci_types.h:1369
Definition: hci_types.h:1785
uint8_t status
Definition: hci_types.h:1786
uint8_t list_size
Definition: hci_types.h:1787
Definition: hci_types.h:1423
uint8_t rx_phy
Definition: hci_types.h:1427
uint8_t tx_phy
Definition: hci_types.h:1426
uint8_t status
Definition: hci_types.h:1424
uint16_t handle
Definition: hci_types.h:1425
Definition: hci_types.h:1798
int16_t rx_path_comp
Definition: hci_types.h:1801
int16_t tx_path_comp
Definition: hci_types.h:1800
uint8_t status
Definition: hci_types.h:1799
Definition: hci_types.h:1359
uint8_t rl_size
Definition: hci_types.h:1361
uint8_t status
Definition: hci_types.h:1360
Definition: hci_types.h:1244
uint8_t le_states[8]
Definition: hci_types.h:1246
uint8_t status
Definition: hci_types.h:1245
Definition: hci_types.h:2322
uint16_t handle
Definition: hci_types.h:2324
uint32_t received_cnt
Definition: hci_types.h:2325
uint8_t status
Definition: hci_types.h:2323
uint32_t missed_cnt
Definition: hci_types.h:2326
uint32_t failed_cnt
Definition: hci_types.h:2327
Definition: hci_types.h:668
uint8_t status
Definition: hci_types.h:669
int8_t max_tx_power_level
Definition: hci_types.h:673
int8_t current_tx_power_level
Definition: hci_types.h:672
uint8_t phy
Definition: hci_types.h:671
uint16_t handle
Definition: hci_types.h:670
Definition: hci_types.h:1791
int8_t max_tx_power
Definition: hci_types.h:1794
int8_t min_tx_power
Definition: hci_types.h:1793
uint8_t status
Definition: hci_types.h:1792
Definition: hci_types.h:2190
uint16_t handle
Definition: hci_types.h:2192
uint8_t status
Definition: hci_types.h:2191
Definition: hci_types.h:2174
uint8_t status
Definition: hci_types.h:2175
uint8_t cig_id
Definition: hci_types.h:2176
Definition: hci_types.h:2286
uint8_t status
Definition: hci_types.h:2287
uint16_t handle
Definition: hci_types.h:2288
Definition: hci_types.h:2151
uint16_t handle[0]
Definition: hci_types.h:2155
uint8_t num_handles
Definition: hci_types.h:2154
uint8_t cig_id
Definition: hci_types.h:2153
uint8_t status
Definition: hci_types.h:2152
Definition: hci_types.h:2116
uint16_t handle[0]
Definition: hci_types.h:2120
uint8_t status
Definition: hci_types.h:2117
uint8_t num_handles
Definition: hci_types.h:2119
uint8_t cig_id
Definition: hci_types.h:2118
Definition: hci_types.h:1894
uint16_t sync_handle
Definition: hci_types.h:1896
uint8_t status
Definition: hci_types.h:1895
Definition: hci_types.h:1908
uint16_t handle
Definition: hci_types.h:1910
uint8_t status
Definition: hci_types.h:1909
Definition: hci_types.h:1928
uint8_t status
Definition: hci_types.h:1929
uint16_t handle
Definition: hci_types.h:1930
Definition: hci_types.h:1307
uint16_t handle
Definition: hci_types.h:1309
uint8_t status
Definition: hci_types.h:1308
Definition: hci_types.h:1527
uint8_t status
Definition: hci_types.h:1528
int8_t tx_power
Definition: hci_types.h:1529
Definition: hci_types.h:2349
uint8_t status
Definition: hci_types.h:2350
Definition: hci_types.h:2275
uint16_t handle
Definition: hci_types.h:2277
uint8_t status
Definition: hci_types.h:2276
Definition: hci_types.h:1271
uint8_t status
Definition: hci_types.h:1272
uint16_t rx_pkt_count
Definition: hci_types.h:1273
Definition: hci_types.h:461
uint8_t status
Definition: hci_types.h:462
bt_addr_t bdaddr
Definition: hci_types.h:463
Definition: hci_types.h:452
uint8_t status
Definition: hci_types.h:453
bt_addr_t bdaddr
Definition: hci_types.h:454
Definition: hci_types.h:784
uint8_t status
Definition: hci_types.h:785
uint16_t auth_payload_timeout
Definition: hci_types.h:787
uint16_t handle
Definition: hci_types.h:786
Definition: hci_types.h:872
uint8_t status
Definition: hci_types.h:873
bt_addr_t bdaddr
Definition: hci_types.h:874
Definition: hci_types.h:863
uint8_t status
Definition: hci_types.h:864
uint8_t sco_max_len
Definition: hci_types.h:866
uint16_t acl_max_num
Definition: hci_types.h:867
uint16_t acl_max_len
Definition: hci_types.h:865
uint16_t sco_max_num
Definition: hci_types.h:868
Definition: hci_types.h:972
uint8_t num_capabilities
Definition: hci_types.h:974
uint8_t status
Definition: hci_types.h:973
uint8_t capabilities[0]
Definition: hci_types.h:976
Definition: hci_types.h:950
uint8_t codecs[0]
Definition: hci_types.h:953
uint8_t status
Definition: hci_types.h:951
Definition: hci_types.h:926
uint8_t status
Definition: hci_types.h:927
uint8_t codecs[0]
Definition: hci_types.h:929
Definition: hci_types.h:558
uint16_t conn_accept_timeout
Definition: hci_types.h:560
uint8_t status
Definition: hci_types.h:559
Definition: hci_types.h:987
uint8_t status
Definition: hci_types.h:988
uint8_t max_ctlr_delay[3]
Definition: hci_types.h:990
uint8_t min_ctlr_delay[3]
Definition: hci_types.h:989
Definition: hci_types.h:1010
uint8_t status
Definition: hci_types.h:1011
uint16_t handle
Definition: hci_types.h:1012
uint8_t key_size
Definition: hci_types.h:1013
Definition: hci_types.h:849
uint8_t max_page
Definition: hci_types.h:852
uint8_t ext_features[8]
Definition: hci_types.h:853
uint8_t page
Definition: hci_types.h:851
uint8_t status
Definition: hci_types.h:850
Definition: hci_types.h:857
uint8_t status
Definition: hci_types.h:858
uint8_t features[8]
Definition: hci_types.h:859
Definition: hci_types.h:830
uint16_t hci_revision
Definition: hci_types.h:833
uint8_t hci_version
Definition: hci_types.h:832
uint16_t lmp_subversion
Definition: hci_types.h:836
uint8_t lmp_version
Definition: hci_types.h:834
uint16_t manufacturer
Definition: hci_types.h:835
uint8_t status
Definition: hci_types.h:831
Definition: hci_types.h:840
uint8_t status
Definition: hci_types.h:841
uint8_t commands[64]
Definition: hci_types.h:842
Definition: hci_types.h:652
int8_t tx_power_level
Definition: hci_types.h:655
uint16_t handle
Definition: hci_types.h:654
uint8_t status
Definition: hci_types.h:653
Definition: hci_types.h:489
bt_addr_t bdaddr
Definition: hci_types.h:491
uint8_t status
Definition: hci_types.h:490
Definition: hci_types.h:523
bt_addr_t bdaddr
Definition: hci_types.h:525
uint8_t status
Definition: hci_types.h:524
Definition: hci_types.h:796
uint16_t handle
Definition: hci_types.h:798
uint8_t status
Definition: hci_types.h:797
Definition: hci_types.h:568
uint8_t status
Definition: hci_types.h:569
Definition: hci_types.h:52
uint8_t len
Definition: hci_types.h:54
uint16_t handle
Definition: hci_types.h:53
Definition: hci_types.h:933
uint8_t codec_id
Definition: hci_types.h:934
uint8_t transports
Definition: hci_types.h:935
Definition: hci_types.h:911
uint8_t codec_id
Definition: hci_types.h:912
Definition: hci_types.h:937
struct bt_hci_std_codec_info_v2 codec_info[0]
Definition: hci_types.h:939
uint8_t num_codecs
Definition: hci_types.h:938
Definition: hci_types.h:914
struct bt_hci_std_codec_info codec_info[0]
Definition: hci_types.h:916
uint8_t num_codecs
Definition: hci_types.h:915
Definition: hci_types.h:941
uint16_t company_id
Definition: hci_types.h:942
uint8_t transports
Definition: hci_types.h:944
uint16_t codec_id
Definition: hci_types.h:943
Definition: hci_types.h:918
uint16_t codec_id
Definition: hci_types.h:920
uint16_t company_id
Definition: hci_types.h:919
Definition: hci_types.h:946
struct bt_hci_vs_codec_info_v2 codec_info[0]
Definition: hci_types.h:948
uint8_t num_codecs
Definition: hci_types.h:947
Definition: hci_types.h:922
uint8_t num_codecs
Definition: hci_types.h:923
struct bt_hci_vs_codec_info codec_info[0]
Definition: hci_types.h:924
Definition: hci_types.h:553
uint8_t local_name[248]
Definition: hci_types.h:554
Definition: hci_types.h:1170
uint16_t min_ce_len
Definition: hci_types.h:1176
uint16_t max_ce_len
Definition: hci_types.h:1177
uint16_t handle
Definition: hci_types.h:1171
uint16_t conn_latency
Definition: hci_types.h:1174
uint16_t conn_interval_max
Definition: hci_types.h:1173
uint16_t supervision_timeout
Definition: hci_types.h:1175
uint16_t conn_interval_min
Definition: hci_types.h:1172