feat(bt/bluedroid): Added an API to specify data types for ACL-U traffic

This commit is contained in:
Jin Cheng
2023-09-22 17:48:27 +08:00
committed by BOT
parent 26aa680b5b
commit 15b27b1749
13 changed files with 291 additions and 3 deletions

View File

@@ -851,6 +851,15 @@ typedef struct {
UINT16 page_to;
} tBTM_GET_PAGE_TIMEOUT_RESULTS;
/* Structure returned with set ACL packet types event (in tBTM_CMPL_CB callback function)
** in response to BTM_SetAclPktTypes call.
*/
typedef struct {
tBTM_STATUS status;
BD_ADDR rem_bda;
UINT16 pkt_types;
} tBTM_SET_ACL_PKT_TYPES_RESULTS;
/* Structure returned with set BLE channels event (in tBTM_CMPL_CB callback function)
** in response to BTM_BleSetChannels call.
*/
@@ -2275,6 +2284,20 @@ tBTM_STATUS BTM_WritePageTimeout(UINT16 timeout, tBTM_CMPL_CB *p_cb);
//extern
tBTM_STATUS BTM_ReadPageTimeout(tBTM_CMPL_CB *p_cb);
/*******************************************************************************
**
** Function BTM_SetAclPktTypes
**
** Description Send HCI Change Connection Packet Type
**
** Returns
** BTM_SUCCESS Command sent.
** BTM_NO_RESOURCES If out of resources to send the command.
**
*******************************************************************************/
//extern
tBTM_STATUS BTM_SetAclPktTypes(BD_ADDR remote_bda, UINT16 pkt_types, tBTM_CMPL_CB *p_cb);
/*******************************************************************************
**
** Function BTM_WriteVoiceSettings