You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.7 KiB
53 lines
2.7 KiB
7 months ago
|
/*
|
||
|
* Copyright 2020 The Android Open Source Project
|
||
|
*
|
||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
* you may not use this file except in compliance with the License.
|
||
|
* You may obtain a copy of the License at:
|
||
|
*
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
* See the License for the specific language governing permissions and
|
||
|
* limitations under the License.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "bt_common.h"
|
||
|
|
||
|
// This header contains functions for HCI-ble to invoke
|
||
|
void btm_ble_conn_complete(uint8_t* p, UNUSED_ATTR uint16_t evt_len,
|
||
|
bool enhanced);
|
||
|
void btm_ble_process_adv_pkt(uint8_t len, uint8_t* p);
|
||
|
void btm_ble_process_ext_adv_pkt(uint8_t len, uint8_t* p);
|
||
|
void btm_ble_process_phy_update_pkt(uint8_t len, uint8_t* p);
|
||
|
void btm_ble_read_remote_features_complete(uint8_t* p, uint8_t length);
|
||
|
void btm_le_on_advertising_set_terminated(uint8_t* p, uint16_t length);
|
||
|
extern void btm_ble_write_adv_enable_complete(uint8_t* p, uint16_t evt_len);
|
||
|
extern void btm_ble_create_ll_conn_complete(tHCI_STATUS status);
|
||
|
extern void btm_ble_ltk_request(uint16_t handle, uint8_t rand[8],
|
||
|
uint16_t ediv);
|
||
|
extern void btm_ble_test_command_complete(uint8_t* p);
|
||
|
extern void btm_ble_rand_enc_complete(uint8_t* p, uint16_t op_code,
|
||
|
tBTM_RAND_ENC_CB* p_enc_cplt_cback);
|
||
|
extern bool btm_identity_addr_to_random_pseudo(RawAddress* bd_addr,
|
||
|
uint8_t* p_addr_type,
|
||
|
bool refresh);
|
||
|
extern bool btm_identity_addr_to_random_pseudo_from_address_with_type(
|
||
|
tBLE_BD_ADDR* address_with_type, bool refresh);
|
||
|
extern void btm_ble_read_resolving_list_entry_complete(uint8_t* p,
|
||
|
uint16_t evt_len);
|
||
|
extern void btm_ble_create_conn_cancel_complete(uint8_t* p);
|
||
|
extern void btm_ble_remove_resolving_list_entry_complete(uint8_t* p,
|
||
|
uint16_t evt_len);
|
||
|
extern void btm_ble_add_resolving_list_entry_complete(uint8_t* p,
|
||
|
uint16_t evt_len);
|
||
|
extern void btm_ble_clear_resolving_list_complete(uint8_t* p, uint16_t evt_len);
|
||
|
extern void btm_ble_process_periodic_adv_pkt(uint8_t len, uint8_t* p);
|
||
|
extern void btm_ble_process_periodic_adv_sync_est_evt(uint8_t len, uint8_t* p);
|
||
|
extern void btm_ble_process_periodic_adv_sync_lost_evt(uint8_t len, uint8_t* p);
|