mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-22 17:10:28 +00:00
feat(ble/bluedroid): Support set resolvable provate address timeout by api
This commit is contained in:

committed by
chenjianhua

parent
83910d96eb
commit
ed37f99e8a
@@ -197,6 +197,7 @@ typedef void (tBTM_UPDATE_WHITELIST_CBACK) (UINT8 status, tBTM_WL_OPERATION wl_o
|
||||
|
||||
typedef void (tBTM_SET_LOCAL_PRIVACY_CBACK) (UINT8 status);
|
||||
|
||||
typedef void (tBTM_SET_RPA_TIMEOUT_CMPL_CBACK) (UINT8 status);
|
||||
/*******************************
|
||||
** Device Coexist status
|
||||
********************************/
|
||||
@@ -330,7 +331,7 @@ typedef enum {
|
||||
#define BTM_COD_MINOR_CELLULAR 0x04
|
||||
#define BTM_COD_MINOR_CORDLESS 0x08
|
||||
#define BTM_COD_MINOR_SMART_PHONE 0x0C
|
||||
#define BTM_COD_MINOR_WIRED_MDM_V_GTWY 0x10 /* wired modem or voice gatway */
|
||||
#define BTM_COD_MINOR_WIRED_MDM_V_GTWY 0x10 /* wired modem or voice gateway */
|
||||
#define BTM_COD_MINOR_ISDN_ACCESS 0x14
|
||||
|
||||
/* minor device class field for LAN Access Point Major Class */
|
||||
@@ -1593,7 +1594,7 @@ typedef struct {
|
||||
tBTM_AUTH_REQ loc_auth_req; /* Authentication required for local device */
|
||||
tBTM_AUTH_REQ rmt_auth_req; /* Authentication required for peer device */
|
||||
tBTM_IO_CAP loc_io_caps; /* IO Capabilities of the local device */
|
||||
tBTM_IO_CAP rmt_io_caps; /* IO Capabilities of the remot device */
|
||||
tBTM_IO_CAP rmt_io_caps; /* IO Capabilities of the remote device */
|
||||
} tBTM_SP_CFM_REQ;
|
||||
|
||||
/* data type for BTM_SP_KEY_REQ_EVT */
|
||||
@@ -2266,7 +2267,7 @@ UINT8 BTM_SetTraceLevel (UINT8 new_level);
|
||||
**
|
||||
** Function BTM_WritePageTimeout
|
||||
**
|
||||
** Description Send HCI Wite Page Timeout.
|
||||
** Description Send HCI Write Page Timeout.
|
||||
**
|
||||
** Returns
|
||||
** BTM_SUCCESS Command sent.
|
||||
@@ -2458,7 +2459,7 @@ tBTM_STATUS BTM_StartInquiry (tBTM_INQ_PARMS *p_inqparms,
|
||||
** Description This function returns a bit mask of the current inquiry state
|
||||
**
|
||||
** Returns BTM_INQUIRY_INACTIVE if inactive (0)
|
||||
** BTM_LIMITED_INQUIRY_ACTIVE if a limted inquiry is active
|
||||
** BTM_LIMITED_INQUIRY_ACTIVE if a limited inquiry is active
|
||||
** BTM_GENERAL_INQUIRY_ACTIVE if a general inquiry is active
|
||||
** BTM_PERIODIC_INQUIRY_ACTIVE if a periodic inquiry is active
|
||||
**
|
||||
@@ -3598,7 +3599,7 @@ BOOLEAN BTM_SecAddDevice (BD_ADDR bd_addr, DEV_CLASS dev_class,
|
||||
**
|
||||
** Description Free resources associated with the device.
|
||||
**
|
||||
** Returns TRUE if rmoved OK, FALSE if not found
|
||||
** Returns TRUE if removed OK, FALSE if not found
|
||||
**
|
||||
*******************************************************************************/
|
||||
//extern
|
||||
@@ -4244,7 +4245,7 @@ UINT8 BTM_GetEirUuidList( UINT8 *p_eir, UINT8 uuid_size, UINT8 *p_num_uuid,
|
||||
** pointer is used, PCM parameter maintained in
|
||||
** the control block will be used; otherwise update
|
||||
** control block value.
|
||||
** err_data_rpt: Lisbon feature to enable the erronous data report
|
||||
** err_data_rpt: Lisbon feature to enable the erroneous data report
|
||||
** or not.
|
||||
**
|
||||
** Returns BTM_SUCCESS if the successful.
|
||||
|
@@ -144,12 +144,12 @@ typedef UINT8 tBTM_BLE_SFP;
|
||||
#ifndef BTM_BLE_SCAN_FAST_INT
|
||||
#define BTM_BLE_SCAN_FAST_INT 96 /* 30 ~ 60 ms (use 60) = 96 *0.625 */
|
||||
#endif
|
||||
/* default scan window for background connection, applicable for auto connection or selective conenction */
|
||||
/* default scan window for background connection, applicable for auto connection or selective connection */
|
||||
#ifndef BTM_BLE_SCAN_FAST_WIN
|
||||
#define BTM_BLE_SCAN_FAST_WIN 48 /* 30 ms = 48 *0.625 */
|
||||
#endif
|
||||
|
||||
/* default scan paramter used in reduced power cycle (background scanning) */
|
||||
/* default scan parameter used in reduced power cycle (background scanning) */
|
||||
#ifndef BTM_BLE_SCAN_SLOW_INT_1
|
||||
#define BTM_BLE_SCAN_SLOW_INT_1 2048 /* 1.28 s = 2048 *0.625 */
|
||||
#endif
|
||||
@@ -157,7 +157,7 @@ typedef UINT8 tBTM_BLE_SFP;
|
||||
#define BTM_BLE_SCAN_SLOW_WIN_1 48 /* 30 ms = 48 *0.625 */
|
||||
#endif
|
||||
|
||||
/* default scan paramter used in reduced power cycle (background scanning) */
|
||||
/* default scan parameter used in reduced power cycle (background scanning) */
|
||||
#ifndef BTM_BLE_SCAN_SLOW_INT_2
|
||||
#define BTM_BLE_SCAN_SLOW_INT_2 4096 /* 2.56 s = 4096 *0.625 */
|
||||
#endif
|
||||
@@ -460,7 +460,7 @@ typedef struct {
|
||||
} tBTM_BLE_PROPRIETARY;
|
||||
|
||||
typedef struct {
|
||||
tBTM_BLE_INT_RANGE int_range; /* slave prefered conn interval range */
|
||||
tBTM_BLE_INT_RANGE int_range; /* slave preferred conn interval range */
|
||||
tBTM_BLE_MANU *p_manu; /* manufacturer data */
|
||||
tBTM_BLE_SERVICE *p_services; /* services */
|
||||
tBTM_BLE_128SERVICE *p_services_128b; /* 128 bits service */
|
||||
@@ -1895,7 +1895,7 @@ void BTM_BleSecureConnectionCreateOobData(void);
|
||||
** Function BTM_BleDataSignature
|
||||
**
|
||||
** Description This function is called to sign the data using AES128 CMAC
|
||||
** algorith.
|
||||
** algorithm.
|
||||
**
|
||||
** Parameter bd_addr: target device the data to be signed for.
|
||||
** p_text: singing data
|
||||
@@ -1903,7 +1903,7 @@ void BTM_BleSecureConnectionCreateOobData(void);
|
||||
** signature: output parameter where data signature is going to
|
||||
** be stored.
|
||||
**
|
||||
** Returns TRUE if signing sucessul, otherwise FALSE.
|
||||
** Returns TRUE if signing successful, otherwise FALSE.
|
||||
**
|
||||
*******************************************************************************/
|
||||
//extern
|
||||
@@ -2393,7 +2393,7 @@ BOOLEAN BTM_UseLeLink (BD_ADDR bd_addr);
|
||||
**
|
||||
** Function BTM_BleStackEnable
|
||||
**
|
||||
** Description Enable/Disable BLE functionality on stack regarless controller
|
||||
** Description Enable/Disable BLE functionality on stack regardless controller
|
||||
** capability.
|
||||
**
|
||||
** Parameters: enable: TRUE to enable, FALSE to disable.
|
||||
@@ -2437,7 +2437,7 @@ BOOLEAN BTM_BleSecurityProcedureIsRunning (BD_ADDR bd_addr);
|
||||
** Function BTM_BleGetSupportedKeySize
|
||||
**
|
||||
** Description This function gets the maximum encryption key size in bytes
|
||||
** the local device can suport.
|
||||
** the local device can support.
|
||||
** record.
|
||||
**
|
||||
** Returns the key size or 0 if the size can't be retrieved.
|
||||
@@ -2472,7 +2472,7 @@ tBTM_STATUS BTM_BleEnableAdvInstance (tBTM_BLE_ADV_PARAMS *p_params,
|
||||
**
|
||||
** Function BTM_BleUpdateAdvInstParam
|
||||
**
|
||||
** Description This function update a Multi-ADV instance with the specififed
|
||||
** Description This function update a Multi-ADV instance with the specified
|
||||
** adv parameters.
|
||||
**
|
||||
** Parameters inst_id: adv instance ID
|
||||
@@ -2548,7 +2548,7 @@ tBTM_STATUS BTM_BleAdvFilterParamSetup(int action,
|
||||
**
|
||||
** Parameters action: to read/write/clear
|
||||
** cond_type: filter condition type.
|
||||
** p_cond: filter condition paramter
|
||||
** p_cond: filter condition parameter
|
||||
**
|
||||
** Returns tBTM_STATUS
|
||||
**
|
||||
@@ -2655,6 +2655,19 @@ BOOLEAN BTM_Ble_Authorization(BD_ADDR bd_addr, BOOLEAN authorize);
|
||||
**
|
||||
*******************************************************************************/
|
||||
BOOLEAN BTM_BleClearAdv(tBTM_CLEAR_ADV_CMPL_CBACK *p_clear_adv_cback);
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
** Function BTM_BleSetRpaTimeout
|
||||
**
|
||||
** Description This function is called to set the Resolvable Private Address
|
||||
** (RPA) timeout.
|
||||
**
|
||||
** Parameter rpa_timeout - The timeout value for RPA, typically in seconds.
|
||||
**
|
||||
*******************************************************************************/
|
||||
BOOLEAN BTM_BleSetRpaTimeout(uint16_t rpa_timeout, tBTM_SET_RPA_TIMEOUT_CMPL_CBACK *p_set_rpa_timeout_cback);
|
||||
|
||||
/*
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user