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 <cstdint> 20 21 #include "stack/include/bt_types.h" 22 #include "stack/include/hci_error_code.h" 23 #include "types/raw_address.h" 24 25 void acl_ble_connection_complete(const tBLE_BD_ADDR& address_with_type, 26 uint16_t handle, tHCI_ROLE role, bool match, 27 uint16_t conn_interval, uint16_t conn_latency, 28 uint16_t conn_timeout); 29 void acl_ble_enhanced_connection_complete( 30 const tBLE_BD_ADDR& address_with_type, uint16_t handle, tHCI_ROLE role, 31 bool match, uint16_t conn_interval, uint16_t conn_latency, 32 uint16_t conn_timeout, const RawAddress& local_rpa, 33 const RawAddress& peer_rpa, tBLE_ADDR_TYPE peer_addr_type); 34 void acl_ble_enhanced_connection_complete_from_shim( 35 const tBLE_BD_ADDR& address_with_type, uint16_t handle, tHCI_ROLE role, 36 uint16_t conn_interval, uint16_t conn_latency, uint16_t conn_timeout, 37 const RawAddress& local_rpa, const RawAddress& peer_rpa, 38 tBLE_ADDR_TYPE peer_addr_type); 39 void acl_ble_connection_fail(const tBLE_BD_ADDR& address_with_type, 40 uint16_t handle, bool enhanced, 41 tHCI_STATUS status); 42 void acl_ble_update_event_received(tHCI_STATUS status, uint16_t handle, 43 uint16_t interval, uint16_t latency, 44 uint16_t timeout); 45 void acl_ble_data_length_change_event(uint16_t handle, uint16_t max_tx_octets, 46 uint16_t max_tx_time, 47 uint16_t max_rx_octets, 48 uint16_t max_rx_time); 49