diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2019-04-12 10:23:25 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-02-03 13:26:38 -0800 |
commit | 34d046f29ba5246d94e6f0b4b96966acd8dbdbe9 (patch) | |
tree | 5542353426ec5541684f860b4fe6d86e23e34e93 /monitor/bt.h | |
parent | 31bbb3d86028a2d5a7e98dacfc4122bb4e408b2b (diff) | |
download | bluez-34d046f29ba5246d94e6f0b4b96966acd8dbdbe9.tar.gz |
monitor: Add decoding of ISO related Link Layer PDUs
This adds the decoding of ISO related Link Layer PDUs
Diffstat (limited to 'monitor/bt.h')
-rw-r--r-- | monitor/bt.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/monitor/bt.h b/monitor/bt.h index 48901d7cd..b1b24afeb 100644 --- a/monitor/bt.h +++ b/monitor/bt.h @@ -28,6 +28,8 @@ #define BT_HCI_BIT_5_2 (8 * 41) + 5 #define BT_HCI_SUBEVT_5_2 0x19 +#define BT_LL_CMD_5_2 0x1f + struct bt_ll_hdr { uint8_t preamble; uint32_t access_addr; @@ -179,6 +181,52 @@ struct bt_ll_clock_acc { #define BT_LL_CLOCK_ACCURACY_RSP 0x1e +#define BT_LL_CIS_REQ BT_LL_CMD_5_2 +struct bt_ll_cis_req { + uint8_t cig; + uint8_t cis; + uint8_t m_phy; + uint8_t s_phy; + uint16_t m_sdu; + uint16_t s_sdu; + uint8_t m_interval[3]; + uint8_t s_interval[3]; + uint8_t m_pdu; + uint8_t s_pdu; + uint8_t nse; + uint8_t sub_interval[3]; + uint8_t bn; + uint8_t m_ft; + uint8_t s_ft; + uint16_t iso_interval; + uint8_t offset_min[3]; + uint8_t offset_max[3]; + uint16_t conn_event_count; +} __attribute__ ((packed)); + +#define BT_LL_CIS_RSP BT_LL_CMD_5_2 + 1 +struct bt_ll_cis_rsp { + uint8_t offset_min[3]; + uint8_t offset_max[3]; + uint16_t conn_event_count; +} __attribute__ ((packed)); + +#define BT_LL_CIS_IND BT_LL_CMD_5_2 + 2 +struct bt_ll_cis_ind { + uint32_t addr; + uint8_t cis_offset[3]; + uint8_t cig_sync_delay[3]; + uint8_t cis_sync_delay[3]; + uint16_t conn_event_count; +} __attribute__ ((packed)); + +#define BT_LL_CIS_TERMINATE_IND BT_LL_CMD_5_2 + 3 +struct bt_ll_cis_term_ind { + uint8_t cig; + uint8_t cis; + uint8_t reason; +} __attribute__ ((packed)); + #define LMP_ESC4(x) ((127 << 8) | (x)) #define BT_LMP_NAME_REQ 1 |