Jakub Pawlowski | 13b4d31 | 2019-11-05 12:27:29 +0100 | [diff] [blame] | 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 | |
| 17 | package android.hardware.bluetooth@1.1; |
| 18 | |
| 19 | import @1.0::HciPacket; |
| 20 | import @1.0::IBluetoothHci; |
| 21 | import 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 | */ |
| 31 | interface 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 | /** |
Alain Michaud | b19aac8 | 2020-03-03 20:45:04 +0000 | [diff] [blame] | 38 | * Send an ISO data packet (as specified in the Bluetooth Core |
| 39 | * Specification v5.2) to the Bluetooth controller. |
Jakub Pawlowski | 13b4d31 | 2019-11-05 12:27:29 +0100 | [diff] [blame] | 40 | * Packets must be processed in order. |
| 41 | * @param data HCI data packet to be sent |
| 42 | */ |
| 43 | sendIsoData(HciPacket data); |
| 44 | }; |