1/*
2 * Copyright (C) 2016 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.0;
18
19/** The interface from the Bluetooth Controller to the stack. */
20interface IBluetoothHciCallbacks {
21    /**
22     * Invoked when the Bluetooth controller initialization has been
23     * completed.
24     */
25    initializationComplete(Status status);
26
27    /**
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.
31     */
32    hciEventReceived(HciPacket event);
33
34    /**
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
37     */
38    aclDataReceived(HciPacket data);
39
40    /**
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
43     */
44    scoDataReceived(HciPacket data);
45};
46