|
|
@@ -1068,6 +1068,25 @@ struct ble_hci_le_set_host_feat_cp {
|
|
|
uint8_t val;
|
|
|
} __attribute__((packed));
|
|
|
|
|
|
+#define BLE_HCI_OCF_LE_SET_DEFAULT_SUBRATE (0x007D)
|
|
|
+struct ble_hci_le_set_default_subrate_cp {
|
|
|
+ uint16_t subrate_min;
|
|
|
+ uint16_t subrate_max;
|
|
|
+ uint16_t max_latency;
|
|
|
+ uint16_t cont_num;
|
|
|
+ uint16_t supervision_tmo;
|
|
|
+} __attribute__((packed));
|
|
|
+
|
|
|
+#define BLE_HCI_OCF_LE_SUBRATE_REQ (0x007E)
|
|
|
+struct ble_hci_le_subrate_req_cp {
|
|
|
+ uint16_t conn_handle;
|
|
|
+ uint16_t subrate_min;
|
|
|
+ uint16_t subrate_max;
|
|
|
+ uint16_t max_latency;
|
|
|
+ uint16_t cont_num;
|
|
|
+ uint16_t supervision_tmo;
|
|
|
+} __attribute__((packed));
|
|
|
+
|
|
|
/* --- Vendor specific commands (OGF 0x00FF) */
|
|
|
#define BLE_HCI_OCF_VS_RD_STATIC_ADDR (0x0001)
|
|
|
struct ble_hci_vs_rd_static_addr_rp {
|
|
|
@@ -1797,6 +1816,18 @@ struct ble_hci_ev_le_subev_biginfo_adv_report {
|
|
|
uint8_t encryption;
|
|
|
} __attribute__((packed));
|
|
|
|
|
|
+#define BLE_HCI_LE_SUBEV_SUBRATE_CHANGE (0x23)
|
|
|
+struct ble_hci_ev_le_subev_subrate_change {
|
|
|
+ uint8_t subev_code;
|
|
|
+ uint8_t status;
|
|
|
+ uint16_t conn_handle;
|
|
|
+ uint16_t subrate_factor;
|
|
|
+ uint16_t periph_latency;
|
|
|
+ uint16_t cont_num;
|
|
|
+ uint16_t supervision_tmo;
|
|
|
+} __attribute__((packed));
|
|
|
+
|
|
|
+
|
|
|
/* Data buffer overflow event */
|
|
|
#define BLE_HCI_EVENT_ACL_BUF_OVERFLOW (0x01)
|
|
|
|
|
|
@@ -1839,6 +1870,7 @@ struct ble_hci_ev_le_subev_biginfo_adv_report {
|
|
|
#define BLE_HCI_VER_BCS_5_0 (9)
|
|
|
#define BLE_HCI_VER_BCS_5_1 (10)
|
|
|
#define BLE_HCI_VER_BCS_5_2 (11)
|
|
|
+#define BLE_HCI_VER_BCS_5_3 (12)
|
|
|
|
|
|
#define BLE_LMP_VER_BCS_1_0b (0)
|
|
|
#define BLE_LMP_VER_BCS_1_1 (1)
|
|
|
@@ -1852,6 +1884,7 @@ struct ble_hci_ev_le_subev_biginfo_adv_report {
|
|
|
#define BLE_LMP_VER_BCS_5_0 (9)
|
|
|
#define BLE_LMP_VER_BCS_5_1 (10)
|
|
|
#define BLE_LMP_VER_BCS_5_2 (11)
|
|
|
+#define BLE_LMP_VER_BCS_5_3 (12)
|
|
|
|
|
|
/* selected HCI and LMP version */
|
|
|
#if MYNEWT_VAL(BLE_VERSION) == 50
|