mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
feat(ble/bluedroid): Supported BLE bluedroid host pawr connection
This commit is contained in:
@@ -213,12 +213,21 @@ static void btc_gattc_app_unregister(btc_ble_gattc_args_t *arg)
|
||||
static void btc_gattc_open(btc_ble_gattc_args_t *arg)
|
||||
{
|
||||
tBTA_GATT_TRANSPORT transport = BTA_GATT_TRANSPORT_LE;
|
||||
|
||||
#if (BT_BLE_FEAT_PAWR_EN == TRUE)
|
||||
BTA_GATTC_Enh_Open(arg->open.gattc_if, arg->open.remote_bda,
|
||||
arg->open.remote_addr_type, arg->open.is_direct,
|
||||
transport, arg->open.is_aux, arg->open.own_addr_type,
|
||||
arg->open.is_pawr_synced, arg->open.adv_handle, arg->open.subevent,
|
||||
arg->open.phy_mask, (void *)&arg->open.phy_1m_conn_params,
|
||||
(void *)&arg->open.phy_2m_conn_params, (void *)&arg->open.phy_coded_conn_params);
|
||||
#else
|
||||
BTA_GATTC_Enh_Open(arg->open.gattc_if, arg->open.remote_bda,
|
||||
arg->open.remote_addr_type, arg->open.is_direct,
|
||||
transport, arg->open.is_aux, arg->open.own_addr_type,
|
||||
false, 0xff, 0xff,
|
||||
arg->open.phy_mask, (void *)&arg->open.phy_1m_conn_params,
|
||||
(void *)&arg->open.phy_2m_conn_params, (void *)&arg->open.phy_coded_conn_params);
|
||||
#endif // (BT_BLE_FEAT_PAWR_EN == TRUE)
|
||||
}
|
||||
|
||||
static void btc_gattc_close(btc_ble_gattc_args_t *arg)
|
||||
|
||||
@@ -58,6 +58,9 @@ typedef union {
|
||||
bool is_direct;
|
||||
bool is_aux;
|
||||
esp_ble_addr_type_t own_addr_type;
|
||||
bool is_pawr_synced;
|
||||
uint8_t adv_handle;
|
||||
uint8_t subevent;
|
||||
esp_ble_phy_mask_t phy_mask;
|
||||
esp_ble_conn_params_t phy_1m_conn_params;
|
||||
esp_ble_conn_params_t phy_2m_conn_params;
|
||||
|
||||
Reference in New Issue
Block a user