2 * Copyright (C) 2016 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package android.hardware.bluetooth@1.0;
19 /** The interface from the Bluetooth Controller to the stack. */
20 interface IBluetoothHciCallbacks {
22 * Invoked when the Bluetooth controller initialization has been
25 initializationComplete(Status status);
28 * This function is invoked when an HCI event is received from the
29 * Bluetooth controller to be forwarded to the Bluetooth stack.
30 * @param event is the HCI event to be sent to the Bluetooth stack.
32 hciEventReceived(HciPacket event);
35 * Send an ACL data packet form the controller to the host.
36 * @param data the ACL HCI packet to be passed to the host stack
38 aclDataReceived(HciPacket data);
41 * Send a SCO data packet form the controller to the host.
42 * @param data the SCO HCI packet to be passed to the host stack
44 scoDataReceived(HciPacket data);