summaryrefslogtreecommitdiff
path: root/monitor/bt.h
diff options
context:
space:
mode:
authorSzymon Czapracki <szymon.czapracki@codecoup.pl>2020-01-08 12:47:46 +0100
committerSzymon Janc <szymon.janc@codecoup.pl>2020-01-09 11:36:05 +0100
commit228c945a93a48ffd2f6cb830951d054278f6da91 (patch)
tree94adee7d1e58709d3e47b617b1b19ff1cf23936d /monitor/bt.h
parentf1354119897aaeb5131ea0f8c087aa8f544f78cf (diff)
downloadbluez-228c945a93a48ffd2f6cb830951d054278f6da91.tar.gz
monitor: Decode LE Periodic Advertising Sync Transfer Received Event
Diffstat (limited to 'monitor/bt.h')
-rw-r--r--monitor/bt.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/monitor/bt.h b/monitor/bt.h
index ecf3782c9..e14c1771f 100644
--- a/monitor/bt.h
+++ b/monitor/bt.h
@@ -3140,6 +3140,20 @@ struct bt_hci_evt_le_chan_select_alg {
uint8_t algorithm;
} __attribute__ ((packed));
+#define BT_HCI_EVT_LE_PER_ADV_SYNC_TRANS_REC 0x18
+struct bt_hci_evt_le_per_adv_sync_trans_rec {
+ uint8_t status;
+ uint16_t handle;
+ uint16_t service_data;
+ uint16_t sync_handle;
+ uint8_t sid;
+ uint8_t addr_type;
+ uint8_t addr[6];
+ uint8_t phy;
+ uint16_t interval;
+ uint8_t clock_accuracy;
+} __attribute__ ((packed));
+
#define BT_HCI_ERR_SUCCESS 0x00
#define BT_HCI_ERR_UNKNOWN_COMMAND 0x01
#define BT_HCI_ERR_UNKNOWN_CONN_ID 0x02