|
|
@@ -1068,7 +1068,49 @@ struct ble_hci_le_set_host_feat_cp {
|
|
|
uint8_t val;
|
|
|
} __attribute__((packed));
|
|
|
|
|
|
-#define BLE_HCI_OCF_LE_SET_DEFAULT_SUBRATE (0x007D)
|
|
|
+#define BLE_HCI_OCF_LE_ENH_READ_TRANSMIT_POWER_LEVEL (0x0076)
|
|
|
+struct ble_hci_le_enh_read_transmit_power_level_cp {
|
|
|
+ uint16_t conn_handle;
|
|
|
+ uint8_t phy;
|
|
|
+} __attribute__((packed));
|
|
|
+struct ble_hci_le_enh_read_transmit_power_level_rp {
|
|
|
+ uint8_t status;
|
|
|
+ uint16_t conn_handle;
|
|
|
+ uint8_t phy;
|
|
|
+ uint8_t curr_tx_power_level;
|
|
|
+ uint8_t max_tx_power_level;
|
|
|
+} __attribute__((packed));
|
|
|
+
|
|
|
+#define BLE_HCI_OCF_LE_READ_REMOTE_TRANSMIT_POWER_LEVEL (0x0077)
|
|
|
+struct ble_hci_le_read_remote_transmit_power_level_cp {
|
|
|
+ uint16_t conn_handle;
|
|
|
+ uint8_t phy;
|
|
|
+} __attribute__((packed));
|
|
|
+
|
|
|
+#define BLE_HCI_OCF_LE_SET_PATH_LOSS_REPORT_PARAM (0x0078)
|
|
|
+struct ble_hci_le_set_path_loss_report_param_cp {
|
|
|
+ uint16_t conn_handle;
|
|
|
+ uint8_t high_threshold;
|
|
|
+ uint8_t high_hysteresis;
|
|
|
+ uint8_t low_threshold;
|
|
|
+ uint8_t low_hysteresis;
|
|
|
+ uint16_t min_time_spent;
|
|
|
+} __attribute__((packed));
|
|
|
+
|
|
|
+#define BLE_HCI_OCF_LE_SET_PATH_LOSS_REPORT_ENABLE (0x0079)
|
|
|
+struct ble_hci_le_set_path_loss_report_enable_cp {
|
|
|
+ uint16_t conn_handle;
|
|
|
+ uint8_t enable;
|
|
|
+} __attribute__((packed));
|
|
|
+
|
|
|
+#define BLE_HCI_OCF_LE_SET_TRANS_PWR_REPORT_ENABLE (0x007A)
|
|
|
+struct ble_hci_le_set_transmit_power_report_enable_cp {
|
|
|
+ uint16_t conn_handle;
|
|
|
+ uint8_t local_enable;
|
|
|
+ uint8_t remote_enable;
|
|
|
+} __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;
|
|
|
@@ -1077,7 +1119,7 @@ struct ble_hci_le_set_default_subrate_cp {
|
|
|
uint16_t supervision_tmo;
|
|
|
} __attribute__((packed));
|
|
|
|
|
|
-#define BLE_HCI_OCF_LE_SUBRATE_REQ (0x007E)
|
|
|
+#define BLE_HCI_OCF_LE_SUBRATE_REQ (0x007E)
|
|
|
struct ble_hci_le_subrate_req_cp {
|
|
|
uint16_t conn_handle;
|
|
|
uint16_t subrate_min;
|
|
|
@@ -1798,6 +1840,26 @@ struct ble_hci_ev_le_subev_peer_sca_complete {
|
|
|
uint8_t sca;
|
|
|
} __attribute__((packed));
|
|
|
|
|
|
+#define BLE_HCI_LE_SUBEV_PATH_LOSS_THRESHOLD (0x20)
|
|
|
+struct ble_hci_ev_le_subev_path_loss_threshold {
|
|
|
+ uint8_t subev_code;
|
|
|
+ uint16_t conn_handle;
|
|
|
+ uint8_t current_path_loss;
|
|
|
+ uint8_t zone_entered;
|
|
|
+} __attribute__((packed));
|
|
|
+
|
|
|
+#define BLE_HCI_LE_SUBEV_TRANSMIT_POWER_REPORT (0x21)
|
|
|
+struct ble_hci_ev_le_subev_transmit_power_report {
|
|
|
+ uint8_t subev_code;
|
|
|
+ uint8_t status;
|
|
|
+ uint16_t conn_handle;
|
|
|
+ uint8_t reason;
|
|
|
+ uint8_t phy;
|
|
|
+ uint8_t transmit_power_level;
|
|
|
+ uint8_t transmit_power_level_flag;
|
|
|
+ uint8_t delta;
|
|
|
+} __attribute__((packed));
|
|
|
+
|
|
|
#define BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT (0x22)
|
|
|
struct ble_hci_ev_le_subev_biginfo_adv_report {
|
|
|
uint8_t subev_code;
|
|
|
@@ -1816,7 +1878,7 @@ struct ble_hci_ev_le_subev_biginfo_adv_report {
|
|
|
uint8_t encryption;
|
|
|
} __attribute__((packed));
|
|
|
|
|
|
-#define BLE_HCI_LE_SUBEV_SUBRATE_CHANGE (0x23)
|
|
|
+#define BLE_HCI_LE_SUBEV_SUBRATE_CHANGE (0x23)
|
|
|
struct ble_hci_ev_le_subev_subrate_change {
|
|
|
uint8_t subev_code;
|
|
|
uint8_t status;
|
|
|
@@ -1827,7 +1889,6 @@ struct ble_hci_ev_le_subev_subrate_change {
|
|
|
uint16_t supervision_tmo;
|
|
|
} __attribute__((packed));
|
|
|
|
|
|
-
|
|
|
/* Data buffer overflow event */
|
|
|
#define BLE_HCI_EVENT_ACL_BUF_OVERFLOW (0x01)
|
|
|
|