|
1 | 1 | /* |
2 | | - * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD |
| 2 | + * SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD |
3 | 3 | * |
4 | 4 | * SPDX-License-Identifier: Apache-2.0 |
5 | 5 | */ |
@@ -230,6 +230,7 @@ typedef enum { |
230 | 230 | ESP_GAP_BLE_VENDOR_CMD_COMPLETE_EVT, /*!< When vendor hci command complete, the event comes */ |
231 | 231 | ESP_GAP_BLE_SET_PRIVACY_MODE_COMPLETE_EVT, /*!< When set privacy mode complete, the event comes */ |
232 | 232 | ESP_GAP_BLE_SET_CSA_SUPPORT_COMPLETE_EVT, /*!< When set CSA support complete, the event comes */ |
| 233 | + ESP_GAP_BLE_SET_VENDOR_EVT_MASK_COMPLETE_EVT, /*!< When set vendor event mask complete, the event comes */ |
233 | 234 | ESP_GAP_BLE_EVT_MAX, /*!< when maximum advertising event complete, the event comes */ |
234 | 235 | } esp_gap_ble_cb_event_t; |
235 | 236 |
|
@@ -1580,7 +1581,13 @@ typedef union { |
1580 | 1581 | */ |
1581 | 1582 | struct ble_set_csa_support_cmpl_evt_param { |
1582 | 1583 | esp_bt_status_t status; /*!< Indicate CSA support set operation success status */ |
1583 | | - } set_csa_support_cmpl; /*!< Event parameter of ESP_GAP_BLE_SET_CSA_SUPPORT_COMPLETE_EVT */ |
| 1584 | + } set_csa_support_cmpl; /*!< Event parameter of ESP_GAP_BLE_SET_CSA_SUPPORT_COMPLETE_EVT */ |
| 1585 | + /** |
| 1586 | + * @brief ESP_GAP_BLE_SET_VENDOR_EVT_MASK_COMPLETE_EVT |
| 1587 | + */ |
| 1588 | + struct ble_set_vendor_evt_mask_cmpl_evt_param { |
| 1589 | + esp_bt_status_t status; /*!< Indicate set vendor event mask operation success status */ |
| 1590 | + } set_vendor_evt_mask_cmpl; /*!< Event parameter of ESP_GAP_BLE_SET_VENDOR_EVT_MASK_COMPLETE_EVT */ |
1584 | 1591 | } esp_ble_gap_cb_param_t; |
1585 | 1592 |
|
1586 | 1593 | /** |
@@ -2772,6 +2779,18 @@ esp_err_t esp_ble_gap_set_privacy_mode(esp_ble_addr_type_t addr_type, esp_bd_add |
2772 | 2779 | */ |
2773 | 2780 | esp_err_t esp_ble_gap_set_csa_support(uint8_t csa_select); |
2774 | 2781 |
|
| 2782 | +/** |
| 2783 | + * @brief This function is used to control which vendor events are generated by the HCI for the Host. |
| 2784 | + * |
| 2785 | + * @param[in] event_mask: Bit0: Legacy scan request received event |
| 2786 | + * Bit1: Vendor channel map update complete event |
| 2787 | + * |
| 2788 | + * @return |
| 2789 | + * - ESP_OK : success |
| 2790 | + * - other : failed |
| 2791 | + */ |
| 2792 | +esp_err_t esp_ble_gap_set_vendor_event_mask(uint32_t event_mask); |
| 2793 | + |
2775 | 2794 | #ifdef __cplusplus |
2776 | 2795 | } |
2777 | 2796 | #endif |
|
0 commit comments