20#ifndef H_BLE_MONITOR_PRIV_
21#define H_BLE_MONITOR_PRIV_
27#define BLE_MONITOR_OPCODE_NEW_INDEX 0
28#define BLE_MONITOR_OPCODE_DEL_INDEX 1
29#define BLE_MONITOR_OPCODE_COMMAND_PKT 2
30#define BLE_MONITOR_OPCODE_EVENT_PKT 3
31#define BLE_MONITOR_OPCODE_ACL_TX_PKT 4
32#define BLE_MONITOR_OPCODE_ACL_RX_PKT 5
33#define BLE_MONITOR_OPCODE_SCO_TX_PKT 6
34#define BLE_MONITOR_OPCODE_SCO_RX_PKT 7
35#define BLE_MONITOR_OPCODE_OPEN_INDEX 8
36#define BLE_MONITOR_OPCODE_CLOSE_INDEX 9
37#define BLE_MONITOR_OPCODE_INDEX_INFO 10
38#define BLE_MONITOR_OPCODE_VENDOR_DIAG 11
39#define BLE_MONITOR_OPCODE_SYSTEM_NOTE 12
40#define BLE_MONITOR_OPCODE_USER_LOGGING 13
42#define BLE_MONITOR_EXTHDR_COMMAND_DROPS 1
43#define BLE_MONITOR_EXTHDR_EVENT_DROPS 2
44#define BLE_MONITOR_EXTHDR_ACL_RX_DROPS 3
45#define BLE_MONITOR_EXTHDR_ACL_TX_DROPS 4
46#define BLE_MONITOR_EXTHDR_SCO_RX_DROPS 5
47#define BLE_MONITOR_EXTHDR_SCO_TX_DROPS 6
48#define BLE_MONITOR_EXTHDR_OTHER_DROPS 7
49#define BLE_MONITOR_EXTHDR_TS32 8
51struct ble_monitor_hdr {
56} __attribute__((packed));
58struct ble_monitor_drops_hdr {
69} __attribute__((packed));
71struct ble_monitor_ts_hdr {
74} __attribute__((packed));
76struct ble_monitor_new_index {
81} __attribute__((packed));
83struct ble_monitor_user_logging {
86} __attribute__((packed));
88int ble_monitor_send(uint16_t opcode,
const void *data,
size_t len);
90int ble_monitor_send_om(uint16_t opcode,
const struct os_mbuf *om);
92int ble_monitor_new_index(uint8_t bus, uint8_t *addr,
const char *name);