8#ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_H_
9#define ZEPHYR_INCLUDE_BLUETOOTH_HCI_H_
26#define BT_HCI_OWN_ADDR_RPA_OR_PUBLIC 0x02
27#define BT_HCI_OWN_ADDR_RPA_OR_RANDOM 0x03
28#define BT_HCI_OWN_ADDR_RPA_MASK 0x02
30#define BT_HCI_PEER_ADDR_RPA_UNRESOLVED 0xfe
31#define BT_HCI_PEER_ADDR_ANONYMOUS 0xff
33#define BT_ENC_KEY_SIZE_MIN 0x07
34#define BT_ENC_KEY_SIZE_MAX 0x10
40#define BT_HCI_EVT_HDR_SIZE 2
42#define BT_ACL_START_NO_FLUSH 0x00
43#define BT_ACL_CONT 0x01
44#define BT_ACL_START 0x02
45#define BT_ACL_COMPLETE 0x03
47#define BT_ACL_POINT_TO_POINT 0x00
48#define BT_ACL_BROADCAST 0x01
50#define BT_ACL_HANDLE_MASK BIT_MASK(12)
52#define bt_acl_handle(h) ((h) & BT_ACL_HANDLE_MASK)
53#define bt_acl_flags(h) ((h) >> 12)
54#define bt_acl_flags_pb(f) ((f) & BIT_MASK(2))
55#define bt_acl_flags_bc(f) ((f) >> 2)
56#define bt_acl_handle_pack(h, f) ((h) | ((f) << 12))
62#define BT_HCI_ACL_HDR_SIZE 4
64#define BT_ISO_START 0x00
65#define BT_ISO_CONT 0x01
66#define BT_ISO_SINGLE 0x02
67#define BT_ISO_END 0x03
69#define bt_iso_handle(h) ((h) & 0x0fff)
70#define bt_iso_flags(h) ((h) >> 12)
71#define bt_iso_flags_pb(f) ((f) & 0x0003)
72#define bt_iso_flags_ts(f) (((f) >> 2) & 0x0001)
73#define bt_iso_pack_flags(pb, ts) \
74 (((pb) & 0x0003) | (((ts) & 0x0001) << 2))
75#define bt_iso_handle_pack(h, pb, ts) \
76 ((h) | (bt_iso_pack_flags(pb, ts) << 12))
77#define bt_iso_hdr_len(h) ((h) & BIT_MASK(14))
79#define BT_ISO_DATA_VALID 0x00
80#define BT_ISO_DATA_INVALID 0x01
81#define BT_ISO_DATA_NOP 0x02
83#define bt_iso_pkt_len(h) ((h) & 0x3fff)
84#define bt_iso_pkt_flags(h) ((h) >> 14)
85#define bt_iso_pkt_len_pack(h, f) ((h) | ((f) << 14))
91#define BT_HCI_ISO_DATA_HDR_SIZE 4
97#define BT_HCI_ISO_TS_DATA_HDR_SIZE 8
103#define BT_HCI_ISO_HDR_SIZE 4
109#define BT_HCI_CMD_HDR_SIZE 3
112#define BT_CMD_TEST(cmd, octet, bit) (cmd[octet] & BIT(bit))
113#define BT_CMD_LE_STATES(cmd) BT_CMD_TEST(cmd, 28, 3)
115#define BT_FEAT_TEST(feat, page, octet, bit) (feat[page][octet] & BIT(bit))
117#define BT_FEAT_BREDR(feat) !BT_FEAT_TEST(feat, 0, 4, 5)
118#define BT_FEAT_LE(feat) BT_FEAT_TEST(feat, 0, 4, 6)
119#define BT_FEAT_EXT_FEATURES(feat) BT_FEAT_TEST(feat, 0, 7, 7)
120#define BT_FEAT_HOST_SSP(feat) BT_FEAT_TEST(feat, 1, 0, 0)
121#define BT_FEAT_SC(feat) BT_FEAT_TEST(feat, 2, 1, 0)
123#define BT_FEAT_LMP_ESCO_CAPABLE(feat) BT_FEAT_TEST(feat, 0, 3, 7)
124#define BT_FEAT_HV2_PKT(feat) BT_FEAT_TEST(feat, 0, 1, 4)
125#define BT_FEAT_HV3_PKT(feat) BT_FEAT_TEST(feat, 0, 1, 5)
126#define BT_FEAT_EV4_PKT(feat) BT_FEAT_TEST(feat, 0, 4, 0)
127#define BT_FEAT_EV5_PKT(feat) BT_FEAT_TEST(feat, 0, 4, 1)
128#define BT_FEAT_2EV3_PKT(feat) BT_FEAT_TEST(feat, 0, 5, 5)
129#define BT_FEAT_3EV3_PKT(feat) BT_FEAT_TEST(feat, 0, 5, 6)
130#define BT_FEAT_3SLOT_PKT(feat) BT_FEAT_TEST(feat, 0, 5, 7)
133#define BT_LE_FEAT_BIT_ENC 0
134#define BT_LE_FEAT_BIT_CONN_PARAM_REQ 1
135#define BT_LE_FEAT_BIT_EXT_REJ_IND 2
136#define BT_LE_FEAT_BIT_PER_INIT_FEAT_XCHG 3
137#define BT_LE_FEAT_BIT_PING 4
138#define BT_LE_FEAT_BIT_DLE 5
139#define BT_LE_FEAT_BIT_PRIVACY 6
140#define BT_LE_FEAT_BIT_EXT_SCAN 7
141#define BT_LE_FEAT_BIT_PHY_2M 8
142#define BT_LE_FEAT_BIT_SMI_TX 9
143#define BT_LE_FEAT_BIT_SMI_RX 10
144#define BT_LE_FEAT_BIT_PHY_CODED 11
145#define BT_LE_FEAT_BIT_EXT_ADV 12
146#define BT_LE_FEAT_BIT_PER_ADV 13
147#define BT_LE_FEAT_BIT_CHAN_SEL_ALGO_2 14
148#define BT_LE_FEAT_BIT_PWR_CLASS_1 15
149#define BT_LE_FEAT_BIT_MIN_USED_CHAN_PROC 16
150#define BT_LE_FEAT_BIT_CONN_CTE_REQ 17
151#define BT_LE_FEAT_BIT_CONN_CTE_RESP 18
152#define BT_LE_FEAT_BIT_CONNECTIONLESS_CTE_TX 19
153#define BT_LE_FEAT_BIT_CONNECTIONLESS_CTE_RX 20
154#define BT_LE_FEAT_BIT_ANT_SWITCH_TX_AOD 21
155#define BT_LE_FEAT_BIT_ANT_SWITCH_RX_AOA 22
156#define BT_LE_FEAT_BIT_RX_CTE 23
157#define BT_LE_FEAT_BIT_PAST_SEND 24
158#define BT_LE_FEAT_BIT_PAST_RECV 25
159#define BT_LE_FEAT_BIT_SCA_UPDATE 26
160#define BT_LE_FEAT_BIT_REMOTE_PUB_KEY_VALIDATE 27
161#define BT_LE_FEAT_BIT_CIS_CENTRAL 28
162#define BT_LE_FEAT_BIT_CIS_PERIPHERAL 29
163#define BT_LE_FEAT_BIT_ISO_BROADCASTER 30
164#define BT_LE_FEAT_BIT_SYNC_RECEIVER 31
165#define BT_LE_FEAT_BIT_ISO_CHANNELS 32
166#define BT_LE_FEAT_BIT_PWR_CTRL_REQ 33
167#define BT_LE_FEAT_BIT_PWR_CHG_IND 34
168#define BT_LE_FEAT_BIT_PATH_LOSS_MONITOR 35
169#define BT_LE_FEAT_BIT_PER_ADV_ADI_SUPP 36
170#define BT_LE_FEAT_BIT_CONN_SUBRATING 37
171#define BT_LE_FEAT_BIT_CONN_SUBRATING_HOST_SUPP 38
172#define BT_LE_FEAT_BIT_CHANNEL_CLASSIFICATION 39
174#define BT_LE_FEAT_TEST(feat, n) (feat[(n) >> 3] & \
177#define BT_FEAT_LE_ENCR(feat) BT_LE_FEAT_TEST(feat, \
179#define BT_FEAT_LE_CONN_PARAM_REQ_PROC(feat) BT_LE_FEAT_TEST(feat, \
180 BT_LE_FEAT_BIT_CONN_PARAM_REQ)
181#define BT_FEAT_LE_PER_INIT_FEAT_XCHG(feat) BT_LE_FEAT_TEST(feat, \
182 BT_LE_FEAT_BIT_PER_INIT_FEAT_XCHG)
183#define BT_FEAT_LE_DLE(feat) BT_LE_FEAT_TEST(feat, \
185#define BT_FEAT_LE_PHY_2M(feat) BT_LE_FEAT_TEST(feat, \
186 BT_LE_FEAT_BIT_PHY_2M)
187#define BT_FEAT_LE_PHY_CODED(feat) BT_LE_FEAT_TEST(feat, \
188 BT_LE_FEAT_BIT_PHY_CODED)
189#define BT_FEAT_LE_PRIVACY(feat) BT_LE_FEAT_TEST(feat, \
190 BT_LE_FEAT_BIT_PRIVACY)
191#define BT_FEAT_LE_EXT_ADV(feat) BT_LE_FEAT_TEST(feat, \
192 BT_LE_FEAT_BIT_EXT_ADV)
193#define BT_FEAT_LE_EXT_PER_ADV(feat) BT_LE_FEAT_TEST(feat, \
194 BT_LE_FEAT_BIT_PER_ADV)
195#define BT_FEAT_LE_CONNECTION_CTE_REQ(feat) BT_LE_FEAT_TEST(feat, \
196 BT_LE_FEAT_BIT_CONN_CTE_REQ)
197#define BT_FEAT_LE_CONNECTION_CTE_RESP(feat) BT_LE_FEAT_TEST(feat, \
198 BT_LE_FEAT_BIT_CONN_CTE_RESP)
199#define BT_FEAT_LE_CONNECTIONLESS_CTE_TX(feat) BT_LE_FEAT_TEST(feat, \
200 BT_LE_FEAT_BIT_CONNECTIONLESS_CTE_TX)
201#define BT_FEAT_LE_CONNECTIONLESS_CTE_RX(feat) BT_LE_FEAT_TEST(feat, \
202 BT_LE_FEAT_BIT_CONNECTIONLESS_CTE_RX)
203#define BT_FEAT_LE_ANT_SWITCH_TX_AOD(feat) BT_LE_FEAT_TEST(feat, \
204 BT_LE_FEAT_BIT_ANT_SWITCH_TX_AOD)
205#define BT_FEAT_LE_ANT_SWITCH_RX_AOA(feat) BT_LE_FEAT_TEST(feat, \
206 BT_LE_FEAT_BIT_ANT_SWITCH_RX_AOA)
207#define BT_FEAT_LE_RX_CTE(feat) BT_LE_FEAT_TEST(feat, \
208 BT_LE_FEAT_BIT_RX_CTE)
209#define BT_FEAT_LE_PAST_SEND(feat) BT_LE_FEAT_TEST(feat, \
210 BT_LE_FEAT_BIT_PAST_SEND)
211#define BT_FEAT_LE_PAST_RECV(feat) BT_LE_FEAT_TEST(feat, \
212 BT_LE_FEAT_BIT_PAST_RECV)
213#define BT_FEAT_LE_CIS_CENTRAL(feat) BT_LE_FEAT_TEST(feat, \
214 BT_LE_FEAT_BIT_CIS_CENTRAL)
215#define BT_FEAT_LE_CIS_PERIPHERAL(feat) BT_LE_FEAT_TEST(feat, \
216 BT_LE_FEAT_BIT_CIS_PERIPHERAL)
217#define BT_FEAT_LE_ISO_BROADCASTER(feat) BT_LE_FEAT_TEST(feat, \
218 BT_LE_FEAT_BIT_ISO_BROADCASTER)
219#define BT_FEAT_LE_SYNC_RECEIVER(feat) BT_LE_FEAT_TEST(feat, \
220 BT_LE_FEAT_BIT_SYNC_RECEIVER)
221#define BT_FEAT_LE_ISO_CHANNELS(feat) BT_LE_FEAT_TEST(feat, \
222 BT_LE_FEAT_BIT_ISO_CHANNELS)
224#define BT_FEAT_LE_CIS(feat) (BT_FEAT_LE_CIS_CENTRAL(feat) | \
225 BT_FEAT_LE_CIS_PERIPHERAL(feat))
226#define BT_FEAT_LE_BIS(feat) (BT_FEAT_LE_ISO_BROADCASTER(feat) | \
227 BT_FEAT_LE_SYNC_RECEIVER(feat))
228#define BT_FEAT_LE_ISO(feat) (BT_FEAT_LE_CIS(feat) | \
229 BT_FEAT_LE_BIS(feat))
232#define BT_LE_STATES_PER_CONN_ADV(states) (states & 0x0000004000000000)
235#define BT_HCI_NO_BONDING 0x00
236#define BT_HCI_NO_BONDING_MITM 0x01
237#define BT_HCI_DEDICATED_BONDING 0x02
238#define BT_HCI_DEDICATED_BONDING_MITM 0x03
239#define BT_HCI_GENERAL_BONDING 0x04
240#define BT_HCI_GENERAL_BONDING_MITM 0x05
249#define BT_IO_DISPLAY_ONLY 0x00
250#define BT_IO_DISPLAY_YESNO 0x01
251#define BT_IO_KEYBOARD_ONLY 0x02
252#define BT_IO_NO_INPUT_OUTPUT 0x03
255#define HCI_PKT_TYPE_HV1 0x0020
256#define HCI_PKT_TYPE_HV2 0x0040
257#define HCI_PKT_TYPE_HV3 0x0080
260#define HCI_PKT_TYPE_ESCO_HV1 0x0001
261#define HCI_PKT_TYPE_ESCO_HV2 0x0002
262#define HCI_PKT_TYPE_ESCO_HV3 0x0004
263#define HCI_PKT_TYPE_ESCO_EV3 0x0008
264#define HCI_PKT_TYPE_ESCO_EV4 0x0010
265#define HCI_PKT_TYPE_ESCO_EV5 0x0020
266#define HCI_PKT_TYPE_ESCO_2EV3 0x0040
267#define HCI_PKT_TYPE_ESCO_3EV3 0x0080
268#define HCI_PKT_TYPE_ESCO_2EV5 0x0100
269#define HCI_PKT_TYPE_ESCO_3EV5 0x0200
272#define ESCO_PKT_MASK (HCI_PKT_TYPE_ESCO_HV1 | \
273 HCI_PKT_TYPE_ESCO_HV2 | \
274 HCI_PKT_TYPE_ESCO_HV3)
275#define SCO_PKT_MASK (HCI_PKT_TYPE_HV1 | \
278#define EDR_ESCO_PKT_MASK (HCI_PKT_TYPE_ESCO_2EV3 | \
279 HCI_PKT_TYPE_ESCO_3EV3 | \
280 HCI_PKT_TYPE_ESCO_2EV5 | \
281 HCI_PKT_TYPE_ESCO_3EV5)
284#define BT_HCI_SCO 0x00
285#define BT_HCI_ACL 0x01
286#define BT_HCI_ESCO 0x02
289#define BT_OGF_LINK_CTRL 0x01
290#define BT_OGF_BASEBAND 0x03
291#define BT_OGF_INFO 0x04
292#define BT_OGF_STATUS 0x05
293#define BT_OGF_LE 0x08
294#define BT_OGF_VS 0x3f
297#define BT_OP(ogf, ocf) ((ocf) | ((ogf) << 10))
300#define BT_OP_NOP 0x0000
303#define BT_OGF(opcode) (((opcode) >> 10) & BIT_MASK(6))
305#define BT_OCF(opcode) ((opcode) & BIT_MASK(10))
307#define BT_HCI_OP_INQUIRY BT_OP(BT_OGF_LINK_CTRL, 0x0001)
314#define BT_HCI_OP_INQUIRY_CANCEL BT_OP(BT_OGF_LINK_CTRL, 0x0002)
316#define BT_HCI_OP_CONNECT BT_OP(BT_OGF_LINK_CTRL, 0x0005)
326#define BT_HCI_OP_DISCONNECT BT_OP(BT_OGF_LINK_CTRL, 0x0006)
332#define BT_HCI_OP_CONNECT_CANCEL BT_OP(BT_OGF_LINK_CTRL, 0x0008)
341#define BT_HCI_OP_ACCEPT_CONN_REQ BT_OP(BT_OGF_LINK_CTRL, 0x0009)
347#define BT_HCI_OP_SETUP_SYNC_CONN BT_OP(BT_OGF_LINK_CTRL, 0x0028)
358#define BT_HCI_OP_ACCEPT_SYNC_CONN_REQ BT_OP(BT_OGF_LINK_CTRL, 0x0029)
369#define BT_HCI_OP_REJECT_CONN_REQ BT_OP(BT_OGF_LINK_CTRL, 0x000a)
375#define BT_HCI_OP_LINK_KEY_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x000b)
381#define BT_HCI_OP_LINK_KEY_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x000c)
386#define BT_HCI_OP_PIN_CODE_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x000d)
397#define BT_HCI_OP_PIN_CODE_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x000e)
406#define BT_HCI_OP_AUTH_REQUESTED BT_OP(BT_OGF_LINK_CTRL, 0x0011)
411#define BT_HCI_OP_SET_CONN_ENCRYPT BT_OP(BT_OGF_LINK_CTRL, 0x0013)
417#define BT_HCI_OP_REMOTE_NAME_REQUEST BT_OP(BT_OGF_LINK_CTRL, 0x0019)
425#define BT_HCI_OP_REMOTE_NAME_CANCEL BT_OP(BT_OGF_LINK_CTRL, 0x001a)
434#define BT_HCI_OP_READ_REMOTE_FEATURES BT_OP(BT_OGF_LINK_CTRL, 0x001b)
439#define BT_HCI_OP_READ_REMOTE_EXT_FEATURES BT_OP(BT_OGF_LINK_CTRL, 0x001c)
445#define BT_HCI_OP_READ_REMOTE_VERSION_INFO BT_OP(BT_OGF_LINK_CTRL, 0x001d)
450#define BT_HCI_OP_IO_CAPABILITY_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002b)
458#define BT_HCI_OP_USER_CONFIRM_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002c)
459#define BT_HCI_OP_USER_CONFIRM_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002d)
468#define BT_HCI_OP_USER_PASSKEY_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002e)
474#define BT_HCI_OP_USER_PASSKEY_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x002f)
479#define BT_HCI_OP_IO_CAPABILITY_NEG_REPLY BT_OP(BT_OGF_LINK_CTRL, 0x0034)
485#define BT_HCI_OP_SET_EVENT_MASK BT_OP(BT_OGF_BASEBAND, 0x0001)
490#define BT_HCI_OP_RESET BT_OP(BT_OGF_BASEBAND, 0x0003)
492#define BT_HCI_OP_WRITE_LOCAL_NAME BT_OP(BT_OGF_BASEBAND, 0x0013)
497#define BT_HCI_OP_WRITE_PAGE_TIMEOUT BT_OP(BT_OGF_BASEBAND, 0x0018)
499#define BT_HCI_OP_WRITE_SCAN_ENABLE BT_OP(BT_OGF_BASEBAND, 0x001a)
500#define BT_BREDR_SCAN_DISABLED 0x00
501#define BT_BREDR_SCAN_INQUIRY 0x01
502#define BT_BREDR_SCAN_PAGE 0x02
504#define BT_HCI_OP_WRITE_CLASS_OF_DEVICE BT_OP(BT_OGF_BASEBAND, 0x0024)
509#define BT_TX_POWER_LEVEL_CURRENT 0x00
510#define BT_TX_POWER_LEVEL_MAX 0x01
511#define BT_HCI_OP_READ_TX_POWER_LEVEL BT_OP(BT_OGF_BASEBAND, 0x002d)
523#define BT_HCI_CTL_TO_HOST_FLOW_DISABLE 0x00
524#define BT_HCI_CTL_TO_HOST_FLOW_ENABLE 0x01
525#define BT_HCI_OP_SET_CTL_TO_HOST_FLOW BT_OP(BT_OGF_BASEBAND, 0x0031)
530#define BT_HCI_OP_HOST_BUFFER_SIZE BT_OP(BT_OGF_BASEBAND, 0x0033)
543#define BT_HCI_OP_HOST_NUM_COMPLETED_PACKETS BT_OP(BT_OGF_BASEBAND, 0x0035)
549#define BT_HCI_OP_WRITE_INQUIRY_MODE BT_OP(BT_OGF_BASEBAND, 0x0045)
554#define BT_HCI_OP_WRITE_SSP_MODE BT_OP(BT_OGF_BASEBAND, 0x0056)
559#define BT_HCI_OP_SET_EVENT_MASK_PAGE_2 BT_OP(BT_OGF_BASEBAND, 0x0063)
564#define BT_HCI_OP_LE_WRITE_LE_HOST_SUPP BT_OP(BT_OGF_BASEBAND, 0x006d)
570#define BT_HCI_OP_WRITE_SC_HOST_SUPP BT_OP(BT_OGF_BASEBAND, 0x007a)
575#define BT_HCI_OP_READ_AUTH_PAYLOAD_TIMEOUT BT_OP(BT_OGF_BASEBAND, 0x007b)
586#define BT_HCI_OP_WRITE_AUTH_PAYLOAD_TIMEOUT BT_OP(BT_OGF_BASEBAND, 0x007c)
597#define BT_HCI_OP_CONFIGURE_DATA_PATH BT_OP(BT_OGF_BASEBAND, 0x0083)
610#define BT_HCI_VERSION_1_0B 0
611#define BT_HCI_VERSION_1_1 1
612#define BT_HCI_VERSION_1_2 2
613#define BT_HCI_VERSION_2_0 3
614#define BT_HCI_VERSION_2_1 4
615#define BT_HCI_VERSION_3_0 5
616#define BT_HCI_VERSION_4_0 6
617#define BT_HCI_VERSION_4_1 7
618#define BT_HCI_VERSION_4_2 8
619#define BT_HCI_VERSION_5_0 9
620#define BT_HCI_VERSION_5_1 10
621#define BT_HCI_VERSION_5_2 11
622#define BT_HCI_VERSION_5_3 12
624#define BT_HCI_OP_READ_LOCAL_VERSION_INFO BT_OP(BT_OGF_INFO, 0x0001)
634#define BT_HCI_OP_READ_SUPPORTED_COMMANDS BT_OP(BT_OGF_INFO, 0x0002)
640#define BT_HCI_OP_READ_LOCAL_EXT_FEATURES BT_OP(BT_OGF_INFO, 0x0004)
651#define BT_HCI_OP_READ_LOCAL_FEATURES BT_OP(BT_OGF_INFO, 0x0003)
657#define BT_HCI_OP_READ_BUFFER_SIZE BT_OP(BT_OGF_INFO, 0x0005)
666#define BT_HCI_OP_READ_BD_ADDR BT_OP(BT_OGF_INFO, 0x0009)
673#define BT_HCI_CODEC_TRANSPORT_MASK_BREDR_ACL BIT(0)
674#define BT_HCI_CODEC_TRANSPORT_MASK_BREDR_SCO BIT(1)
675#define BT_HCI_CODEC_TRANSPORT_MASK_LE_CIS BIT(2)
676#define BT_HCI_CODEC_TRANSPORT_MASK_LE_BIS BIT(3)
679#define BT_HCI_LOGICAL_TRANSPORT_TYPE_BREDR_ACL 0x00
680#define BT_HCI_LOGICAL_TRANSPORT_TYPE_BREDR_SCO 0x01
681#define BT_HCI_LOGICAL_TRANSPORT_TYPE_LE_CIS 0x02
682#define BT_HCI_LOGICAL_TRANSPORT_TYPE_LE_BIS 0x03
685#define BT_HCI_DATAPATH_DIR_HOST_TO_CTLR 0x00
686#define BT_HCI_DATAPATH_DIR_CTLR_TO_HOST 0x01
689#define BT_HCI_DATAPATH_ID_HCI 0x00
690#define BT_HCI_DATAPATH_ID_VS 0x01
691#define BT_HCI_DATAPATH_ID_VS_END 0xfe
692#define BT_HCI_DATAPATH_ID_DISABLED 0xff
695#define BT_HCI_CODING_FORMAT_ULAW_LOG 0x00
696#define BT_HCI_CODING_FORMAT_ALAW_LOG 0x01
697#define BT_HCI_CODING_FORMAT_CVSD 0x02
698#define BT_HCI_CODING_FORMAT_TRANSPARENT 0x03
699#define BT_HCI_CODING_FORMAT_LINEAR_PCM 0x04
700#define BT_HCI_CODING_FORMAT_MSBC 0x05
701#define BT_HCI_CODING_FORMAT_VS 0xFF
704#define BT_HCI_OP_READ_CODECS BT_OP(BT_OGF_INFO, 0x000b)
726#define BT_HCI_OP_READ_CODECS_V2 BT_OP(BT_OGF_INFO, 0x000d)
756#define BT_HCI_OP_READ_CODEC_CAPABILITIES BT_OP(BT_OGF_INFO, 0x000e)
773#define BT_HCI_OP_READ_CTLR_DELAY BT_OP(BT_OGF_INFO, 0x000f)
787#define BT_HCI_OP_READ_RSSI BT_OP(BT_OGF_STATUS, 0x0005)
797#define BT_HCI_ENCRYPTION_KEY_SIZE_MIN 7
798#define BT_HCI_ENCRYPTION_KEY_SIZE_MAX 16
800#define BT_HCI_OP_READ_ENCRYPTION_KEY_SIZE BT_OP(BT_OGF_STATUS, 0x0008)
812#define BT_HCI_OP_LE_SET_EVENT_MASK BT_OP(BT_OGF_LE, 0x0001)
817#define BT_HCI_OP_LE_READ_BUFFER_SIZE BT_OP(BT_OGF_LE, 0x0002)
824#define BT_HCI_OP_LE_READ_LOCAL_FEATURES BT_OP(BT_OGF_LE, 0x0003)
830#define BT_HCI_OP_LE_SET_RANDOM_ADDRESS BT_OP(BT_OGF_LE, 0x0005)
835#define BT_HCI_ADV_IND 0x00
836#define BT_HCI_ADV_DIRECT_IND 0x01
837#define BT_HCI_ADV_SCAN_IND 0x02
838#define BT_HCI_ADV_NONCONN_IND 0x03
839#define BT_HCI_ADV_DIRECT_IND_LOW_DUTY 0x04
840#define BT_HCI_ADV_SCAN_RSP 0x04
842#define BT_LE_ADV_INTERVAL_MIN 0x0020
843#define BT_LE_ADV_INTERVAL_MAX 0x4000
844#define BT_LE_ADV_INTERVAL_DEFAULT 0x0800
846#define BT_LE_ADV_CHAN_MAP_CHAN_37 0x01
847#define BT_LE_ADV_CHAN_MAP_CHAN_38 0x02
848#define BT_LE_ADV_CHAN_MAP_CHAN_39 0x04
849#define BT_LE_ADV_CHAN_MAP_ALL 0x07
851#define BT_LE_ADV_FP_NO_FILTER 0x00
852#define BT_LE_ADV_FP_FILTER_SCAN_REQ 0x01
853#define BT_LE_ADV_FP_FILTER_CONN_IND 0x02
854#define BT_LE_ADV_FP_FILTER_BOTH 0x03
856#define BT_HCI_OP_LE_SET_ADV_PARAM BT_OP(BT_OGF_LE, 0x0006)
867#define BT_HCI_OP_LE_READ_ADV_CHAN_TX_POWER BT_OP(BT_OGF_LE, 0x0007)
873#define BT_HCI_OP_LE_SET_ADV_DATA BT_OP(BT_OGF_LE, 0x0008)
879#define BT_HCI_OP_LE_SET_SCAN_RSP_DATA BT_OP(BT_OGF_LE, 0x0009)
885#define BT_HCI_LE_ADV_DISABLE 0x00
886#define BT_HCI_LE_ADV_ENABLE 0x01
888#define BT_HCI_OP_LE_SET_ADV_ENABLE BT_OP(BT_OGF_LE, 0x000a)
894#define BT_HCI_OP_LE_SET_SCAN_PARAM BT_OP(BT_OGF_LE, 0x000b)
895#define BT_HCI_LE_SCAN_PASSIVE 0x00
896#define BT_HCI_LE_SCAN_ACTIVE 0x01
898#define BT_HCI_LE_SCAN_FP_BASIC_NO_FILTER 0x00
899#define BT_HCI_LE_SCAN_FP_BASIC_FILTER 0x01
900#define BT_HCI_LE_SCAN_FP_EXT_NO_FILTER 0x02
901#define BT_HCI_LE_SCAN_FP_EXT_FILTER 0x03
911#define BT_HCI_OP_LE_SET_SCAN_ENABLE BT_OP(BT_OGF_LE, 0x000c)
913#define BT_HCI_LE_SCAN_DISABLE 0x00
914#define BT_HCI_LE_SCAN_ENABLE 0x01
916#define BT_HCI_LE_SCAN_FILTER_DUP_DISABLE 0x00
917#define BT_HCI_LE_SCAN_FILTER_DUP_ENABLE 0x01
924#define BT_HCI_OP_LE_CREATE_CONN BT_OP(BT_OGF_LE, 0x000d)
926#define BT_HCI_LE_CREATE_CONN_FP_NO_FILTER 0x00
927#define BT_HCI_LE_CREATE_CONN_FP_FILTER 0x01
943#define BT_HCI_OP_LE_CREATE_CONN_CANCEL BT_OP(BT_OGF_LE, 0x000e)
945#define BT_HCI_OP_LE_READ_FAL_SIZE BT_OP(BT_OGF_LE, 0x000f)
951#define BT_HCI_OP_LE_CLEAR_FAL BT_OP(BT_OGF_LE, 0x0010)
953#define BT_HCI_OP_LE_ADD_DEV_TO_FAL BT_OP(BT_OGF_LE, 0x0011)
958#define BT_HCI_OP_LE_REM_DEV_FROM_FAL BT_OP(BT_OGF_LE, 0x0012)
963#define BT_HCI_OP_LE_CONN_UPDATE BT_OP(BT_OGF_LE, 0x0013)
974#define BT_HCI_OP_LE_SET_HOST_CHAN_CLASSIF BT_OP(BT_OGF_LE, 0x0014)
979#define BT_HCI_OP_LE_READ_CHAN_MAP BT_OP(BT_OGF_LE, 0x0015)
989#define BT_HCI_OP_LE_READ_REMOTE_FEATURES BT_OP(BT_OGF_LE, 0x0016)
994#define BT_HCI_OP_LE_ENCRYPT BT_OP(BT_OGF_LE, 0x0017)
1004#define BT_HCI_OP_LE_RAND BT_OP(BT_OGF_LE, 0x0018)
1010#define BT_HCI_OP_LE_START_ENCRYPTION BT_OP(BT_OGF_LE, 0x0019)
1018#define BT_HCI_OP_LE_LTK_REQ_REPLY BT_OP(BT_OGF_LE, 0x001a)
1028#define BT_HCI_OP_LE_LTK_REQ_NEG_REPLY BT_OP(BT_OGF_LE, 0x001b)
1037#define BT_HCI_OP_LE_READ_SUPP_STATES BT_OP(BT_OGF_LE, 0x001c)
1043#define BT_HCI_OP_LE_RX_TEST BT_OP(BT_OGF_LE, 0x001d)
1048#define BT_HCI_TEST_PKT_PAYLOAD_PRBS9 0x00
1049#define BT_HCI_TEST_PKT_PAYLOAD_11110000 0x01
1050#define BT_HCI_TEST_PKT_PAYLOAD_10101010 0x02
1051#define BT_HCI_TEST_PKT_PAYLOAD_PRBS15 0x03
1052#define BT_HCI_TEST_PKT_PAYLOAD_11111111 0x04
1053#define BT_HCI_TEST_PKT_PAYLOAD_00000000 0x05
1054#define BT_HCI_TEST_PKT_PAYLOAD_00001111 0x06
1055#define BT_HCI_TEST_PKT_PAYLOAD_01010101 0x07
1057#define BT_HCI_OP_LE_TX_TEST BT_OP(BT_OGF_LE, 0x001e)
1064#define BT_HCI_OP_LE_TEST_END BT_OP(BT_OGF_LE, 0x001f)
1070#define BT_HCI_OP_LE_CONN_PARAM_REQ_REPLY BT_OP(BT_OGF_LE, 0x0020)
1085#define BT_HCI_OP_LE_CONN_PARAM_REQ_NEG_REPLY BT_OP(BT_OGF_LE, 0x0021)
1095#define BT_HCI_OP_LE_SET_DATA_LEN BT_OP(BT_OGF_LE, 0x0022)
1106#define BT_HCI_OP_LE_READ_DEFAULT_DATA_LEN BT_OP(BT_OGF_LE, 0x0023)
1113#define BT_HCI_OP_LE_WRITE_DEFAULT_DATA_LEN BT_OP(BT_OGF_LE, 0x0024)
1119#define BT_HCI_OP_LE_P256_PUBLIC_KEY BT_OP(BT_OGF_LE, 0x0025)
1121#define BT_HCI_OP_LE_GENERATE_DHKEY BT_OP(BT_OGF_LE, 0x0026)
1127#define BT_HCI_OP_LE_GENERATE_DHKEY_V2 BT_OP(BT_OGF_LE, 0x005e)
1129#define BT_HCI_LE_KEY_TYPE_GENERATED 0x00
1130#define BT_HCI_LE_KEY_TYPE_DEBUG 0x01
1138#define BT_HCI_OP_LE_ADD_DEV_TO_RL BT_OP(BT_OGF_LE, 0x0027)
1145#define BT_HCI_OP_LE_REM_DEV_FROM_RL BT_OP(BT_OGF_LE, 0x0028)
1150#define BT_HCI_OP_LE_CLEAR_RL BT_OP(BT_OGF_LE, 0x0029)
1152#define BT_HCI_OP_LE_READ_RL_SIZE BT_OP(BT_OGF_LE, 0x002a)
1158#define BT_HCI_OP_LE_READ_PEER_RPA BT_OP(BT_OGF_LE, 0x002b)
1167#define BT_HCI_OP_LE_READ_LOCAL_RPA BT_OP(BT_OGF_LE, 0x002c)
1176#define BT_HCI_ADDR_RES_DISABLE 0x00
1177#define BT_HCI_ADDR_RES_ENABLE 0x01
1179#define BT_HCI_OP_LE_SET_ADDR_RES_ENABLE BT_OP(BT_OGF_LE, 0x002d)
1184#define BT_HCI_OP_LE_SET_RPA_TIMEOUT BT_OP(BT_OGF_LE, 0x002e)
1189#define BT_HCI_OP_LE_READ_MAX_DATA_LEN BT_OP(BT_OGF_LE, 0x002f)
1198#define BT_HCI_LE_PHY_1M 0x01
1199#define BT_HCI_LE_PHY_2M 0x02
1200#define BT_HCI_LE_PHY_CODED 0x03
1202#define BT_HCI_OP_LE_READ_PHY BT_OP(BT_OGF_LE, 0x0030)
1213#define BT_HCI_LE_PHY_TX_ANY BIT(0)
1214#define BT_HCI_LE_PHY_RX_ANY BIT(1)
1216#define BT_HCI_LE_PHY_PREFER_1M BIT(0)
1217#define BT_HCI_LE_PHY_PREFER_2M BIT(1)
1218#define BT_HCI_LE_PHY_PREFER_CODED BIT(2)
1220#define BT_HCI_OP_LE_SET_DEFAULT_PHY BT_OP(BT_OGF_LE, 0x0031)
1227#define BT_HCI_LE_PHY_CODED_ANY 0x00
1228#define BT_HCI_LE_PHY_CODED_S2 0x01
1229#define BT_HCI_LE_PHY_CODED_S8 0x02
1231#define BT_HCI_OP_LE_SET_PHY BT_OP(BT_OGF_LE, 0x0032)
1240#define BT_HCI_LE_MOD_INDEX_STANDARD 0x00
1241#define BT_HCI_LE_MOD_INDEX_STABLE 0x01
1243#define BT_HCI_LE_RX_PHY_1M 0x01
1244#define BT_HCI_LE_RX_PHY_2M 0x02
1245#define BT_HCI_LE_RX_PHY_CODED 0x03
1247#define BT_HCI_OP_LE_ENH_RX_TEST BT_OP(BT_OGF_LE, 0x0033)
1254#define BT_HCI_LE_TX_PHY_1M 0x01
1255#define BT_HCI_LE_TX_PHY_2M 0x02
1256#define BT_HCI_LE_TX_PHY_CODED_S8 0x03
1257#define BT_HCI_LE_TX_PHY_CODED_S2 0x04
1259#define BT_HCI_OP_LE_ENH_TX_TEST BT_OP(BT_OGF_LE, 0x0034)
1267#define BT_HCI_OP_LE_SET_ADV_SET_RANDOM_ADDR BT_OP(BT_OGF_LE, 0x0035)
1273#define BT_HCI_LE_ADV_PROP_CONN BIT(0)
1274#define BT_HCI_LE_ADV_PROP_SCAN BIT(1)
1275#define BT_HCI_LE_ADV_PROP_DIRECT BIT(2)
1276#define BT_HCI_LE_ADV_PROP_HI_DC_CONN BIT(3)
1277#define BT_HCI_LE_ADV_PROP_LEGACY BIT(4)
1278#define BT_HCI_LE_ADV_PROP_ANON BIT(5)
1279#define BT_HCI_LE_ADV_PROP_TX_POWER BIT(6)
1281#define BT_HCI_LE_PRIM_ADV_INTERVAL_MIN 0x000020
1282#define BT_HCI_LE_PRIM_ADV_INTERVAL_MAX 0xFFFFFF
1284#define BT_HCI_LE_ADV_SCAN_REQ_ENABLE 1
1285#define BT_HCI_LE_ADV_SCAN_REQ_DISABLE 0
1287#define BT_HCI_LE_ADV_TX_POWER_NO_PREF 0x7F
1289#define BT_HCI_LE_ADV_HANDLE_MAX 0xEF
1291#define BT_HCI_LE_EXT_ADV_SID_INVALID 0xFF
1293#define BT_HCI_OP_LE_SET_EXT_ADV_PARAM BT_OP(BT_OGF_LE, 0x0036)
1315#define BT_HCI_LE_EXT_ADV_OP_INTERM_FRAG 0x00
1316#define BT_HCI_LE_EXT_ADV_OP_FIRST_FRAG 0x01
1317#define BT_HCI_LE_EXT_ADV_OP_LAST_FRAG 0x02
1318#define BT_HCI_LE_EXT_ADV_OP_COMPLETE_DATA 0x03
1319#define BT_HCI_LE_EXT_ADV_OP_UNCHANGED_DATA 0x04
1321#define BT_HCI_LE_EXT_ADV_FRAG_ENABLED 0x00
1322#define BT_HCI_LE_EXT_ADV_FRAG_DISABLED 0x01
1324#define BT_HCI_LE_EXT_ADV_FRAG_MAX_LEN 251
1326#define BT_HCI_OP_LE_SET_EXT_ADV_DATA BT_OP(BT_OGF_LE, 0x0037)
1335#define BT_HCI_OP_LE_SET_EXT_SCAN_RSP_DATA BT_OP(BT_OGF_LE, 0x0038)
1344#define BT_HCI_OP_LE_SET_EXT_ADV_ENABLE BT_OP(BT_OGF_LE, 0x0039)
1357#define BT_HCI_OP_LE_READ_MAX_ADV_DATA_LEN BT_OP(BT_OGF_LE, 0x003a)
1363#define BT_HCI_OP_LE_READ_NUM_ADV_SETS BT_OP(BT_OGF_LE, 0x003b)
1369#define BT_HCI_OP_LE_REMOVE_ADV_SET BT_OP(BT_OGF_LE, 0x003c)
1374#define BT_HCI_OP_CLEAR_ADV_SETS BT_OP(BT_OGF_LE, 0x003d)
1376#define BT_HCI_LE_PER_ADV_INTERVAL_MIN 0x0006
1377#define BT_HCI_LE_PER_ADV_INTERVAL_MAX 0xFFFF
1379#define BT_HCI_OP_LE_SET_PER_ADV_PARAM BT_OP(BT_OGF_LE, 0x003e)
1387#define BT_HCI_LE_PER_ADV_OP_INTERM_FRAG 0x00
1388#define BT_HCI_LE_PER_ADV_OP_FIRST_FRAG 0x01
1389#define BT_HCI_LE_PER_ADV_OP_LAST_FRAG 0x02
1390#define BT_HCI_LE_PER_ADV_OP_COMPLETE_DATA 0x03
1392#define BT_HCI_LE_PER_ADV_FRAG_MAX_LEN 252
1394#define BT_HCI_OP_LE_SET_PER_ADV_DATA BT_OP(BT_OGF_LE, 0x003f)
1402#define BT_HCI_LE_SET_PER_ADV_ENABLE_ENABLE BIT(0)
1403#define BT_HCI_LE_SET_PER_ADV_ENABLE_ADI BIT(1)
1405#define BT_HCI_OP_LE_SET_PER_ADV_ENABLE BT_OP(BT_OGF_LE, 0x0040)
1411#define BT_HCI_OP_LE_SET_EXT_SCAN_PARAM BT_OP(BT_OGF_LE, 0x0041)
1418#define BT_HCI_LE_EXT_SCAN_PHY_1M BIT(0)
1419#define BT_HCI_LE_EXT_SCAN_PHY_2M BIT(1)
1420#define BT_HCI_LE_EXT_SCAN_PHY_CODED BIT(2)
1430#define BT_HCI_LE_EXT_SCAN_FILTER_DUP_ENABLE_RESET 0x02
1432#define BT_HCI_OP_LE_SET_EXT_SCAN_ENABLE BT_OP(BT_OGF_LE, 0x0042)
1440#define BT_HCI_OP_LE_EXT_CREATE_CONN BT_OP(BT_OGF_LE, 0x0043)
1460#define BT_HCI_LE_PER_ADV_CREATE_SYNC_FP_USE_LIST BIT(0)
1461#define BT_HCI_LE_PER_ADV_CREATE_SYNC_FP_REPORTS_DISABLED BIT(1)
1462#define BT_HCI_LE_PER_ADV_CREATE_SYNC_FP_FILTER_DUPLICATE BIT(2)
1464#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_FILTERING 0
1465#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_AOA BIT(0)
1466#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_AOD_1US BIT(1)
1467#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_AOD_2US BIT(2)
1468#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_CTE BIT(3)
1469#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_ONLY_CTE BIT(4)
1471#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_ALLOWED_BITS 5
1472#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_INVALID_VALUE \
1473 (~BIT_MASK(BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_ALLOWED_BITS))
1475#define BT_HCI_OP_LE_PER_ADV_CREATE_SYNC BT_OP(BT_OGF_LE, 0x0044)
1485#define BT_HCI_OP_LE_PER_ADV_CREATE_SYNC_CANCEL BT_OP(BT_OGF_LE, 0x0045)
1487#define BT_HCI_OP_LE_PER_ADV_TERMINATE_SYNC BT_OP(BT_OGF_LE, 0x0046)
1492#define BT_HCI_OP_LE_ADD_DEV_TO_PER_ADV_LIST BT_OP(BT_OGF_LE, 0x0047)
1498#define BT_HCI_OP_LE_REM_DEV_FROM_PER_ADV_LIST BT_OP(BT_OGF_LE, 0x0048)
1504#define BT_HCI_OP_LE_CLEAR_PER_ADV_LIST BT_OP(BT_OGF_LE, 0x0049)
1506#define BT_HCI_OP_LE_READ_PER_ADV_LIST_SIZE BT_OP(BT_OGF_LE, 0x004a)
1512#define BT_HCI_OP_LE_READ_TX_POWER BT_OP(BT_OGF_LE, 0x004b)
1519#define BT_HCI_OP_LE_READ_RF_PATH_COMP BT_OP(BT_OGF_LE, 0x004c)
1526#define BT_HCI_OP_LE_WRITE_RF_PATH_COMP BT_OP(BT_OGF_LE, 0x004d)
1532#define BT_HCI_LE_PRIVACY_MODE_NETWORK 0x00
1533#define BT_HCI_LE_PRIVACY_MODE_DEVICE 0x01
1535#define BT_HCI_OP_LE_SET_PRIVACY_MODE BT_OP(BT_OGF_LE, 0x004e)
1541#define BT_HCI_LE_TEST_CTE_DISABLED 0x00
1542#define BT_HCI_LE_TEST_CTE_TYPE_ANY 0x00
1543#define BT_HCI_LE_TEST_SLOT_DURATION_ANY 0x00
1544#define BT_HCI_LE_TEST_SWITCH_PATTERN_LEN_ANY 0x00
1546#define BT_HCI_OP_LE_RX_TEST_V3 BT_OP(BT_OGF_LE, 0x004f)
1558#define BT_HCI_OP_LE_TX_TEST_V3 BT_OP(BT_OGF_LE, 0x0050)
1572#define BT_HCI_LE_CTE_LEN_MIN 0x2
1573#define BT_HCI_LE_CTE_LEN_MAX 0x14
1575#define BT_HCI_LE_AOA_CTE 0x0
1576#define BT_HCI_LE_AOD_CTE_1US 0x1
1577#define BT_HCI_LE_AOD_CTE_2US 0x2
1578#define BT_HCI_LE_NO_CTE 0xFF
1580#define BT_HCI_LE_CTE_COUNT_MIN 0x1
1581#define BT_HCI_LE_CTE_COUNT_MAX 0x10
1583#define BT_HCI_OP_LE_SET_CL_CTE_TX_PARAMS BT_OP(BT_OGF_LE, 0x0051)
1593#define BT_HCI_OP_LE_SET_CL_CTE_TX_ENABLE BT_OP(BT_OGF_LE, 0x0052)
1599#define BT_HCI_LE_ANTENNA_SWITCHING_SLOT_1US 0x1
1600#define BT_HCI_LE_ANTENNA_SWITCHING_SLOT_2US 0x2
1602#define BT_HCI_LE_SAMPLE_CTE_ALL 0x0
1603#define BT_HCI_LE_SAMPLE_CTE_COUNT_MIN 0x1
1604#define BT_HCI_LE_SAMPLE_CTE_COUNT_MAX 0x10
1606#define BT_HCI_OP_LE_SET_CL_CTE_SAMPLING_ENABLE BT_OP(BT_OGF_LE, 0x0053)
1621#define BT_HCI_OP_LE_SET_CONN_CTE_RX_PARAMS BT_OP(BT_OGF_LE, 0x0054)
1635#define BT_HCI_LE_AOA_CTE_RSP BIT(0)
1636#define BT_HCI_LE_AOD_CTE_RSP_1US BIT(1)
1637#define BT_HCI_LE_AOD_CTE_RSP_2US BIT(2)
1639#define BT_HCI_LE_SWITCH_PATTERN_LEN_MIN 0x2
1640#define BT_HCI_LE_SWITCH_PATTERN_LEN_MAX 0x4B
1642#define BT_HCI_OP_LE_SET_CONN_CTE_TX_PARAMS BT_OP(BT_OGF_LE, 0x0055)
1656#define BT_HCI_REQUEST_CTE_ONCE 0x0
1657#define BT_HCI_REQUEST_CTE_INTERVAL_MIN 0x1
1658#define BT_HCI_REQUEST_CTE_INTERVAL_MAX 0xFFFF
1660#define BT_HCI_OP_LE_CONN_CTE_REQ_ENABLE BT_OP(BT_OGF_LE, 0x0056)
1674#define BT_HCI_OP_LE_CONN_CTE_RSP_ENABLE BT_OP(BT_OGF_LE, 0x0057)
1685#define BT_HCI_LE_1US_AOD_TX BIT(0)
1686#define BT_HCI_LE_1US_AOD_RX BIT(1)
1687#define BT_HCI_LE_1US_AOA_RX BIT(2)
1689#define BT_HCI_LE_NUM_ANT_MIN 0x1
1690#define BT_HCI_LE_NUM_ANT_MAX 0x4B
1692#define BT_HCI_LE_MAX_SWITCH_PATTERN_LEN_MIN 0x2
1693#define BT_HCI_LE_MAX_SWITCH_PATTERN_LEN_MAX 0x4B
1695#define BT_HCI_LE_MAX_CTE_LEN_MIN 0x2
1696#define BT_HCI_LE_MAX_CTE_LEN_MAX 0x14
1698#define BT_HCI_OP_LE_READ_ANT_INFO BT_OP(BT_OGF_LE, 0x0058)
1707#define BT_HCI_LE_SET_PER_ADV_RECV_ENABLE_ENABLE BIT(0)
1708#define BT_HCI_LE_SET_PER_ADV_RECV_ENABLE_FILTER_DUPLICATE BIT(1)
1710#define BT_HCI_OP_LE_SET_PER_ADV_RECV_ENABLE BT_OP(BT_OGF_LE, 0x0059)
1716#define BT_HCI_OP_LE_PER_ADV_SYNC_TRANSFER BT_OP(BT_OGF_LE, 0x005a)
1728#define BT_HCI_OP_LE_PER_ADV_SET_INFO_TRANSFER BT_OP(BT_OGF_LE, 0x005b)
1740#define BT_HCI_LE_PAST_MODE_NO_SYNC 0x00
1741#define BT_HCI_LE_PAST_MODE_NO_REPORTS 0x01
1742#define BT_HCI_LE_PAST_MODE_SYNC 0x02
1744#define BT_HCI_LE_PAST_CTE_TYPE_NO_AOA BIT(0)
1745#define BT_HCI_LE_PAST_CTE_TYPE_NO_AOD_1US BIT(1)
1746#define BT_HCI_LE_PAST_CTE_TYPE_NO_AOD_2US BIT(2)
1747#define BT_HCI_LE_PAST_CTE_TYPE_NO_CTE BIT(3)
1748#define BT_HCI_LE_PAST_CTE_TYPE_ONLY_CTE BIT(4)
1750#define BT_HCI_OP_LE_PAST_PARAM BT_OP(BT_OGF_LE, 0x005c)
1764#define BT_HCI_OP_LE_DEFAULT_PAST_PARAM BT_OP(BT_OGF_LE, 0x005d)
1776#define BT_HCI_OP_LE_READ_BUFFER_SIZE_V2 BT_OP(BT_OGF_LE, 0x0060)
1785#define BT_HCI_OP_LE_READ_ISO_TX_SYNC BT_OP(BT_OGF_LE, 0x0061)
1798#define BT_HCI_OP_LE_SET_CIG_PARAMS BT_OP(BT_OGF_LE, 0x0062)
1829#define BT_HCI_OP_LE_SET_CIG_PARAMS_TEST BT_OP(BT_OGF_LE, 0x0063)
1864#define BT_HCI_OP_LE_CREATE_CIS BT_OP(BT_OGF_LE, 0x0064)
1875#define BT_HCI_OP_LE_REMOVE_CIG BT_OP(BT_OGF_LE, 0x0065)
1885#define BT_HCI_OP_LE_ACCEPT_CIS BT_OP(BT_OGF_LE, 0x0066)
1890#define BT_HCI_OP_LE_REJECT_CIS BT_OP(BT_OGF_LE, 0x0067)
1901#define BT_HCI_OP_LE_CREATE_BIG BT_OP(BT_OGF_LE, 0x0068)
1917#define BT_HCI_OP_LE_CREATE_BIG_TEST BT_OP(BT_OGF_LE, 0x0069)
1937#define BT_HCI_OP_LE_TERMINATE_BIG BT_OP(BT_OGF_LE, 0x006a)
1943#define BT_HCI_OP_LE_BIG_CREATE_SYNC BT_OP(BT_OGF_LE, 0x006b)
1955#define BT_HCI_OP_LE_BIG_TERMINATE_SYNC BT_OP(BT_OGF_LE, 0x006c)
1965#define BT_HCI_OP_LE_REQ_PEER_SC BT_OP(BT_OGF_LE, 0x006d)
1970#define BT_HCI_OP_LE_SETUP_ISO_PATH BT_OP(BT_OGF_LE, 0x006e)
1986#define BT_HCI_OP_LE_REMOVE_ISO_PATH BT_OP(BT_OGF_LE, 0x006f)
1997#define BT_HCI_OP_LE_ISO_TRANSMIT_TEST BT_OP(BT_OGF_LE, 0x0070)
2008#define BT_HCI_OP_LE_ISO_RECEIVE_TEST BT_OP(BT_OGF_LE, 0x0071)
2019#define BT_HCI_OP_LE_ISO_READ_TEST_COUNTERS BT_OP(BT_OGF_LE, 0x0072)
2032#define BT_HCI_OP_LE_ISO_TEST_END BT_OP(BT_OGF_LE, 0x0073)
2045#define BT_HCI_OP_LE_SET_HOST_FEATURE BT_OP(BT_OGF_LE, 0x0074)
2055#define BT_HCI_OP_LE_READ_ISO_LINK_QUALITY BT_OP(BT_OGF_LE, 0x0075)
2072#define BT_HCI_OP_LE_TX_TEST_V4 BT_OP(BT_OGF_LE, 0x007B)
2085#define BT_HCI_TX_TEST_POWER_MIN -0x7F
2086#define BT_HCI_TX_TEST_POWER_MAX 0x14
2088#define BT_HCI_TX_TEST_POWER_MIN_SET 0x7E
2089#define BT_HCI_TX_TEST_POWER_MAX_SET 0x7F
2101#define BT_HCI_EVT_UNKNOWN 0x00
2102#define BT_HCI_EVT_VENDOR 0xff
2104#define BT_HCI_EVT_INQUIRY_COMPLETE 0x01
2109#define BT_HCI_EVT_CONN_COMPLETE 0x03
2118#define BT_HCI_EVT_CONN_REQUEST 0x04
2125#define BT_HCI_EVT_DISCONN_COMPLETE 0x05
2132#define BT_HCI_EVT_AUTH_COMPLETE 0x06
2138#define BT_HCI_EVT_REMOTE_NAME_REQ_COMPLETE 0x07
2145#define BT_HCI_EVT_ENCRYPT_CHANGE 0x08
2152#define BT_HCI_EVT_REMOTE_FEATURES 0x0b
2159#define BT_HCI_EVT_REMOTE_VERSION_INFO 0x0c
2168#define BT_HCI_EVT_CMD_COMPLETE 0x0e
2178#define BT_HCI_EVT_CMD_STATUS 0x0f
2185#define BT_HCI_EVT_HARDWARE_ERROR 0x10
2190#define BT_HCI_EVT_ROLE_CHANGE 0x12
2197#define BT_HCI_EVT_NUM_COMPLETED_PACKETS 0x13
2203#define BT_HCI_EVT_PIN_CODE_REQ 0x16
2208#define BT_HCI_EVT_LINK_KEY_REQ 0x17
2214#define BT_LK_COMBINATION 0x00
2215#define BT_LK_LOCAL_UNIT 0x01
2216#define BT_LK_REMOTE_UNIT 0x02
2217#define BT_LK_DEBUG_COMBINATION 0x03
2218#define BT_LK_UNAUTH_COMBINATION_P192 0x04
2219#define BT_LK_AUTH_COMBINATION_P192 0x05
2220#define BT_LK_CHANGED_COMBINATION 0x06
2221#define BT_LK_UNAUTH_COMBINATION_P256 0x07
2222#define BT_LK_AUTH_COMBINATION_P256 0x08
2224#define BT_HCI_EVT_LINK_KEY_NOTIFY 0x18
2232#define BT_OVERFLOW_LINK_SYNCH 0x00
2233#define BT_OVERFLOW_LINK_ACL 0x01
2234#define BT_OVERFLOW_LINK_ISO 0x02
2236#define BT_HCI_EVT_DATA_BUF_OVERFLOW 0x1a
2241#define BT_HCI_EVT_INQUIRY_RESULT_WITH_RSSI 0x22
2251#define BT_HCI_EVT_REMOTE_EXT_FEATURES 0x23
2260#define BT_HCI_EVT_SYNC_CONN_COMPLETE 0x2c
2273#define BT_HCI_EVT_EXTENDED_INQUIRY_RESULT 0x2f
2285#define BT_HCI_EVT_ENCRYPT_KEY_REFRESH_COMPLETE 0x30
2291#define BT_HCI_EVT_IO_CAPA_REQ 0x31
2296#define BT_HCI_EVT_IO_CAPA_RESP 0x32
2304#define BT_HCI_EVT_USER_CONFIRM_REQ 0x33
2310#define BT_HCI_EVT_USER_PASSKEY_REQ 0x34
2315#define BT_HCI_EVT_SSP_COMPLETE 0x36
2321#define BT_HCI_EVT_USER_PASSKEY_NOTIFY 0x3b
2327#define BT_HCI_EVT_LE_META_EVENT 0x3e
2332#define BT_HCI_EVT_AUTH_PAYLOAD_TIMEOUT_EXP 0x57
2337#define BT_HCI_ROLE_CENTRAL 0x00
2338#define BT_HCI_ROLE_PERIPHERAL 0x01
2340#define BT_HCI_EVT_LE_CONN_COMPLETE 0x01
2352#define BT_HCI_LE_RSSI_NOT_AVAILABLE 0x7F
2354#define BT_HCI_EVT_LE_ADVERTISING_REPORT 0x02
2366#define BT_HCI_EVT_LE_CONN_UPDATE_COMPLETE 0x03
2375#define BT_HCI_EVT_LE_REMOTE_FEAT_COMPLETE 0x04
2382#define BT_HCI_EVT_LE_LTK_REQUEST 0x05
2389#define BT_HCI_EVT_LE_CONN_PARAM_REQ 0x06
2398#define BT_HCI_EVT_LE_DATA_LEN_CHANGE 0x07
2407#define BT_HCI_EVT_LE_P256_PUBLIC_KEY_COMPLETE 0x08
2413#define BT_HCI_EVT_LE_GENERATE_DHKEY_COMPLETE 0x09
2419#define BT_HCI_EVT_LE_ENH_CONN_COMPLETE 0x0a
2433#define BT_HCI_EVT_LE_DIRECT_ADV_REPORT 0x0b
2445#define BT_HCI_EVT_LE_PHY_UPDATE_COMPLETE 0x0c
2453#define BT_HCI_EVT_LE_EXT_ADVERTISING_REPORT 0x0d
2455#define BT_HCI_LE_ADV_EVT_TYPE_CONN BIT(0)
2456#define BT_HCI_LE_ADV_EVT_TYPE_SCAN BIT(1)
2457#define BT_HCI_LE_ADV_EVT_TYPE_DIRECT BIT(2)
2458#define BT_HCI_LE_ADV_EVT_TYPE_SCAN_RSP BIT(3)
2459#define BT_HCI_LE_ADV_EVT_TYPE_LEGACY BIT(4)
2461#define BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS(ev_type) (((ev_type) >> 5) & 0x03)
2462#define BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_COMPLETE 0
2463#define BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_PARTIAL 1
2464#define BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_INCOMPLETE 2
2484#define BT_HCI_EVT_LE_PER_ADV_SYNC_ESTABLISHED 0x0e
2495#define BT_HCI_EVT_LE_PER_ADVERTISING_REPORT 0x0f
2506#define BT_HCI_EVT_LE_PER_ADV_SYNC_LOST 0x10
2511#define BT_HCI_EVT_LE_SCAN_TIMEOUT 0x11
2513#define BT_HCI_EVT_LE_ADV_SET_TERMINATED 0x12
2521#define BT_HCI_EVT_LE_SCAN_REQ_RECEIVED 0x13
2527#define BT_HCI_LE_CHAN_SEL_ALGO_1 0x00
2528#define BT_HCI_LE_CHAN_SEL_ALGO_2 0x01
2530#define BT_HCI_EVT_LE_CHAN_SEL_ALGO 0x14
2536#define BT_HCI_LE_CTE_CRC_OK 0x0
2537#define BT_HCI_LE_CTE_CRC_ERR_CTE_BASED_TIME 0x1
2538#define BT_HCI_LE_CTE_CRC_ERR_CTE_BASED_OTHER 0x2
2539#define BT_HCI_LE_CTE_INSUFFICIENT_RESOURCES 0xFF
2541#define B_HCI_LE_CTE_REPORT_SAMPLE_COUNT_MIN 0x9
2542#define B_HCI_LE_CTE_REPORT_SAMPLE_COUNT_MAX 0x52
2544#define BT_HCI_LE_CTE_REPORT_NO_VALID_SAMPLE 0x80
2546#define BT_HCI_EVT_LE_CONNECTIONLESS_IQ_REPORT 0x15
2565#define BT_HCI_EVT_LE_CONNECTION_IQ_REPORT 0x16
2580#define BT_HCI_CTE_REQ_STATUS_RSP_WITHOUT_CTE 0x0
2582#define BT_HCI_EVT_LE_CTE_REQUEST_FAILED 0x17
2593#define BT_HCI_EVT_LE_PAST_RECEIVED 0x18
2606#define BT_HCI_EVT_LE_CIS_ESTABLISHED 0x19
2626#define BT_HCI_EVT_LE_CIS_REQ 0x1a
2634#define BT_HCI_EVT_LE_BIG_COMPLETE 0x1b
2651#define BT_HCI_EVT_LE_BIG_TERMINATE 0x1c
2657#define BT_HCI_EVT_LE_BIG_SYNC_ESTABLISHED 0x1d
2672#define BT_HCI_EVT_LE_BIG_SYNC_LOST 0x1e
2678#define BT_HCI_EVT_LE_REQ_PEER_SCA_COMPLETE 0x1f
2685#define BT_HCI_EVT_LE_BIGINFO_ADV_REPORT 0x22
2704#define BT_EVT_BIT(n) (1ULL << (n))
2706#define BT_EVT_MASK_INQUIRY_COMPLETE BT_EVT_BIT(0)
2707#define BT_EVT_MASK_CONN_COMPLETE BT_EVT_BIT(2)
2708#define BT_EVT_MASK_CONN_REQUEST BT_EVT_BIT(3)
2709#define BT_EVT_MASK_DISCONN_COMPLETE BT_EVT_BIT(4)
2710#define BT_EVT_MASK_AUTH_COMPLETE BT_EVT_BIT(5)
2711#define BT_EVT_MASK_REMOTE_NAME_REQ_COMPLETE BT_EVT_BIT(6)
2712#define BT_EVT_MASK_ENCRYPT_CHANGE BT_EVT_BIT(7)
2713#define BT_EVT_MASK_REMOTE_FEATURES BT_EVT_BIT(10)
2714#define BT_EVT_MASK_REMOTE_VERSION_INFO BT_EVT_BIT(11)
2715#define BT_EVT_MASK_HARDWARE_ERROR BT_EVT_BIT(15)
2716#define BT_EVT_MASK_ROLE_CHANGE BT_EVT_BIT(17)
2717#define BT_EVT_MASK_PIN_CODE_REQ BT_EVT_BIT(21)
2718#define BT_EVT_MASK_LINK_KEY_REQ BT_EVT_BIT(22)
2719#define BT_EVT_MASK_LINK_KEY_NOTIFY BT_EVT_BIT(23)
2720#define BT_EVT_MASK_DATA_BUFFER_OVERFLOW BT_EVT_BIT(25)
2721#define BT_EVT_MASK_INQUIRY_RESULT_WITH_RSSI BT_EVT_BIT(33)
2722#define BT_EVT_MASK_REMOTE_EXT_FEATURES BT_EVT_BIT(34)
2723#define BT_EVT_MASK_SYNC_CONN_COMPLETE BT_EVT_BIT(43)
2724#define BT_EVT_MASK_EXTENDED_INQUIRY_RESULT BT_EVT_BIT(46)
2725#define BT_EVT_MASK_ENCRYPT_KEY_REFRESH_COMPLETE BT_EVT_BIT(47)
2726#define BT_EVT_MASK_IO_CAPA_REQ BT_EVT_BIT(48)
2727#define BT_EVT_MASK_IO_CAPA_RESP BT_EVT_BIT(49)
2728#define BT_EVT_MASK_USER_CONFIRM_REQ BT_EVT_BIT(50)
2729#define BT_EVT_MASK_USER_PASSKEY_REQ BT_EVT_BIT(51)
2730#define BT_EVT_MASK_SSP_COMPLETE BT_EVT_BIT(53)
2731#define BT_EVT_MASK_USER_PASSKEY_NOTIFY BT_EVT_BIT(58)
2732#define BT_EVT_MASK_LE_META_EVENT BT_EVT_BIT(61)
2735#define BT_EVT_MASK_NUM_COMPLETE_DATA_BLOCKS BT_EVT_BIT(8)
2736#define BT_EVT_MASK_TRIGG_CLOCK_CAPTURE BT_EVT_BIT(14)
2737#define BT_EVT_MASK_SYNCH_TRAIN_COMPLETE BT_EVT_BIT(15)
2738#define BT_EVT_MASK_SYNCH_TRAIN_RX BT_EVT_BIT(16)
2739#define BT_EVT_MASK_CL_PER_BC_RX BT_EVT_BIT(17)
2740#define BT_EVT_MASK_CL_PER_BC_TIMEOUT BT_EVT_BIT(18)
2741#define BT_EVT_MASK_TRUNC_PAGE_COMPLETE BT_EVT_BIT(19)
2742#define BT_EVT_MASK_PER_PAGE_RSP_TIMEOUT BT_EVT_BIT(20)
2743#define BT_EVT_MASK_CL_PER_BC_CH_MAP_CHANGE BT_EVT_BIT(21)
2744#define BT_EVT_MASK_INQUIRY_RSP_NOT BT_EVT_BIT(22)
2745#define BT_EVT_MASK_AUTH_PAYLOAD_TIMEOUT_EXP BT_EVT_BIT(23)
2746#define BT_EVT_MASK_SAM_STATUS_CHANGE BT_EVT_BIT(24)
2748#define BT_EVT_MASK_LE_CONN_COMPLETE BT_EVT_BIT(0)
2749#define BT_EVT_MASK_LE_ADVERTISING_REPORT BT_EVT_BIT(1)
2750#define BT_EVT_MASK_LE_CONN_UPDATE_COMPLETE BT_EVT_BIT(2)
2751#define BT_EVT_MASK_LE_REMOTE_FEAT_COMPLETE BT_EVT_BIT(3)
2752#define BT_EVT_MASK_LE_LTK_REQUEST BT_EVT_BIT(4)
2753#define BT_EVT_MASK_LE_CONN_PARAM_REQ BT_EVT_BIT(5)
2754#define BT_EVT_MASK_LE_DATA_LEN_CHANGE BT_EVT_BIT(6)
2755#define BT_EVT_MASK_LE_P256_PUBLIC_KEY_COMPLETE BT_EVT_BIT(7)
2756#define BT_EVT_MASK_LE_GENERATE_DHKEY_COMPLETE BT_EVT_BIT(8)
2757#define BT_EVT_MASK_LE_ENH_CONN_COMPLETE BT_EVT_BIT(9)
2758#define BT_EVT_MASK_LE_DIRECT_ADV_REPORT BT_EVT_BIT(10)
2759#define BT_EVT_MASK_LE_PHY_UPDATE_COMPLETE BT_EVT_BIT(11)
2760#define BT_EVT_MASK_LE_EXT_ADVERTISING_REPORT BT_EVT_BIT(12)
2761#define BT_EVT_MASK_LE_PER_ADV_SYNC_ESTABLISHED BT_EVT_BIT(13)
2762#define BT_EVT_MASK_LE_PER_ADVERTISING_REPORT BT_EVT_BIT(14)
2763#define BT_EVT_MASK_LE_PER_ADV_SYNC_LOST BT_EVT_BIT(15)
2764#define BT_EVT_MASK_LE_SCAN_TIMEOUT BT_EVT_BIT(16)
2765#define BT_EVT_MASK_LE_ADV_SET_TERMINATED BT_EVT_BIT(17)
2766#define BT_EVT_MASK_LE_SCAN_REQ_RECEIVED BT_EVT_BIT(18)
2767#define BT_EVT_MASK_LE_CHAN_SEL_ALGO BT_EVT_BIT(19)
2768#define BT_EVT_MASK_LE_CONNECTIONLESS_IQ_REPORT BT_EVT_BIT(20)
2769#define BT_EVT_MASK_LE_CONNECTION_IQ_REPORT BT_EVT_BIT(21)
2770#define BT_EVT_MASK_LE_CTE_REQUEST_FAILED BT_EVT_BIT(22)
2771#define BT_EVT_MASK_LE_PAST_RECEIVED BT_EVT_BIT(23)
2772#define BT_EVT_MASK_LE_CIS_ESTABLISHED BT_EVT_BIT(24)
2773#define BT_EVT_MASK_LE_CIS_REQ BT_EVT_BIT(25)
2774#define BT_EVT_MASK_LE_BIG_COMPLETE BT_EVT_BIT(26)
2775#define BT_EVT_MASK_LE_BIG_TERMINATED BT_EVT_BIT(27)
2776#define BT_EVT_MASK_LE_BIG_SYNC_ESTABLISHED BT_EVT_BIT(28)
2777#define BT_EVT_MASK_LE_BIG_SYNC_LOST BT_EVT_BIT(29)
2778#define BT_EVT_MASK_LE_REQ_PEER_SCA_COMPLETE BT_EVT_BIT(30)
2779#define BT_EVT_MASK_LE_PATH_LOSS_THRESHOLD BT_EVT_BIT(31)
2780#define BT_EVT_MASK_LE_TRANSMIT_POWER_REPORTING BT_EVT_BIT(32)
2781#define BT_EVT_MASK_LE_BIGINFO_ADV_REPORT BT_EVT_BIT(33)
Bluetooth device address definitions and utilities.
Bluetooth connection handling.
static ZTEST_BMEM char buffer[8]
Test mailbox enhance capabilities.
Definition: test_mbox_api.c:566
int bt_hci_get_adv_handle(const struct bt_le_ext_adv *adv, uint8_t *adv_handle)
Get advertising handle for an advertising set.
int bt_hci_le_rand(void *buffer, size_t len)
Get Random bytes from the LE Controller.
struct net_buf * bt_hci_cmd_create(uint16_t opcode, uint8_t param_len)
int bt_hci_cmd_send_sync(uint16_t opcode, struct net_buf *buf, struct net_buf **rsp)
int bt_hci_get_conn_handle(const struct bt_conn *conn, uint16_t *conn_handle)
Get connection handle for a connection.
int bt_hci_register_vnd_evt_cb(bt_hci_vnd_evt_cb_t cb)
int bt_hci_cmd_send(uint16_t opcode, struct net_buf *buf)
bool bt_hci_vnd_evt_cb_t(struct net_buf_simple *buf)
Callback type for vendor handling of HCI Vendor-Specific Events.
Definition: hci.h:2871
Bluetooth Host Control Interface status codes.
__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
uint16_t handle
Definition: hci.h:59
uint16_t len
Definition: hci.h:60
uint8_t cis_id
Definition: hci.h:1831
uint16_t c_sdu
Definition: hci.h:1833
uint8_t c_phy
Definition: hci.h:1837
uint8_t p_phy
Definition: hci.h:1838
uint16_t p_pdu
Definition: hci.h:1836
uint8_t p_bn
Definition: hci.h:1840
uint8_t nse
Definition: hci.h:1832
uint16_t c_pdu
Definition: hci.h:1835
uint8_t c_bn
Definition: hci.h:1839
uint16_t p_sdu
Definition: hci.h:1834
uint8_t p_phy
Definition: hci.h:1804
uint8_t c_phy
Definition: hci.h:1803
uint8_t cis_id
Definition: hci.h:1800
uint16_t c_sdu
Definition: hci.h:1801
uint8_t c_rtn
Definition: hci.h:1805
uint8_t p_rtn
Definition: hci.h:1806
uint16_t p_sdu
Definition: hci.h:1802
uint16_t acl_handle
Definition: hci.h:1867
uint16_t cis_handle
Definition: hci.h:1866
uint16_t opcode
Definition: hci.h:106
uint8_t param_len
Definition: hci.h:107
uint8_t length
Definition: hci.h:763
uint8_t data[0]
Definition: hci.h:764
uint8_t role
Definition: hci.h:344
bt_addr_t bdaddr
Definition: hci.h:343
uint16_t max_latency
Definition: hci.h:363
uint32_t tx_bandwidth
Definition: hci.h:361
bt_addr_t bdaddr
Definition: hci.h:360
uint16_t pkt_type
Definition: hci.h:366
uint8_t retrans_effort
Definition: hci.h:365
uint32_t rx_bandwidth
Definition: hci.h:362
uint16_t content_format
Definition: hci.h:364
uint16_t handle
Definition: hci.h:408
uint16_t vs_codec_id
Definition: hci.h:753
uint16_t company_id
Definition: hci.h:752
uint8_t coding_format
Definition: hci.h:751
bt_addr_t bdaddr
Definition: hci.h:334
uint8_t pscan_rep_mode
Definition: hci.h:320
uint16_t packet_type
Definition: hci.h:319
bt_addr_t bdaddr
Definition: hci.h:318
uint8_t allow_role_switch
Definition: hci.h:323
uint16_t clock_offset
Definition: hci.h:322
uint8_t reserved
Definition: hci.h:321
uint8_t reason
Definition: hci.h:329
uint16_t handle
Definition: hci.h:328
uint16_t acl_mtu
Definition: hci.h:532
uint8_t sco_mtu
Definition: hci.h:533
uint16_t acl_pkts
Definition: hci.h:534
uint16_t sco_pkts
Definition: hci.h:535
struct bt_hci_handle_count h[0]
Definition: hci.h:546
uint8_t num_handles
Definition: hci.h:545
uint8_t reason
Definition: hci.h:482
bt_addr_t bdaddr
Definition: hci.h:481
uint8_t capability
Definition: hci.h:453
uint8_t authentication
Definition: hci.h:455
uint8_t oob_data
Definition: hci.h:454
bt_addr_t bdaddr
Definition: hci.h:452
uint16_t handle
Definition: hci.h:1887
bt_addr_le_t addr
Definition: hci.h:955
uint8_t sid
Definition: hci.h:1495
bt_addr_le_t addr
Definition: hci.h:1494
bt_addr_le_t peer_id_addr
Definition: hci.h:1140
uint8_t local_irk[16]
Definition: hci.h:1142
uint8_t peer_irk[16]
Definition: hci.h:1141
uint8_t bcode[16]
Definition: hci.h:1948
uint8_t mse
Definition: hci.h:1949
uint8_t encryption
Definition: hci.h:1947
uint16_t sync_timeout
Definition: hci.h:1950
uint8_t big_handle
Definition: hci.h:1945
uint8_t bis[0]
Definition: hci.h:1952
uint16_t sync_handle
Definition: hci.h:1946
uint8_t num_bis
Definition: hci.h:1951
uint8_t big_handle
Definition: hci.h:1957
uint8_t requested_cte_length
Definition: hci.h:1665
uint8_t requested_cte_type
Definition: hci.h:1666
uint16_t cte_request_interval
Definition: hci.h:1664
uint8_t enable
Definition: hci.h:1663
uint16_t handle
Definition: hci.h:1662
uint16_t handle
Definition: hci.h:1676
uint8_t enable
Definition: hci.h:1677
uint16_t handle
Definition: hci.h:1087
uint8_t reason
Definition: hci.h:1088
uint16_t interval_min
Definition: hci.h:1073
uint16_t min_ce_len
Definition: hci.h:1077
uint16_t latency
Definition: hci.h:1075
uint16_t max_ce_len
Definition: hci.h:1078
uint16_t handle
Definition: hci.h:1072
uint16_t interval_max
Definition: hci.h:1074
uint16_t timeout
Definition: hci.h:1076
uint16_t max_pdu
Definition: hci.h:1926
uint8_t pto
Definition: hci.h:1932
uint8_t sdu_interval[3]
Definition: hci.h:1922
uint8_t bcode[16]
Definition: hci.h:1934
uint8_t nse
Definition: hci.h:1924
uint8_t packing
Definition: hci.h:1928
uint8_t encryption
Definition: hci.h:1933
uint16_t iso_interval
Definition: hci.h:1923
uint8_t irc
Definition: hci.h:1931
uint8_t num_bis
Definition: hci.h:1921
uint8_t phy
Definition: hci.h:1927
uint8_t bn
Definition: hci.h:1930
uint16_t max_sdu
Definition: hci.h:1925
uint8_t big_handle
Definition: hci.h:1919
uint8_t framing
Definition: hci.h:1929
uint8_t adv_handle
Definition: hci.h:1920
uint16_t max_sdu
Definition: hci.h:1907
uint8_t bcode[16]
Definition: hci.h:1914
uint16_t max_latency
Definition: hci.h:1908
uint8_t rtn
Definition: hci.h:1909
uint8_t sdu_interval[3]
Definition: hci.h:1906
uint8_t framing
Definition: hci.h:1912
uint8_t encryption
Definition: hci.h:1913
uint8_t phy
Definition: hci.h:1910
uint8_t adv_handle
Definition: hci.h:1904
uint8_t packing
Definition: hci.h:1911
uint8_t num_bis
Definition: hci.h:1905
uint8_t big_handle
Definition: hci.h:1903
struct bt_hci_cis cis[0]
Definition: hci.h:1872
uint8_t num_cis
Definition: hci.h:1871
uint16_t scan_interval
Definition: hci.h:930
uint8_t filter_policy
Definition: hci.h:932
uint16_t min_ce_len
Definition: hci.h:939
uint16_t conn_latency
Definition: hci.h:937
uint16_t max_ce_len
Definition: hci.h:940
uint8_t own_addr_type
Definition: hci.h:934
uint16_t conn_interval_min
Definition: hci.h:935
uint16_t conn_interval_max
Definition: hci.h:936
bt_addr_le_t peer_addr
Definition: hci.h:933
uint16_t scan_window
Definition: hci.h:931
uint16_t supervision_timeout
Definition: hci.h:938
uint16_t timeout
Definition: hci.h:1768
uint16_t skip
Definition: hci.h:1767
uint8_t mode
Definition: hci.h:1766
uint8_t cte_type
Definition: hci.h:1769
uint8_t key[16]
Definition: hci.h:996
uint8_t plaintext[16]
Definition: hci.h:997
uint8_t rx_ch
Definition: hci.h:1249
uint8_t mod_index
Definition: hci.h:1251
uint8_t phy
Definition: hci.h:1250
uint8_t tx_ch
Definition: hci.h:1261
uint8_t phy
Definition: hci.h:1264
uint8_t pkt_payload
Definition: hci.h:1263
uint8_t test_data_len
Definition: hci.h:1262
uint8_t filter_policy
Definition: hci.h:1453
uint8_t own_addr_type
Definition: hci.h:1454
bt_addr_le_t peer_addr
Definition: hci.h:1455
struct bt_hci_ext_conn_phy p[0]
Definition: hci.h:1457
uint8_t phys
Definition: hci.h:1456
uint8_t key_type
Definition: hci.h:1134
uint8_t key[64]
Definition: hci.h:1133
uint8_t key[64]
Definition: hci.h:1123
uint8_t payload_type
Definition: hci.h:2011
uint16_t handle
Definition: hci.h:2010
uint16_t handle
Definition: hci.h:2034
uint8_t payload_type
Definition: hci.h:2000
uint16_t handle
Definition: hci.h:1999
uint16_t handle
Definition: hci.h:1030
uint8_t ltk[16]
Definition: hci.h:1021
uint16_t handle
Definition: hci.h:1020
uint8_t cte_type
Definition: hci.h:1756
uint16_t skip
Definition: hci.h:1754
uint16_t conn_handle
Definition: hci.h:1752
uint8_t mode
Definition: hci.h:1753
uint16_t timeout
Definition: hci.h:1755
bt_addr_le_t addr
Definition: hci.h:1479
uint16_t sync_timeout
Definition: hci.h:1481
uint16_t skip
Definition: hci.h:1480
uint8_t cte_type
Definition: hci.h:1482
uint8_t sid
Definition: hci.h:1478
uint8_t options
Definition: hci.h:1477
uint16_t conn_handle
Definition: hci.h:1730
uint16_t service_data
Definition: hci.h:1731
uint8_t adv_handle
Definition: hci.h:1732
uint16_t service_data
Definition: hci.h:1719
uint16_t sync_handle
Definition: hci.h:1720
uint16_t conn_handle
Definition: hci.h:1718
uint16_t handle
Definition: hci.h:1489
uint16_t handle
Definition: hci.h:981
uint16_t handle
Definition: hci.h:2057
uint16_t handle
Definition: hci.h:1787
bt_addr_le_t peer_id_addr
Definition: hci.h:1169
bt_addr_le_t peer_id_addr
Definition: hci.h:1160
uint16_t handle
Definition: hci.h:1204
uint16_t handle
Definition: hci.h:991
uint16_t handle
Definition: hci.h:2021
uint16_t handle
Definition: hci.h:1892
uint8_t reason
Definition: hci.h:1893
bt_addr_le_t addr
Definition: hci.h:960
uint8_t sid
Definition: hci.h:1501
bt_addr_le_t addr
Definition: hci.h:1500
bt_addr_le_t peer_id_addr
Definition: hci.h:1147
uint8_t handle
Definition: hci.h:1371
uint8_t cig_id
Definition: hci.h:1877
uint8_t path_dir
Definition: hci.h:1989
uint16_t handle
Definition: hci.h:1988
uint16_t handle
Definition: hci.h:1967
uint8_t expected_cte_type
Definition: hci.h:1552
uint8_t slot_durations
Definition: hci.h:1553
uint8_t mod_index
Definition: hci.h:1550
uint8_t ant_ids[0]
Definition: hci.h:1555
uint8_t switch_pattern_len
Definition: hci.h:1554
uint8_t rx_ch
Definition: hci.h:1548
uint8_t expected_cte_len
Definition: hci.h:1551
uint8_t phy
Definition: hci.h:1549
uint8_t rx_ch
Definition: hci.h:1045
uint8_t enable
Definition: hci.h:1181
uint8_t len
Definition: hci.h:875
uint8_t data[31]
Definition: hci.h:876
uint8_t enable
Definition: hci.h:890
uint8_t channel_map
Definition: hci.h:863
uint16_t min_interval
Definition: hci.h:858
uint8_t filter_policy
Definition: hci.h:864
uint8_t type
Definition: hci.h:860
uint16_t max_interval
Definition: hci.h:859
bt_addr_le_t direct_addr
Definition: hci.h:862
uint8_t own_addr_type
Definition: hci.h:861
bt_addr_t bdaddr
Definition: hci.h:1270
uint8_t handle
Definition: hci.h:1269
uint8_t p_interval[3]
Definition: hci.h:1846
uint8_t cig_id
Definition: hci.h:1844
uint8_t sca
Definition: hci.h:1850
uint8_t c_ft
Definition: hci.h:1847
uint8_t framing
Definition: hci.h:1852
uint8_t num_cis
Definition: hci.h:1853
struct bt_hci_cis_params_test cis[0]
Definition: hci.h:1854
uint8_t packing
Definition: hci.h:1851
uint8_t c_interval[3]
Definition: hci.h:1845
uint16_t iso_interval
Definition: hci.h:1849
uint8_t p_ft
Definition: hci.h:1848
uint8_t c_interval[3]
Definition: hci.h:1811
uint8_t sca
Definition: hci.h:1813
uint8_t p_interval[3]
Definition: hci.h:1812
uint8_t packing
Definition: hci.h:1814
uint8_t cig_id
Definition: hci.h:1810
uint16_t p_latency
Definition: hci.h:1817
uint8_t framing
Definition: hci.h:1815
struct bt_hci_cis_params cis[0]
Definition: hci.h:1819
uint8_t num_cis
Definition: hci.h:1818
uint16_t c_latency
Definition: hci.h:1816
uint8_t max_sampled_cte
Definition: hci.h:1611
uint8_t switch_pattern_len
Definition: hci.h:1612
uint8_t ant_ids[0]
Definition: hci.h:1613
uint16_t sync_handle
Definition: hci.h:1608
uint8_t slot_durations
Definition: hci.h:1610
uint8_t sampling_enable
Definition: hci.h:1609
uint8_t cte_enable
Definition: hci.h:1596
uint8_t handle
Definition: hci.h:1595
uint8_t ant_ids[0]
Definition: hci.h:1590
uint8_t switch_pattern_len
Definition: hci.h:1589
uint8_t cte_type
Definition: hci.h:1587
uint8_t handle
Definition: hci.h:1585
uint8_t cte_len
Definition: hci.h:1586
uint8_t cte_count
Definition: hci.h:1588
uint8_t ant_ids[0]
Definition: hci.h:1627
uint8_t sampling_enable
Definition: hci.h:1624
uint8_t slot_durations
Definition: hci.h:1625
uint16_t handle
Definition: hci.h:1623
uint8_t switch_pattern_len
Definition: hci.h:1626
uint8_t switch_pattern_len
Definition: hci.h:1646
uint8_t cte_types
Definition: hci.h:1645
uint8_t ant_ids[0]
Definition: hci.h:1647
uint16_t handle
Definition: hci.h:1644
uint16_t tx_time
Definition: hci.h:1099
uint16_t handle
Definition: hci.h:1097
uint16_t tx_octets
Definition: hci.h:1098
uint8_t tx_phys
Definition: hci.h:1223
uint8_t rx_phys
Definition: hci.h:1224
uint8_t all_phys
Definition: hci.h:1222
uint8_t events[8]
Definition: hci.h:814
uint8_t data[0]
Definition: hci.h:1332
uint8_t handle
Definition: hci.h:1328
uint8_t op
Definition: hci.h:1329
uint8_t len
Definition: hci.h:1331
uint8_t frag_pref
Definition: hci.h:1330
struct bt_hci_ext_adv_set s[0]
Definition: hci.h:1354
uint8_t set_num
Definition: hci.h:1353
uint8_t enable
Definition: hci.h:1352
uint8_t prim_adv_phy
Definition: hci.h:1304
uint8_t prim_max_interval[3]
Definition: hci.h:1298
uint8_t filter_policy
Definition: hci.h:1302
uint8_t own_addr_type
Definition: hci.h:1300
uint16_t props
Definition: hci.h:1296
uint8_t sec_adv_max_skip
Definition: hci.h:1305
int8_t tx_power
Definition: hci.h:1303
uint8_t handle
Definition: hci.h:1295
bt_addr_le_t peer_addr
Definition: hci.h:1301
uint8_t prim_min_interval[3]
Definition: hci.h:1297
uint8_t sec_adv_phy
Definition: hci.h:1306
uint8_t prim_channel_map
Definition: hci.h:1299
uint8_t scan_req_notify_enable
Definition: hci.h:1308
uint8_t sid
Definition: hci.h:1307
uint8_t enable
Definition: hci.h:1434
uint8_t filter_dup
Definition: hci.h:1435
uint16_t period
Definition: hci.h:1437
uint16_t duration
Definition: hci.h:1436
uint8_t own_addr_type
Definition: hci.h:1423
uint8_t filter_policy
Definition: hci.h:1424
uint8_t phys
Definition: hci.h:1425
struct bt_hci_ext_scan_phy p[0]
Definition: hci.h:1426
uint8_t op
Definition: hci.h:1338
uint8_t len
Definition: hci.h:1340
uint8_t handle
Definition: hci.h:1337
uint8_t data[0]
Definition: hci.h:1341
uint8_t frag_pref
Definition: hci.h:1339
uint8_t ch_map[5]
Definition: hci.h:976
uint8_t bit_value
Definition: hci.h:2048
uint8_t bit_number
Definition: hci.h:2047
uint8_t handle
Definition: hci.h:1396
uint8_t op
Definition: hci.h:1397
uint8_t data[0]
Definition: hci.h:1399
uint8_t len
Definition: hci.h:1398
uint8_t handle
Definition: hci.h:1408
uint8_t enable
Definition: hci.h:1407
uint16_t max_interval
Definition: hci.h:1383
uint8_t handle
Definition: hci.h:1381
uint16_t props
Definition: hci.h:1384
uint16_t min_interval
Definition: hci.h:1382
uint16_t handle
Definition: hci.h:1712
uint8_t enable
Definition: hci.h:1713
uint8_t tx_phys
Definition: hci.h:1235
uint16_t phy_opts
Definition: hci.h:1237
uint8_t rx_phys
Definition: hci.h:1236
uint16_t handle
Definition: hci.h:1233
uint8_t all_phys
Definition: hci.h:1234
bt_addr_le_t id_addr
Definition: hci.h:1537
uint8_t mode
Definition: hci.h:1538
bt_addr_t bdaddr
Definition: hci.h:832
uint16_t rpa_timeout
Definition: hci.h:1186
uint8_t enable
Definition: hci.h:920
uint8_t filter_dup
Definition: hci.h:921
uint16_t window
Definition: hci.h:906
uint8_t addr_type
Definition: hci.h:907
uint8_t filter_policy
Definition: hci.h:908
uint8_t scan_type
Definition: hci.h:904
uint16_t interval
Definition: hci.h:905
uint8_t len
Definition: hci.h:881
uint8_t data[31]
Definition: hci.h:882
uint16_t handle
Definition: hci.h:1972
uint8_t codec_config_len
Definition: hci.h:1977
uint8_t controller_delay[3]
Definition: hci.h:1976
struct bt_hci_cp_codec_id codec_id
Definition: hci.h:1975
uint8_t path_id
Definition: hci.h:1974
uint8_t path_dir
Definition: hci.h:1973
uint8_t codec_config[0]
Definition: hci.h:1978
uint16_t handle
Definition: hci.h:1012
uint16_t ediv
Definition: hci.h:1014
uint8_t ltk[16]
Definition: hci.h:1015
uint64_t rand
Definition: hci.h:1013
uint8_t reason
Definition: hci.h:1940
uint8_t big_handle
Definition: hci.h:1939
uint8_t test_data_len
Definition: hci.h:1562
uint8_t switch_pattern_len
Definition: hci.h:1567
uint8_t cte_len
Definition: hci.h:1565
uint8_t tx_ch
Definition: hci.h:1561
uint8_t phy
Definition: hci.h:1564
uint8_t pkt_payload
Definition: hci.h:1563
uint8_t cte_type
Definition: hci.h:1566
uint8_t ant_ids[0]
Definition: hci.h:1568
int8_t tx_power
Definition: hci.h:2096
uint8_t switch_pattern_len
Definition: hci.h:2081
uint8_t tx_ch
Definition: hci.h:2075
uint8_t ant_ids[0]
Definition: hci.h:2082
uint8_t phy
Definition: hci.h:2078
uint8_t test_data_len
Definition: hci.h:2076
uint8_t cte_len
Definition: hci.h:2079
uint8_t pkt_payload
Definition: hci.h:2077
uint8_t cte_type
Definition: hci.h:2080
uint8_t test_data_len
Definition: hci.h:1060
uint8_t tx_ch
Definition: hci.h:1059
uint8_t pkt_payload
Definition: hci.h:1061
uint16_t max_tx_octets
Definition: hci.h:1115
uint16_t max_tx_time
Definition: hci.h:1116
int16_t rx_path_comp
Definition: hci.h:1529
int16_t tx_path_comp
Definition: hci.h:1528
bt_addr_t bdaddr
Definition: hci.h:383
uint8_t link_key[16]
Definition: hci.h:378
bt_addr_t bdaddr
Definition: hci.h:377
bt_addr_t bdaddr
Definition: hci.h:399
bt_addr_t bdaddr
Definition: hci.h:388
uint8_t pin_len
Definition: hci.h:389
uint8_t pin_code[16]
Definition: hci.h:390
uint16_t handle
Definition: hci.h:577
uint8_t direction
Definition: hci.h:760
uint8_t transport
Definition: hci.h:759
struct bt_hci_cp_codec_id codec_id
Definition: hci.h:758
struct bt_hci_cp_codec_id codec_id
Definition: hci.h:775
uint8_t direction
Definition: hci.h:777
uint8_t transport
Definition: hci.h:776
uint8_t codec_config[0]
Definition: hci.h:779
uint8_t codec_config_len
Definition: hci.h:778
uint16_t handle
Definition: hci.h:802
uint8_t page
Definition: hci.h:642
uint8_t page
Definition: hci.h:442
uint16_t handle
Definition: hci.h:441
uint16_t handle
Definition: hci.h:436
uint16_t handle
Definition: hci.h:447
uint8_t type
Definition: hci.h:514
uint16_t handle
Definition: hci.h:513
uint8_t reason
Definition: hci.h:372
bt_addr_t bdaddr
Definition: hci.h:371
bt_addr_t bdaddr
Definition: hci.h:427
bt_addr_t bdaddr
Definition: hci.h:419
uint16_t clock_offset
Definition: hci.h:422
uint8_t reserved
Definition: hci.h:421
uint8_t pscan_rep_mode
Definition: hci.h:420
uint16_t handle
Definition: hci.h:413
uint8_t encrypt
Definition: hci.h:414
uint8_t flow_enable
Definition: hci.h:527
uint8_t events_page_2[8]
Definition: hci.h:561
uint8_t events[8]
Definition: hci.h:487
uint32_t rx_bandwidth
Definition: hci.h:351
uint16_t content_format
Definition: hci.h:353
uint16_t max_latency
Definition: hci.h:352
uint8_t retrans_effort
Definition: hci.h:354
uint16_t pkt_type
Definition: hci.h:355
uint32_t tx_bandwidth
Definition: hci.h:350
uint16_t handle
Definition: hci.h:349
bt_addr_t bdaddr
Definition: hci.h:461
bt_addr_t bdaddr
Definition: hci.h:476
bt_addr_t bdaddr
Definition: hci.h:470
uint32_t passkey
Definition: hci.h:471
uint16_t auth_payload_timeout
Definition: hci.h:589
uint16_t handle
Definition: hci.h:588
uint8_t class_of_device[3]
Definition: hci.h:506
uint8_t mode
Definition: hci.h:551
uint8_t le
Definition: hci.h:566
uint8_t simul
Definition: hci.h:567
uint8_t sc_support
Definition: hci.h:572
uint8_t mode
Definition: hci.h:556
uint16_t handle
Definition: hci.h:2135
uint8_t status
Definition: hci.h:2134
uint16_t handle
Definition: hci.h:2334
uint8_t status
Definition: hci.h:2175
uint16_t opcode
Definition: hci.h:2171
uint8_t ncmd
Definition: hci.h:2170
uint16_t opcode
Definition: hci.h:2182
uint8_t ncmd
Definition: hci.h:2181
uint8_t status
Definition: hci.h:2180
uint8_t status
Definition: hci.h:2111
bt_addr_t bdaddr
Definition: hci.h:2113
uint8_t encr_enabled
Definition: hci.h:2115
uint16_t handle
Definition: hci.h:2112
uint8_t link_type
Definition: hci.h:2114
bt_addr_t bdaddr
Definition: hci.h:2120
uint8_t dev_class[3]
Definition: hci.h:2121
uint8_t link_type
Definition: hci.h:2122
uint8_t link_type
Definition: hci.h:2238
uint8_t reason
Definition: hci.h:2129
uint16_t handle
Definition: hci.h:2128
uint8_t status
Definition: hci.h:2127
uint8_t encrypt
Definition: hci.h:2149
uint16_t handle
Definition: hci.h:2148
uint8_t status
Definition: hci.h:2147
uint16_t handle
Definition: hci.h:2288
uint8_t status
Definition: hci.h:2287
uint8_t eir[240]
Definition: hci.h:2282
int8_t rssi
Definition: hci.h:2281
uint16_t clock_offset
Definition: hci.h:2280
uint8_t num_reports
Definition: hci.h:2275
bt_addr_t addr
Definition: hci.h:2276
uint8_t cod[3]
Definition: hci.h:2279
uint8_t reserved
Definition: hci.h:2278
uint8_t pscan_rep_mode
Definition: hci.h:2277
uint8_t hardware_code
Definition: hci.h:2187
uint8_t len
Definition: hci.h:38
uint8_t evt
Definition: hci.h:37
uint8_t status
Definition: hci.h:2106
bt_addr_t bdaddr
Definition: hci.h:2293
uint8_t authentication
Definition: hci.h:2301
uint8_t capability
Definition: hci.h:2299
uint8_t oob_data
Definition: hci.h:2300
bt_addr_t bdaddr
Definition: hci.h:2298
uint8_t num_completed_ext_adv_evts
Definition: hci.h:2518
uint8_t status
Definition: hci.h:2515
uint16_t conn_handle
Definition: hci.h:2517
uint8_t adv_handle
Definition: hci.h:2516
uint8_t length
Definition: hci.h:2358
bt_addr_le_t addr
Definition: hci.h:2357
uint8_t evt_type
Definition: hci.h:2356
uint8_t data[0]
Definition: hci.h:2359
struct bt_hci_evt_le_advertising_info adv_info[0]
Definition: hci.h:2363
uint8_t num_reports
Definition: hci.h:2362
uint8_t irc
Definition: hci.h:2644
uint16_t iso_interval
Definition: hci.h:2646
uint8_t big_handle
Definition: hci.h:2637
uint8_t bn
Definition: hci.h:2642
uint8_t latency[3]
Definition: hci.h:2639
uint8_t sync_delay[3]
Definition: hci.h:2638
uint8_t pto
Definition: hci.h:2643
uint16_t max_pdu
Definition: hci.h:2645
uint8_t num_bis
Definition: hci.h:2647
uint8_t phy
Definition: hci.h:2640
uint8_t status
Definition: hci.h:2636
uint8_t nse
Definition: hci.h:2641
uint16_t handle[0]
Definition: hci.h:2648
uint16_t max_pdu
Definition: hci.h:2666
uint8_t num_bis
Definition: hci.h:2668
uint8_t big_handle
Definition: hci.h:2660
uint8_t nse
Definition: hci.h:2662
uint8_t bn
Definition: hci.h:2663
uint16_t handle[0]
Definition: hci.h:2669
uint16_t iso_interval
Definition: hci.h:2667
uint8_t pto
Definition: hci.h:2664
uint8_t status
Definition: hci.h:2659
uint8_t latency[3]
Definition: hci.h:2661
uint8_t irc
Definition: hci.h:2665
uint8_t reason
Definition: hci.h:2675
uint8_t big_handle
Definition: hci.h:2674
uint8_t reason
Definition: hci.h:2654
uint8_t big_handle
Definition: hci.h:2653
uint16_t max_sdu
Definition: hci.h:2696
uint16_t max_pdu
Definition: hci.h:2694
uint8_t phy
Definition: hci.h:2697
uint8_t sdu_interval[3]
Definition: hci.h:2695
uint16_t sync_handle
Definition: hci.h:2687
uint8_t irc
Definition: hci.h:2693
uint8_t framing
Definition: hci.h:2698
uint8_t bn
Definition: hci.h:2691
uint8_t nse
Definition: hci.h:2689
uint8_t encryption
Definition: hci.h:2699
uint8_t num_bis
Definition: hci.h:2688
uint16_t iso_interval
Definition: hci.h:2690
uint8_t pto
Definition: hci.h:2692
uint16_t handle
Definition: hci.h:2532
uint8_t chan_sel_algo
Definition: hci.h:2533
uint16_t interval
Definition: hci.h:2623
uint8_t p_ft
Definition: hci.h:2620
uint8_t p_phy
Definition: hci.h:2615
uint8_t status
Definition: hci.h:2608
uint8_t c_phy
Definition: hci.h:2614
uint8_t nse
Definition: hci.h:2616
uint8_t c_latency[3]
Definition: hci.h:2612
uint16_t conn_handle
Definition: hci.h:2609
uint8_t c_bn
Definition: hci.h:2617
uint8_t cig_sync_delay[3]
Definition: hci.h:2610
uint8_t p_bn
Definition: hci.h:2618
uint8_t c_ft
Definition: hci.h:2619
uint8_t cis_sync_delay[3]
Definition: hci.h:2611
uint16_t p_max_pdu
Definition: hci.h:2622
uint16_t c_max_pdu
Definition: hci.h:2621
uint8_t p_latency[3]
Definition: hci.h:2613
uint8_t cis_id
Definition: hci.h:2631
uint8_t cig_id
Definition: hci.h:2630
uint16_t cis_handle
Definition: hci.h:2629
uint16_t acl_handle
Definition: hci.h:2628
uint8_t clock_accuracy
Definition: hci.h:2349
uint16_t supv_timeout
Definition: hci.h:2348
uint16_t handle
Definition: hci.h:2343
uint8_t role
Definition: hci.h:2344
uint8_t status
Definition: hci.h:2342
bt_addr_le_t peer_addr
Definition: hci.h:2345
uint16_t latency
Definition: hci.h:2347
uint16_t interval
Definition: hci.h:2346
uint16_t interval_max
Definition: hci.h:2393
uint16_t handle
Definition: hci.h:2391
uint16_t interval_min
Definition: hci.h:2392
uint16_t latency
Definition: hci.h:2394
uint16_t timeout
Definition: hci.h:2395
uint16_t interval
Definition: hci.h:2370
uint16_t handle
Definition: hci.h:2369
uint16_t supv_timeout
Definition: hci.h:2372
uint8_t status
Definition: hci.h:2368
uint16_t latency
Definition: hci.h:2371
uint8_t cte_type
Definition: hci.h:2572
uint8_t rssi_ant_id
Definition: hci.h:2571
uint16_t conn_evt_counter
Definition: hci.h:2575
uint16_t conn_handle
Definition: hci.h:2567
int16_t rssi
Definition: hci.h:2570
struct bt_hci_le_iq_sample sample[0]
Definition: hci.h:2577
uint8_t slot_durations
Definition: hci.h:2573
uint8_t sample_count
Definition: hci.h:2576
uint8_t rx_phy
Definition: hci.h:2568
uint8_t data_chan_idx
Definition: hci.h:2569
uint8_t packet_status
Definition: hci.h:2574
int16_t rssi
Definition: hci.h:2555
struct bt_hci_le_iq_sample sample[0]
Definition: hci.h:2562
uint16_t sync_handle
Definition: hci.h:2553
uint8_t sample_count
Definition: hci.h:2561
uint8_t cte_type
Definition: hci.h:2557
uint8_t slot_durations
Definition: hci.h:2558
uint8_t packet_status
Definition: hci.h:2559
uint16_t per_evt_counter
Definition: hci.h:2560
uint8_t chan_idx
Definition: hci.h:2554
uint8_t rssi_ant_id
Definition: hci.h:2556
uint8_t status
Definition: hci.h:2589
uint16_t conn_handle
Definition: hci.h:2590
uint16_t max_rx_octets
Definition: hci.h:2403
uint16_t handle
Definition: hci.h:2400
uint16_t max_tx_time
Definition: hci.h:2402
uint16_t max_rx_time
Definition: hci.h:2404
uint16_t max_tx_octets
Definition: hci.h:2401
int8_t rssi
Definition: hci.h:2438
bt_addr_le_t addr
Definition: hci.h:2436
bt_addr_le_t dir_addr
Definition: hci.h:2437
uint8_t evt_type
Definition: hci.h:2435
struct bt_hci_evt_le_direct_adv_info direct_adv_info[0]
Definition: hci.h:2442
uint8_t num_reports
Definition: hci.h:2441
uint16_t handle
Definition: hci.h:2422
bt_addr_le_t peer_addr
Definition: hci.h:2424
bt_addr_t peer_rpa
Definition: hci.h:2426
uint8_t clock_accuracy
Definition: hci.h:2430
uint16_t latency
Definition: hci.h:2428
uint16_t supv_timeout
Definition: hci.h:2429
bt_addr_t local_rpa
Definition: hci.h:2425
uint16_t interval
Definition: hci.h:2427
uint8_t status
Definition: hci.h:2421
uint8_t role
Definition: hci.h:2423
uint16_t evt_type
Definition: hci.h:2467
uint8_t prim_phy
Definition: hci.h:2469
uint8_t length
Definition: hci.h:2476
bt_addr_le_t direct_addr
Definition: hci.h:2475
int8_t tx_power
Definition: hci.h:2472
uint8_t sid
Definition: hci.h:2471
int8_t rssi
Definition: hci.h:2473
uint16_t interval
Definition: hci.h:2474
uint8_t data[0]
Definition: hci.h:2477
bt_addr_le_t addr
Definition: hci.h:2468
uint8_t sec_phy
Definition: hci.h:2470
uint8_t num_reports
Definition: hci.h:2480
struct bt_hci_evt_le_ext_advertising_info adv_info[0]
Definition: hci.h:2481
uint8_t status
Definition: hci.h:2415
uint8_t dhkey[32]
Definition: hci.h:2416
uint16_t ediv
Definition: hci.h:2386
uint64_t rand
Definition: hci.h:2385
uint16_t handle
Definition: hci.h:2384
uint8_t status
Definition: hci.h:2409
uint8_t key[64]
Definition: hci.h:2410
uint8_t clock_accuracy
Definition: hci.h:2603
uint8_t adv_sid
Definition: hci.h:2599
uint8_t status
Definition: hci.h:2595
uint16_t conn_handle
Definition: hci.h:2596
uint16_t sync_handle
Definition: hci.h:2598
bt_addr_le_t addr
Definition: hci.h:2600
uint16_t interval
Definition: hci.h:2602
uint16_t service_data
Definition: hci.h:2597
uint8_t phy
Definition: hci.h:2601
uint16_t handle
Definition: hci.h:2487
uint16_t interval
Definition: hci.h:2491
uint8_t status
Definition: hci.h:2486
uint8_t sid
Definition: hci.h:2488
uint8_t phy
Definition: hci.h:2490
bt_addr_le_t adv_addr
Definition: hci.h:2489
uint8_t clock_accuracy
Definition: hci.h:2492
uint16_t handle
Definition: hci.h:2508
uint8_t length
Definition: hci.h:2502
uint8_t data[0]
Definition: hci.h:2503
int8_t tx_power
Definition: hci.h:2498
uint8_t cte_type
Definition: hci.h:2500
uint8_t data_status
Definition: hci.h:2501
uint16_t handle
Definition: hci.h:2497
int8_t rssi
Definition: hci.h:2499
uint16_t handle
Definition: hci.h:2448
uint8_t status
Definition: hci.h:2447
uint8_t tx_phy
Definition: hci.h:2449
uint8_t rx_phy
Definition: hci.h:2450
uint8_t features[8]
Definition: hci.h:2379
uint8_t status
Definition: hci.h:2377
uint16_t handle
Definition: hci.h:2378
uint8_t status
Definition: hci.h:2680
uint8_t sca
Definition: hci.h:2682
uint16_t handle
Definition: hci.h:2681
uint8_t handle
Definition: hci.h:2523
bt_addr_le_t addr
Definition: hci.h:2524
bt_addr_t bdaddr
Definition: hci.h:2226
uint8_t link_key[16]
Definition: hci.h:2227
uint8_t key_type
Definition: hci.h:2228
bt_addr_t bdaddr
Definition: hci.h:2210
uint8_t num_handles
Definition: hci.h:2199
struct bt_hci_handle_count h[0]
Definition: hci.h:2200
bt_addr_t bdaddr
Definition: hci.h:2205
uint16_t handle
Definition: hci.h:2254
uint8_t features[8]
Definition: hci.h:2257
uint8_t status
Definition: hci.h:2253
uint8_t page
Definition: hci.h:2255
uint8_t max_page
Definition: hci.h:2256
uint8_t status
Definition: hci.h:2154
uint8_t features[8]
Definition: hci.h:2156
uint16_t handle
Definition: hci.h:2155
bt_addr_t bdaddr
Definition: hci.h:2141
uint8_t name[248]
Definition: hci.h:2142
uint8_t status
Definition: hci.h:2140
uint16_t subversion
Definition: hci.h:2165
uint16_t handle
Definition: hci.h:2162
uint8_t status
Definition: hci.h:2161
uint8_t version
Definition: hci.h:2163
uint16_t manufacturer
Definition: hci.h:2164
bt_addr_t bdaddr
Definition: hci.h:2193
uint8_t role
Definition: hci.h:2194
uint8_t status
Definition: hci.h:2192
uint8_t status
Definition: hci.h:2317
bt_addr_t bdaddr
Definition: hci.h:2318
uint8_t tx_interval
Definition: hci.h:2266
uint8_t air_mode
Definition: hci.h:2270
uint8_t retansmission_window
Definition: hci.h:2267
uint16_t rx_pkt_length
Definition: hci.h:2268
bt_addr_t bdaddr
Definition: hci.h:2264
uint16_t handle
Definition: hci.h:2263
uint8_t link_type
Definition: hci.h:2265
uint16_t tx_pkt_length
Definition: hci.h:2269
uint8_t status
Definition: hci.h:2262
bt_addr_t bdaddr
Definition: hci.h:2306
uint32_t passkey
Definition: hci.h:2307
uint32_t passkey
Definition: hci.h:2324
bt_addr_t bdaddr
Definition: hci.h:2323
bt_addr_t bdaddr
Definition: hci.h:2312
uint8_t max_ext_adv_evts
Definition: hci.h:1348
uint8_t handle
Definition: hci.h:1346
uint16_t duration
Definition: hci.h:1347
uint16_t max_ce_len
Definition: hci.h:1449
uint16_t scan_interval
Definition: hci.h:1442
uint16_t conn_interval_max
Definition: hci.h:1445
uint16_t conn_latency
Definition: hci.h:1446
uint16_t conn_interval_min
Definition: hci.h:1444
uint16_t supervision_timeout
Definition: hci.h:1447
uint16_t scan_window
Definition: hci.h:1443
uint16_t min_ce_len
Definition: hci.h:1448
uint16_t interval
Definition: hci.h:1414
uint8_t type
Definition: hci.h:1413
uint16_t window
Definition: hci.h:1415
uint16_t count
Definition: hci.h:540
uint16_t handle
Definition: hci.h:539
uint16_t sn
Definition: hci.h:88
uint16_t slen
Definition: hci.h:89
uint16_t len
Definition: hci.h:101
uint16_t handle
Definition: hci.h:100
uint32_t ts
Definition: hci.h:94
struct bt_hci_iso_data_hdr data
Definition: hci.h:95
int8_t q
Definition: hci.h:2549
int8_t i
Definition: hci.h:2548
uint8_t lap[3]
Definition: hci.h:309
uint8_t num_rsp
Definition: hci.h:311
uint8_t length
Definition: hci.h:310
uint8_t status
Definition: hci.h:337
bt_addr_t bdaddr
Definition: hci.h:338
uint8_t big_handle
Definition: hci.h:1962
uint8_t status
Definition: hci.h:1961
uint8_t status
Definition: hci.h:1670
uint16_t handle
Definition: hci.h:1671
uint8_t status
Definition: hci.h:1681
uint16_t handle
Definition: hci.h:1682
uint8_t status
Definition: hci.h:1091
uint16_t handle
Definition: hci.h:1092
uint8_t status
Definition: hci.h:1081
uint16_t handle
Definition: hci.h:1082
uint8_t status
Definition: hci.h:1773
uint8_t enc_data[16]
Definition: hci.h:1001
uint8_t status
Definition: hci.h:1000
uint8_t status
Definition: hci.h:2015
uint16_t handle
Definition: hci.h:2016
uint32_t missed_cnt
Definition: hci.h:2041
uint8_t status
Definition: hci.h:2038
uint16_t handle
Definition: hci.h:2039
uint32_t received_cnt
Definition: hci.h:2040
uint32_t failed_cnt
Definition: hci.h:2042
uint8_t status
Definition: hci.h:2004
uint16_t handle
Definition: hci.h:2005
uint8_t status
Definition: hci.h:1033
uint16_t handle
Definition: hci.h:1034
uint16_t handle
Definition: hci.h:1025
uint8_t status
Definition: hci.h:1024
uint8_t status
Definition: hci.h:1760
uint16_t conn_handle
Definition: hci.h:1761
uint16_t conn_handle
Definition: hci.h:1737
uint8_t status
Definition: hci.h:1736
uint16_t conn_handle
Definition: hci.h:1725
uint8_t status
Definition: hci.h:1724
uint8_t rand[8]
Definition: hci.h:1007
uint8_t status
Definition: hci.h:1006
uint8_t num_ant
Definition: hci.h:1702
uint8_t switch_sample_rates
Definition: hci.h:1701
uint8_t max_cte_len
Definition: hci.h:1704
uint8_t status
Definition: hci.h:1700
uint8_t max_switch_pattern_len
Definition: hci.h:1703
uint8_t acl_max_num
Definition: hci.h:1780
uint8_t status
Definition: hci.h:1778
uint16_t iso_max_len
Definition: hci.h:1781
uint8_t iso_max_num
Definition: hci.h:1782
uint16_t acl_max_len
Definition: hci.h:1779
uint8_t le_max_num
Definition: hci.h:821
uint16_t le_max_len
Definition: hci.h:820
uint8_t status
Definition: hci.h:819
uint8_t ch_map[5]
Definition: hci.h:986
uint8_t status
Definition: hci.h:984
uint16_t handle
Definition: hci.h:985
uint8_t status
Definition: hci.h:869
int8_t tx_power_level
Definition: hci.h:870
uint16_t max_tx_octets
Definition: hci.h:1109
uint8_t status
Definition: hci.h:1108
uint16_t max_tx_time
Definition: hci.h:1110
uint8_t status
Definition: hci.h:947
uint8_t fal_size
Definition: hci.h:948
uint32_t tx_last_subevent_packets
Definition: hci.h:2065
uint32_t tx_flushed_packets
Definition: hci.h:2064
uint32_t crc_error_packets
Definition: hci.h:2067
uint32_t duplicate_packets
Definition: hci.h:2069
uint32_t rx_unreceived_packets
Definition: hci.h:2068
uint32_t retransmitted_packets
Definition: hci.h:2066
uint16_t handle
Definition: hci.h:2062
uint32_t tx_unacked_packets
Definition: hci.h:2063
uint8_t status
Definition: hci.h:2061
uint8_t status
Definition: hci.h:1791
uint8_t offset[3]
Definition: hci.h:1795
uint32_t timestamp
Definition: hci.h:1794
uint16_t handle
Definition: hci.h:1792
uint16_t seq
Definition: hci.h:1793
uint8_t status
Definition: hci.h:826
uint8_t features[8]
Definition: hci.h:827
uint8_t status
Definition: hci.h:1172
bt_addr_t local_rpa
Definition: hci.h:1173
uint8_t status
Definition: hci.h:1359
uint16_t max_adv_data_len
Definition: hci.h:1360
uint16_t max_tx_octets
Definition: hci.h:1192
uint8_t status
Definition: hci.h:1191
uint16_t max_tx_time
Definition: hci.h:1193
uint16_t max_rx_octets
Definition: hci.h:1194
uint16_t max_rx_time
Definition: hci.h:1195
uint8_t status
Definition: hci.h:1365
uint8_t num_sets
Definition: hci.h:1366
bt_addr_t peer_rpa
Definition: hci.h:1164
uint8_t status
Definition: hci.h:1163
uint8_t status
Definition: hci.h:1508
uint8_t list_size
Definition: hci.h:1509
uint8_t rx_phy
Definition: hci.h:1210
uint8_t tx_phy
Definition: hci.h:1209
uint8_t status
Definition: hci.h:1207
uint16_t handle
Definition: hci.h:1208
int16_t rx_path_comp
Definition: hci.h:1523
int16_t tx_path_comp
Definition: hci.h:1522
uint8_t status
Definition: hci.h:1521
uint8_t rl_size
Definition: hci.h:1155
uint8_t status
Definition: hci.h:1154
uint8_t le_states[8]
Definition: hci.h:1040
uint8_t status
Definition: hci.h:1039
uint16_t handle
Definition: hci.h:2026
uint32_t received_cnt
Definition: hci.h:2027
uint8_t status
Definition: hci.h:2025
uint32_t missed_cnt
Definition: hci.h:2028
uint32_t failed_cnt
Definition: hci.h:2029
int8_t max_tx_power
Definition: hci.h:1516
int8_t min_tx_power
Definition: hci.h:1515
uint8_t status
Definition: hci.h:1514
uint16_t handle
Definition: hci.h:1898
uint8_t status
Definition: hci.h:1897
uint8_t status
Definition: hci.h:1881
uint8_t cig_id
Definition: hci.h:1882
uint8_t status
Definition: hci.h:1993
uint16_t handle
Definition: hci.h:1994
uint16_t handle[0]
Definition: hci.h:1861
uint8_t num_handles
Definition: hci.h:1860
uint8_t cig_id
Definition: hci.h:1859
uint8_t status
Definition: hci.h:1858
uint16_t handle[0]
Definition: hci.h:1826
uint8_t status
Definition: hci.h:1823
uint8_t num_handles
Definition: hci.h:1825
uint8_t cig_id
Definition: hci.h:1824
uint16_t sync_handle
Definition: hci.h:1618
uint8_t status
Definition: hci.h:1617
uint16_t handle
Definition: hci.h:1632
uint8_t status
Definition: hci.h:1631
uint8_t status
Definition: hci.h:1651
uint16_t handle
Definition: hci.h:1652
uint16_t handle
Definition: hci.h:1103
uint8_t status
Definition: hci.h:1102
uint8_t status
Definition: hci.h:1311
int8_t tx_power
Definition: hci.h:1312
uint8_t status
Definition: hci.h:2052
uint16_t handle
Definition: hci.h:1983
uint8_t status
Definition: hci.h:1982
uint8_t status
Definition: hci.h:1066
uint16_t rx_pkt_count
Definition: hci.h:1067
uint8_t status
Definition: hci.h:402
bt_addr_t bdaddr
Definition: hci.h:403
uint8_t status
Definition: hci.h:393
bt_addr_t bdaddr
Definition: hci.h:394
uint8_t status
Definition: hci.h:581
uint16_t auth_payload_timeout
Definition: hci.h:583
uint16_t handle
Definition: hci.h:582
uint8_t status
Definition: hci.h:668
bt_addr_t bdaddr
Definition: hci.h:669
uint8_t status
Definition: hci.h:659
uint8_t sco_max_len
Definition: hci.h:661
uint16_t acl_max_num
Definition: hci.h:662
uint16_t acl_max_len
Definition: hci.h:660
uint16_t sco_max_num
Definition: hci.h:663
uint8_t num_capabilities
Definition: hci.h:768
uint8_t status
Definition: hci.h:767
uint8_t capabilities[0]
Definition: hci.h:770
uint8_t codecs[0]
Definition: hci.h:747
uint8_t status
Definition: hci.h:745
uint8_t status
Definition: hci.h:721
uint8_t codecs[0]
Definition: hci.h:723
uint8_t status
Definition: hci.h:782
uint8_t max_ctlr_delay[3]
Definition: hci.h:784
uint8_t min_ctlr_delay[3]
Definition: hci.h:783
uint8_t status
Definition: hci.h:805
uint16_t handle
Definition: hci.h:806
uint8_t key_size
Definition: hci.h:807
uint8_t max_page
Definition: hci.h:647
uint8_t ext_features[8]
Definition: hci.h:648
uint8_t page
Definition: hci.h:646
uint8_t status
Definition: hci.h:645
uint8_t status
Definition: hci.h:653
uint8_t features[8]
Definition: hci.h:654
uint16_t hci_revision
Definition: hci.h:628
uint8_t hci_version
Definition: hci.h:627
uint16_t lmp_subversion
Definition: hci.h:631
uint8_t lmp_version
Definition: hci.h:629
uint16_t manufacturer
Definition: hci.h:630
uint8_t status
Definition: hci.h:626
uint8_t status
Definition: hci.h:636
uint8_t commands[64]
Definition: hci.h:637
int8_t tx_power_level
Definition: hci.h:520
uint16_t handle
Definition: hci.h:519
uint8_t status
Definition: hci.h:518
bt_addr_t bdaddr
Definition: hci.h:431
uint8_t status
Definition: hci.h:430
bt_addr_t bdaddr
Definition: hci.h:465
uint8_t status
Definition: hci.h:464
uint16_t handle
Definition: hci.h:594
uint8_t status
Definition: hci.h:593
uint8_t codec_id
Definition: hci.h:728
uint8_t transports
Definition: hci.h:729
uint8_t codec_id
Definition: hci.h:706
struct bt_hci_std_codec_info_v2 codec_info[0]
Definition: hci.h:733
uint8_t num_codecs
Definition: hci.h:732
struct bt_hci_std_codec_info codec_info[0]
Definition: hci.h:710
uint8_t num_codecs
Definition: hci.h:709
uint16_t company_id
Definition: hci.h:736
uint8_t transports
Definition: hci.h:738
uint16_t codec_id
Definition: hci.h:737
uint16_t codec_id
Definition: hci.h:714
uint16_t company_id
Definition: hci.h:713
struct bt_hci_vs_codec_info_v2 codec_info[0]
Definition: hci.h:742
uint8_t num_codecs
Definition: hci.h:741
uint8_t num_codecs
Definition: hci.h:717
struct bt_hci_vs_codec_info codec_info[0]
Definition: hci.h:718
uint8_t local_name[248]
Definition: hci.h:494
uint16_t min_ce_len
Definition: hci.h:970
uint16_t max_ce_len
Definition: hci.h:971
uint16_t handle
Definition: hci.h:965
uint16_t conn_latency
Definition: hci.h:968
uint16_t conn_interval_max
Definition: hci.h:967
uint16_t supervision_timeout
Definition: hci.h:969
uint16_t conn_interval_min
Definition: hci.h:966
Simple network buffer representation.
Definition: buf.h:83
Network buffer representation.
Definition: buf.h:915
uint16_t len
Definition: buf.h:946