9#ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_VS_H_
10#define ZEPHYR_INCLUDE_BLUETOOTH_HCI_VS_H_
23#define BT_VS_CMD_BIT_VERSION 0
24#define BT_VS_CMD_BIT_SUP_CMD 1
25#define BT_VS_CMD_BIT_SUP_FEAT 2
26#define BT_VS_CMD_BIT_SET_EVT_MASK 3
27#define BT_VS_CMD_BIT_RESET 4
28#define BT_VS_CMD_BIT_WRITE_BDADDR 5
29#define BT_VS_CMD_BIT_SET_TRACE_ENABLE 6
30#define BT_VS_CMD_BIT_READ_BUILD_INFO 7
31#define BT_VS_CMD_BIT_READ_STATIC_ADDRS 8
32#define BT_VS_CMD_BIT_READ_KEY_ROOTS 9
33#define BT_VS_CMD_BIT_READ_CHIP_TEMP 10
34#define BT_VS_CMD_BIT_READ_HOST_STACK_CMD 11
35#define BT_VS_CMD_BIT_SET_SCAN_REP_ENABLE 12
36#define BT_VS_CMD_BIT_WRITE_TX_POWER 13
37#define BT_VS_CMD_BIT_READ_TX_POWER 14
39#define BT_VS_CMD_SUP_FEAT(cmd) BT_LE_FEAT_TEST(cmd, \
40 BT_VS_CMD_BIT_SUP_FEAT)
42#define BT_VS_CMD_WRITE_BD_ADDR(cmd) BT_LE_FEAT_TEST(cmd, \
43 BT_VS_CMD_BIT_WRITE_BDADDR)
44#define BT_VS_CMD_READ_STATIC_ADDRS(cmd) BT_LE_FEAT_TEST(cmd, \
45 BT_VS_CMD_BIT_READ_STATIC_ADDRS)
46#define BT_VS_CMD_READ_KEY_ROOTS(cmd) BT_LE_FEAT_TEST(cmd, \
47 BT_VS_CMD_BIT_READ_KEY_ROOTS)
49#define BT_HCI_VS_HW_PLAT_INTEL 0x0001
50#define BT_HCI_VS_HW_PLAT_NORDIC 0x0002
51#define BT_HCI_VS_HW_PLAT_NXP 0x0003
52#define BT_HCI_VS_HW_PLAT_ESPRESSIF 0x0004
54#define BT_HCI_VS_HW_VAR_NORDIC_NRF51X 0x0001
55#define BT_HCI_VS_HW_VAR_NORDIC_NRF52X 0x0002
56#define BT_HCI_VS_HW_VAR_NORDIC_NRF53X 0x0003
57#define BT_HCI_VS_HW_VAR_NORDIC_NRF54HX 0x0004
58#define BT_HCI_VS_HW_VAR_NORDIC_NRF54LX 0x0005
59#define BT_HCI_VS_HW_VAR_NORDIC_NRF71X 0x0006
61#define BT_HCI_VS_HW_VAR_ESP32 0x0001
62#define BT_HCI_VS_HW_VAR_ESP32S3 0x0002
63#define BT_HCI_VS_HW_VAR_ESP32C2 0x0003
64#define BT_HCI_VS_HW_VAR_ESP32C3 0x0004
65#define BT_HCI_VS_HW_VAR_ESP32C6 0x0005
66#define BT_HCI_VS_HW_VAR_ESP32H2 0x0006
67#define BT_HCI_VS_HW_VAR_ESP32C5 0x0007
68#define BT_HCI_VS_HW_VAR_ESP32C61 0x0008
70#define BT_HCI_VS_FW_VAR_STANDARD_CTLR 0x0000
71#define BT_HCI_VS_FW_VAR_VS_CTLR 0x0001
72#define BT_HCI_VS_FW_VAR_FW_LOADER 0x0002
73#define BT_HCI_VS_FW_VAR_RESCUE_IMG 0x0003
74#define BT_HCI_OP_VS_READ_VERSION_INFO BT_OP(BT_OGF_VS, 0x0001)
85#define BT_HCI_OP_VS_READ_SUPPORTED_COMMANDS BT_OP(BT_OGF_VS, 0x0002)
91#define BT_HCI_OP_VS_READ_SUPPORTED_FEATURES BT_OP(BT_OGF_VS, 0x0003)
97#define BT_HCI_OP_VS_SET_EVENT_MASK BT_OP(BT_OGF_VS, 0x0004)
102#define BT_HCI_VS_RESET_SOFT 0x00
103#define BT_HCI_VS_RESET_HARD 0x01
104#define BT_HCI_OP_VS_RESET BT_OP(BT_OGF_VS, 0x0005)
109#define BT_HCI_OP_VS_WRITE_BD_ADDR BT_OP(BT_OGF_VS, 0x0006)
114#define BT_HCI_VS_TRACE_DISABLED 0x00
115#define BT_HCI_VS_TRACE_ENABLED 0x01
117#define BT_HCI_VS_TRACE_HCI_EVTS 0x00
118#define BT_HCI_VS_TRACE_VDC 0x01
119#define BT_HCI_OP_VS_SET_TRACE_ENABLE BT_OP(BT_OGF_VS, 0x0007)
125#define BT_HCI_OP_VS_READ_BUILD_INFO BT_OP(BT_OGF_VS, 0x0008)
136#define BT_HCI_OP_VS_READ_STATIC_ADDRS BT_OP(BT_OGF_VS, 0x0009)
143#define BT_HCI_OP_VS_READ_KEY_HIERARCHY_ROOTS BT_OP(BT_OGF_VS, 0x000a)
150#define BT_HCI_OP_VS_READ_CHIP_TEMP BT_OP(BT_OGF_VS, 0x000b)
161#define BT_HCI_VS_VID_ANDROID 0x0001
162#define BT_HCI_VS_VID_MICROSOFT 0x0002
163#define BT_HCI_OP_VS_READ_HOST_STACK_CMDS BT_OP(BT_OGF_VS, 0x000c)
170#define BT_HCI_VS_SCAN_REQ_REPORTS_DISABLED 0x00
171#define BT_HCI_VS_SCAN_REQ_REPORTS_ENABLED 0x01
172#define BT_HCI_OP_VS_SET_SCAN_REQ_REPORTS BT_OP(BT_OGF_VS, 0x000d)
177#define BT_HCI_VS_LL_HANDLE_TYPE_ADV 0x00
178#define BT_HCI_VS_LL_HANDLE_TYPE_SCAN 0x01
179#define BT_HCI_VS_LL_HANDLE_TYPE_CONN 0x02
180#define BT_HCI_VS_LL_TX_POWER_LEVEL_NO_PREF 0x7F
181#define BT_HCI_OP_VS_WRITE_TX_POWER_LEVEL BT_OP(BT_OGF_VS, 0x000e)
195#define BT_HCI_OP_VS_READ_TX_POWER_LEVEL BT_OP(BT_OGF_VS, 0x000f)
208#define BT_HCI_OP_VS_READ_USB_TRANSPORT_MODE BT_OP(BT_OGF_VS, 0x0010)
216#define BT_HCI_VS_USB_H2_MODE 0x00
217#define BT_HCI_VS_USB_H4_MODE 0x01
219#define BT_HCI_OP_VS_SET_USB_TRANSPORT_MODE BT_OP(BT_OGF_VS, 0x0011)
225#define BT_HCI_OP_VS_SET_MIN_NUM_USED_CHANS BT_OP(BT_OGF_VS, 0x0012)
239#define BT_HCI_EVT_VS_ERROR_DATA_TYPE_STACK_FRAME 0x01
240#define BT_HCI_EVT_VS_ERROR_DATA_TYPE_CTRL_ASSERT 0x02
241#define BT_HCI_EVT_VS_ERROR_DATA_TYPE_TRACE 0x03
253#define BT_HCI_EVT_VS_ERROR_CPU_TYPE_CORTEX_M 0x01
270#define BT_HCI_VS_TRACE_LMP_TX 0x01
271#define BT_HCI_VS_TRACE_LMP_RX 0x02
272#define BT_HCI_VS_TRACE_LLCP_TX 0x03
273#define BT_HCI_VS_TRACE_LLCP_RX 0x04
274#define BT_HCI_VS_TRACE_LE_CONN_IND 0x05
275#define BT_HCI_EVT_VS_TRACE_INFO 0x03
281#define BT_HCI_EVT_VS_SCAN_REQ_RX 0x04
292#define BT_HCI_EVT_VS_LE_CONNECTIONLESS_IQ_REPORT 0x5
293#define BT_HCI_VS_LE_CTE_REPORT_NO_VALID_SAMPLE 0x8000
307#define BT_HCI_EVT_VS_LE_CONNECTION_IQ_REPORT 0x6
324#define BT_EVT_MASK_VS_FATAL_ERROR BT_EVT_BIT(1)
325#define BT_EVT_MASK_VS_TRACE_INFO BT_EVT_BIT(2)
326#define BT_EVT_MASK_VS_SCAN_REQ_RX BT_EVT_BIT(3)
327#define BT_EVT_MASK_VS_LE_CONNECTIONLESS_IQ_REPORT BT_EVT_BIT(4)
328#define BT_EVT_MASK_VS_LE_CONNECTION_IQ_REPORT BT_EVT_BIT(5)
330#define DEFAULT_VS_EVT_MASK \
331 BT_EVT_MASK_VS_FATAL_ERROR | BT_EVT_MASK_VS_TRACE_INFO | BT_EVT_MASK_VS_SCAN_REQ_RX | \
332 BT_EVT_MASK_VS_LE_CONNECTIONLESS_IQ_REPORT | \
333 BT_EVT_MASK_VS_LE_CONNECTION_IQ_REPORT
336#define BT_HCI_MESH_REVISION 0x01
338#define BT_HCI_OP_VS_MESH BT_OP(BT_OGF_VS, 0x0042)
339#define BT_HCI_MESH_EVT_PREFIX 0xF0
345#define BT_HCI_OC_MESH_GET_OPTS 0x00
361#define BT_HCI_MESH_PATTERN_LEN_MAX 0x0f
363#define BT_HCI_OC_MESH_SET_SCAN_FILTER 0x01
381#define BT_HCI_OC_MESH_ADVERTISE 0x02
404#define BT_HCI_OC_MESH_ADVERTISE_TIMED 0x03
425#define BT_HCI_OC_MESH_ADVERTISE_CANCEL 0x04
435#define BT_HCI_OC_MESH_SET_SCANNING 0x05
452#define BT_HCI_EVT_MESH_ADV_COMPLETE 0x00
457#define BT_HCI_EVT_MESH_SCANNING_REPORT 0x01
Bluetooth device address definitions and utilities.
struct net_buf * hci_vs_err_trace(const char *file, uint32_t line, uint64_t pc)
struct net_buf * hci_vs_err_stack_frame(unsigned int reason, const struct arch_esf *esf)
struct net_buf * hci_vs_err_assert(const char *file, uint32_t line)
__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:51
Bluetooth Device Address.
Definition addr.h:42
uint8_t adv_slot
Definition hci_vs.h:427
uint16_t tx_window
Definition hci_vs.h:415
uint8_t retx_interval
Definition hci_vs.h:412
uint8_t data_len
Definition hci_vs.h:416
uint32_t instant
Definition hci_vs.h:413
uint8_t adv_slot
Definition hci_vs.h:406
uint8_t ch_map
Definition hci_vs.h:409
int8_t tx_power
Definition hci_vs.h:410
uint8_t data[31]
Definition hci_vs.h:417
bt_addr_t random_addr
Definition hci_vs.h:408
uint8_t retx_count
Definition hci_vs.h:411
uint8_t own_addr_type
Definition hci_vs.h:407
uint16_t tx_delay
Definition hci_vs.h:414
uint8_t scan_filter
Definition hci_vs.h:394
bt_addr_t random_addr
Definition hci_vs.h:385
uint8_t scan_delay
Definition hci_vs.h:392
uint8_t max_tx_delay
Definition hci_vs.h:389
uint8_t retx_interval
Definition hci_vs.h:391
uint8_t retx_count
Definition hci_vs.h:390
uint8_t data_len
Definition hci_vs.h:395
uint8_t min_tx_delay
Definition hci_vs.h:388
uint8_t own_addr_type
Definition hci_vs.h:384
uint8_t adv_slot
Definition hci_vs.h:383
uint8_t ch_map
Definition hci_vs.h:386
uint16_t scan_duration
Definition hci_vs.h:393
uint8_t data[31]
Definition hci_vs.h:396
int8_t tx_power
Definition hci_vs.h:387
uint8_t num_patterns
Definition hci_vs.h:372
uint8_t filter_dup
Definition hci_vs.h:371
struct bt_hci_mesh_pattern patterns[0]
Definition hci_vs.h:373
uint8_t scan_filter
Definition hci_vs.h:370
uint8_t ch_map
Definition hci_vs.h:438
uint8_t scan_filter
Definition hci_vs.h:439
uint8_t enable
Definition hci_vs.h:437
uint8_t opcode
Definition hci_vs.h:342
uint16_t handle
Definition hci_vs.h:198
uint8_t handle_type
Definition hci_vs.h:197
uint8_t type
Definition hci_vs.h:106
uint8_t event_mask[8]
Definition hci_vs.h:99
uint8_t min_used_chans
Definition hci_vs.h:230
uint8_t phys
Definition hci_vs.h:229
uint16_t handle
Definition hci_vs.h:228
uint8_t enable
Definition hci_vs.h:174
uint8_t type
Definition hci_vs.h:122
uint8_t enable
Definition hci_vs.h:121
uint8_t mode
Definition hci_vs.h:222
bt_addr_t bdaddr
Definition hci_vs.h:111
uint8_t handle_type
Definition hci_vs.h:183
int8_t tx_power_level
Definition hci_vs.h:185
uint16_t handle
Definition hci_vs.h:184
uint8_t adv_slot
Definition hci_vs.h:454
bt_addr_le_t addr
Definition hci_vs.h:459
uint8_t data_len
Definition hci_vs.h:463
uint8_t chan
Definition hci_vs.h:460
uint8_t data[0]
Definition hci_vs.h:464
uint32_t instant
Definition hci_vs.h:462
int8_t rssi
Definition hci_vs.h:461
uint8_t num_reports
Definition hci_vs.h:467
struct bt_hci_evt_mesh_scan_report reports[0]
Definition hci_vs.h:468
uint8_t prefix
Definition hci_vs.h:448
uint8_t subevent
Definition hci_vs.h:449
uint64_t pc
Definition hci_vs.h:261
uint8_t err_info[0]
Definition hci_vs.h:262
uint8_t type
Definition hci_vs.h:266
uint8_t data[0]
Definition hci_vs.h:267
uint8_t rssi_ant_id
Definition hci_vs.h:313
uint8_t slot_durations
Definition hci_vs.h:315
int16_t rssi
Definition hci_vs.h:312
uint16_t conn_handle
Definition hci_vs.h:309
uint8_t rx_phy
Definition hci_vs.h:310
uint8_t packet_status
Definition hci_vs.h:316
uint16_t conn_evt_counter
Definition hci_vs.h:317
uint8_t sample_count
Definition hci_vs.h:318
struct bt_hci_le_iq_sample16 sample[0]
Definition hci_vs.h:319
uint8_t cte_type
Definition hci_vs.h:314
uint8_t data_chan_idx
Definition hci_vs.h:311
struct bt_hci_le_iq_sample16 sample[0]
Definition hci_vs.h:304
uint8_t sample_count
Definition hci_vs.h:303
uint8_t rssi_ant_id
Definition hci_vs.h:298
uint8_t cte_type
Definition hci_vs.h:299
int16_t rssi
Definition hci_vs.h:297
uint16_t sync_handle
Definition hci_vs.h:295
uint16_t per_evt_counter
Definition hci_vs.h:302
uint8_t slot_durations
Definition hci_vs.h:300
uint8_t chan_idx
Definition hci_vs.h:296
uint8_t packet_status
Definition hci_vs.h:301
bt_addr_le_t addr
Definition hci_vs.h:283
int8_t rssi
Definition hci_vs.h:284
uint8_t data[0]
Definition hci_vs.h:278
uint8_t type
Definition hci_vs.h:277
uint8_t subevent
Definition hci_vs.h:236
int16_t q
Definition hci_vs.h:289
int16_t i
Definition hci_vs.h:288
uint8_t pattern_len
Definition hci_vs.h:365
uint8_t pattern[0]
Definition hci_vs.h:366
uint8_t opcode
Definition hci_vs.h:431
uint8_t status
Definition hci_vs.h:430
uint8_t adv_slot
Definition hci_vs.h:432
uint8_t opcode
Definition hci_vs.h:421
uint8_t adv_slot
Definition hci_vs.h:422
uint8_t status
Definition hci_vs.h:420
uint8_t adv_slot
Definition hci_vs.h:401
uint8_t status
Definition hci_vs.h:399
uint8_t opcode
Definition hci_vs.h:400
uint8_t ch_map
Definition hci_vs.h:350
uint8_t max_adv_slot
Definition hci_vs.h:355
uint8_t max_filter_pattern
Definition hci_vs.h:354
uint8_t opcode
Definition hci_vs.h:348
uint8_t max_tx_window
Definition hci_vs.h:356
uint8_t status
Definition hci_vs.h:347
uint8_t max_scan_filter
Definition hci_vs.h:353
int8_t min_tx_power
Definition hci_vs.h:351
uint8_t revision
Definition hci_vs.h:349
int8_t max_tx_power
Definition hci_vs.h:352
uint8_t evt_prefix
Definition hci_vs.h:358
uint8_t evt_prefix_len
Definition hci_vs.h:357
uint8_t opcode
Definition hci_vs.h:377
uint8_t status
Definition hci_vs.h:376
uint8_t scan_filter
Definition hci_vs.h:378
uint8_t opcode
Definition hci_vs.h:443
uint8_t status
Definition hci_vs.h:442
uint8_t info[0]
Definition hci_vs.h:128
uint8_t status
Definition hci_vs.h:127
int8_t temps
Definition hci_vs.h:153
uint8_t status
Definition hci_vs.h:152
struct bt_hci_vs_cmd c[0]
Definition hci_vs.h:167
uint8_t status
Definition hci_vs.h:165
uint8_t num_cmds
Definition hci_vs.h:166
uint8_t status
Definition hci_vs.h:145
uint8_t ir[16]
Definition hci_vs.h:146
uint8_t er[16]
Definition hci_vs.h:147
uint8_t num_addrs
Definition hci_vs.h:139
uint8_t status
Definition hci_vs.h:138
struct bt_hci_vs_static_addr a[0]
Definition hci_vs.h:140
uint8_t commands[64]
Definition hci_vs.h:88
uint8_t status
Definition hci_vs.h:87
uint8_t features[8]
Definition hci_vs.h:94
uint8_t status
Definition hci_vs.h:93
uint8_t handle_type
Definition hci_vs.h:203
int8_t tx_power_level
Definition hci_vs.h:205
uint16_t handle
Definition hci_vs.h:204
uint8_t status
Definition hci_vs.h:202
uint8_t num_supported_modes
Definition hci_vs.h:212
uint8_t status
Definition hci_vs.h:211
uint8_t supported_mode[0]
Definition hci_vs.h:213
uint8_t fw_version
Definition hci_vs.h:80
uint8_t fw_variant
Definition hci_vs.h:79
uint32_t fw_build
Definition hci_vs.h:82
uint16_t fw_revision
Definition hci_vs.h:81
uint8_t status
Definition hci_vs.h:76
uint16_t hw_platform
Definition hci_vs.h:77
uint16_t hw_variant
Definition hci_vs.h:78
uint8_t handle_type
Definition hci_vs.h:190
uint8_t status
Definition hci_vs.h:189
int8_t selected_tx_power
Definition hci_vs.h:192
uint16_t handle
Definition hci_vs.h:191
uint16_t opcode_base
Definition hci_vs.h:158
uint16_t vendor_id
Definition hci_vs.h:157
uint32_t ip
Definition hci_vs.h:247
uint32_t a1
Definition hci_vs.h:243
uint32_t pc
Definition hci_vs.h:249
uint32_t lr
Definition hci_vs.h:248
uint32_t a3
Definition hci_vs.h:245
uint32_t xpsr
Definition hci_vs.h:250
uint32_t a4
Definition hci_vs.h:246
uint32_t a2
Definition hci_vs.h:244
uint8_t cpu_type
Definition hci_vs.h:256
uint8_t cpu_data[0]
Definition hci_vs.h:257
uint32_t reason
Definition hci_vs.h:255
bt_addr_t bdaddr
Definition hci_vs.h:132
uint8_t ir[16]
Definition hci_vs.h:133
Network buffer representation.
Definition net_buf.h:1062