1 /****************************************************************************** 2 * 3 * Copyright (C) 2016 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ******************************************************************************/ 18 19 #pragma once 20 21 #include <stdint.h> 22 23 #include <hardware/bluetooth.h> 24 25 // Captures a BLE connection parameter update request (Section 4.20 of 26 // Bluetooth Core V4.2 specification): 27 // 28 // |min_interval| and |max_interval| define the minimum and maximum values for 29 // the connection event interval (in units of 1.25ms and should be in the 30 // [6, 3200] range). 31 // |slave_latency_param| is the slave latency parameter for the connection in 32 // number of connection events (unitless and should be less than 500). 33 // |timeout_multiplier| is the connection timeout parameter (in units of 10ms 34 // and should be in the [10, 3200] range). 35 void btif_debug_ble_connection_update_request(bt_bdaddr_t bda, 36 uint16_t min_interval, uint16_t max_interval, uint16_t slave_latency_param, 37 uint16_t timeout_multiplier); 38 39 // Captures a BLE connection parameter update response ((Section 4.21 of 40 // Bluetooth Core V4.2 specification): 41 // 42 // |interval| defines the minimum and maximum values for the 43 // connection event interval (in units of 1.25ms and should be in the 44 // [6, 3200] range). 45 // |slave_latency_param| is the slave latency parameter for the connection in 46 // number of connection events (unitless and should be less than 500). 47 // |timeout_multiplier| is the connection timeout parameter (in units of 10ms 48 // and should be in the [10, 3200] range). 49 void btif_debug_ble_connection_update_response(bt_bdaddr_t bda, uint8_t status, 50 uint16_t interval, uint16_t slave_latency_param, 51 uint16_t timeout_multiplier); 52 53 // Dumps captured L2C information. 54 void btif_debug_l2c_dump(int fd); 55