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(const tBLE_BD_ADDR& address_with_type, uint16_t handle, 27 tHCI_ROLE role, bool match, uint16_t conn_interval, 28 uint16_t conn_latency, uint16_t conn_timeout, 29 const RawAddress& local_rpa, const RawAddress& peer_rpa, 30 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, tBLE_ADDR_TYPE peer_addr_type, 36 bool can_read_discoverable_characteristics); 37 void acl_ble_connection_fail(const tBLE_BD_ADDR& address_with_type, uint16_t handle, bool enhanced, 38 tHCI_STATUS status); 39 void acl_ble_update_event_received(tHCI_STATUS status, uint16_t handle, uint16_t interval, 40 uint16_t latency, uint16_t timeout); 41 void acl_ble_update_request_event_received(uint16_t handle, uint16_t interval_min, 42 uint16_t interval_max, uint16_t latency, 43 uint16_t timeout); 44 void acl_ble_data_length_change_event(uint16_t handle, uint16_t max_tx_octets, uint16_t max_tx_time, 45 uint16_t max_rx_octets, uint16_t max_rx_time); 46