mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
feat(ble/bluedroid): Support resolve BLE address for interval usage
This commit is contained in:
parent
0690e53294
commit
b88b511362
@ -141,6 +141,12 @@ uint32_t btc_get_ble_status(void)
|
|||||||
status |= BIT(BTC_BLE_STATUS_CONN);
|
status |= BIT(BTC_BLE_STATUS_CONN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Address resolve status
|
||||||
|
extern uint8_t btm_get_ble_addr_resolve_status(void);
|
||||||
|
if (btm_get_ble_addr_resolve_status()) {
|
||||||
|
status |= BIT(BTC_BLE_STATUS_ADDR_RESOLVE);
|
||||||
|
}
|
||||||
|
|
||||||
#if (SMP_INCLUDED == TRUE)
|
#if (SMP_INCLUDED == TRUE)
|
||||||
// Number of recorded devices
|
// Number of recorded devices
|
||||||
extern uint8_t btm_ble_sec_dev_active_count(void);
|
extern uint8_t btm_ble_sec_dev_active_count(void);
|
||||||
|
@ -40,6 +40,7 @@ typedef enum {
|
|||||||
BTC_BLE_STATUS_GATTC_APP, // GATTC application exist
|
BTC_BLE_STATUS_GATTC_APP, // GATTC application exist
|
||||||
BTC_BLE_STATUS_GATTS_SRVC, // GATTS service exist
|
BTC_BLE_STATUS_GATTS_SRVC, // GATTS service exist
|
||||||
BTC_BLE_STATUS_PRIVACY, // Privacy enabled
|
BTC_BLE_STATUS_PRIVACY, // Privacy enabled
|
||||||
|
BTC_BLE_STATUS_ADDR_RESOLVE,// Address resolution status
|
||||||
} tBTC_BLE_STATUS;
|
} tBTC_BLE_STATUS;
|
||||||
|
|
||||||
future_t **btc_main_get_future_p(btc_main_future_type_t type);
|
future_t **btc_main_get_future_p(btc_main_future_type_t type);
|
||||||
|
@ -134,10 +134,15 @@ uint8_t btm_acl_active_count(void)
|
|||||||
|
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
#if (BLE_INCLUDED == TRUE)
|
||||||
|
// address resolution status
|
||||||
|
uint8_t btm_get_ble_addr_resolve_status(void)
|
||||||
|
{
|
||||||
|
return (uint8_t) btm_cb.addr_res_en;
|
||||||
|
}
|
||||||
|
|
||||||
void btm_ble_addr_resolve_enable(bool enable)
|
void btm_ble_addr_resolve_enable(bool enable)
|
||||||
{
|
{
|
||||||
#if (BLE_INCLUDED == TRUE)
|
|
||||||
btm_cb.addr_res_en = enable;
|
btm_cb.addr_res_en = enable;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif /*BLE_INCLUDED*/
|
||||||
|
Loading…
Reference in New Issue
Block a user