blob: b22fa345d6cd4e6f4a88ae72c27f45aa3d06bfc3 [file] [log] [blame]
Myles Watsonacfbd252016-09-12 10:58:42 -07001/*
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
Andreas Huber675ae492017-03-28 14:40:58 -070019/** The interface from the Bluetooth Controller to the stack. */
Myles Watsonacfbd252016-09-12 10:58:42 -070020interface IBluetoothHciCallbacks {
21 /**
Andre Eisenbach9041d972017-01-17 18:23:12 -080022 * Invoked when the Bluetooth controller initialization has been
23 * completed.
24 */
25 initializationComplete(Status status);
26
27 /**
Myles Watsonacfbd252016-09-12 10:58:42 -070028 * 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 */
Andre Eisenbach9041d972017-01-17 18:23:12 -080032 hciEventReceived(HciPacket event);
Myles Watsonacfbd252016-09-12 10:58:42 -070033
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 */
Andre Eisenbach9041d972017-01-17 18:23:12 -080038 aclDataReceived(HciPacket data);
Myles Watsonacfbd252016-09-12 10:58:42 -070039
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 */
Andre Eisenbach9041d972017-01-17 18:23:12 -080044 scoDataReceived(HciPacket data);
Myles Watsonacfbd252016-09-12 10:58:42 -070045};