Merge branch 'feature/support_for_32_and_128_bit_custom_uuids_v5.2' into 'release/v5.2'

feat(bt/bluedroid): Add new APIs for 32 and 128-bit UUIDs (backport v5.2)

See merge request espressif/esp-idf!27229
This commit is contained in:
Jiang Jiang Jian
2023-11-20 17:00:47 +08:00
7 changed files with 397 additions and 33 deletions

View File

@@ -4080,6 +4080,22 @@ BOOLEAN BTM_HasEirService( UINT32 *p_eir_uuid, UINT16 uuid16 );
tBTM_EIR_SEARCH_RESULT BTM_HasInquiryEirService( tBTM_INQ_RESULTS *p_results,
UINT16 uuid16 );
/*******************************************************************************
**
** Function BTM_HasCustomEirService
**
** Description This function is called to know if UUID is already in custom
** UUID list.
**
** Parameters custom_uuid - pointer to custom_uuid array in tBTA_DM_CB
** uuid - UUID struct
**
** Returns TRUE - if found
** FALSE - if not found
**
*******************************************************************************/
BOOLEAN BTM_HasCustomEirService( tBT_UUID *custom_uuid, tBT_UUID uuid );
/*******************************************************************************
**
** Function BTM_AddEirService
@@ -4095,6 +4111,20 @@ tBTM_EIR_SEARCH_RESULT BTM_HasInquiryEirService( tBTM_INQ_RESULTS *p_results,
//extern
void BTM_AddEirService( UINT32 *p_eir_uuid, UINT16 uuid16 );
/*******************************************************************************
**
** Function BTM_AddCustomEirService
**
** Description This function is called to add a custom UUID.
**
** Parameters custom_uuid - pointer to custom_uuid array in tBTA_DM_CB
** uuid - UUID struct
**
** Returns None
**
*******************************************************************************/
void BTM_AddCustomEirService(tBT_UUID *custom_uuid, tBT_UUID uuid);
/*******************************************************************************
**
** Function BTM_RemoveEirService
@@ -4110,6 +4140,20 @@ void BTM_AddEirService( UINT32 *p_eir_uuid, UINT16 uuid16 );
//extern
void BTM_RemoveEirService( UINT32 *p_eir_uuid, UINT16 uuid16 );
/*******************************************************************************
**
** Function BTM_RemoveCustomEirService
**
** Description This function is called to remove a a custom UUID.
**
** Parameters custom_uuid - pointer to custom_uuid array in tBTA_DM_CB
uuid - UUID struct
**
** Returns None
**
*******************************************************************************/
void BTM_RemoveCustomEirService(tBT_UUID *custom_uuid, tBT_UUID uuid);
/*******************************************************************************
**
** Function BTM_GetEirSupportedServices