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