mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-23 09:20:30 +00:00
feat(bt/Bluedroid): Implemented esp_coex_status_set/clear using vendor HCI
This commit is contained in:
@@ -195,6 +195,28 @@ typedef void (tBTM_UPDATE_WHITELIST_CBACK) (UINT8 status, tBTM_WL_OPERATION wl_o
|
||||
|
||||
typedef void (tBTM_SET_LOCAL_PRIVACY_CBACK) (UINT8 status);
|
||||
|
||||
/*******************************
|
||||
** Device Coexist status
|
||||
********************************/
|
||||
#if (ESP_COEX_VSC_INCLUDED == TRUE)
|
||||
// coexist status for MESH
|
||||
#define BTM_COEX_BLE_ST_MESH_CONFIG 0x08
|
||||
#define BTM_COEX_BLE_ST_MESH_TRAFFIC 0x10
|
||||
#define BTM_COEX_BLE_ST_MESH_STANDBY 0x20
|
||||
// coexist status for A2DP
|
||||
#define BTM_COEX_BT_ST_A2DP_STREAMING 0x10
|
||||
#define BTM_COEX_BT_ST_A2DP_PAUSED 0x20
|
||||
|
||||
// coexist operation
|
||||
#define BTM_COEX_OP_CLEAR 0x00
|
||||
#define BTM_COEX_OP_SET 0x01
|
||||
typedef UINT8 tBTM_COEX_OPERATION;
|
||||
|
||||
typedef enum {
|
||||
BTM_COEX_TYPE_BLE = 1,
|
||||
BTM_COEX_TYPE_BT,
|
||||
} tBTM_COEX_TYPE;
|
||||
#endif
|
||||
|
||||
/*****************************************************************************
|
||||
** DEVICE DISCOVERY - Inquiry, Remote Name, Discovery, Class of Device
|
||||
@@ -2150,6 +2172,21 @@ tBTM_STATUS BTM_VendorSpecificCommand(UINT16 opcode,
|
||||
UINT8 *p_param_buf,
|
||||
tBTM_VSC_CMPL_CB *p_cb);
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
** Function BTM_ConfigCoexStatus
|
||||
**
|
||||
** Description Config coexist status through vendor specific HCI command.
|
||||
**
|
||||
** Returns
|
||||
** BTM_SUCCESS Command sent. Does not expect command complete
|
||||
** event. (command cmpl callback param is NULL)
|
||||
** BTM_NO_RESOURCES Command not sent. No resources.
|
||||
**
|
||||
*******************************************************************************/
|
||||
#if (ESP_COEX_VSC_INCLUDED == TRUE)
|
||||
tBTM_STATUS BTM_ConfigCoexStatus(tBTM_COEX_OPERATION op, tBTM_COEX_TYPE type, UINT8 status);
|
||||
#endif
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
|
Reference in New Issue
Block a user