feat(bt/Bluedroid): Implemented esp_coex_status_set/clear using vendor HCI

This commit is contained in:
Jin Cheng
2023-09-01 09:49:20 +08:00
parent ae1a9bf015
commit d0e0928138
14 changed files with 242 additions and 5 deletions

View File

@@ -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
/*******************************************************************************
**