1/* 2 * Copyright (C) 2019 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 17package android.hardware.bluetooth@1.1; 18 19import @1.0::HciPacket; 20import @1.0::IBluetoothHci; 21import IBluetoothHciCallbacks; 22 23/** 24 * The Host Controller Interface (HCI) is the layer defined by the Bluetooth 25 * specification between the software that runs on the host and the Bluetooth 26 * controller chip. This boundary is the natural choice for a Hardware 27 * Abstraction Layer (HAL). Dealing only in HCI packets and events simplifies 28 * the stack and abstracts away power management, initialization, and other 29 * implementation-specific details related to the hardware. 30 */ 31interface IBluetoothHci extends @1.0::IBluetoothHci { 32 /** 33 * Same as @1.0, but uses 1.1 Callbacks version 34 */ 35 initialize_1_1(@1.1::IBluetoothHciCallbacks callback); 36 37 /** 38 * Send an ISO data packet (as specified in the Bluetooth Core 39 * Specification v5.2) to the Bluetooth controller. 40 * Packets must be processed in order. 41 * @param data HCI data packet to be sent 42 */ 43 sendIsoData(HciPacket data); 44}; 45