1 /*
2  * Copyright 2020 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 #include "stack/include/bt_types.h"
20 #include "stack/include/hci_error_code.h"
21 
22 void acl_ble_connection_complete(const tBLE_BD_ADDR& address_with_type,
23                                  uint16_t handle, tHCI_ROLE role, bool match,
24                                  uint16_t conn_interval, uint16_t conn_latency,
25                                  uint16_t conn_timeout);
26 void acl_ble_enhanced_connection_complete(
27     const tBLE_BD_ADDR& address_with_type, uint16_t handle, tHCI_ROLE role,
28     bool match, uint16_t conn_interval, uint16_t conn_latency,
29     uint16_t conn_timeout, const RawAddress& local_rpa,
30     const RawAddress& peer_rpa, uint8_t peer_addr_type);
31 void acl_ble_enhanced_connection_complete_from_shim(
32     const tBLE_BD_ADDR& address_with_type, uint16_t handle, tHCI_ROLE role,
33     uint16_t conn_interval, uint16_t conn_latency, uint16_t conn_timeout,
34     const RawAddress& local_rpa, const RawAddress& peer_rpa,
35     uint8_t peer_addr_type);
36 void acl_ble_connection_fail(const tBLE_BD_ADDR& address_with_type,
37                              uint16_t handle, bool enhanced,
38                              tHCI_STATUS status);
39 void acl_ble_update_event_received(tHCI_STATUS status, uint16_t handle,
40                                    uint16_t interval, uint16_t latency,
41                                    uint16_t timeout);
42