2016-09-12 19:58:42 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 The Android Open Source Project
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package android.hardware.bluetooth@1.0;
|
|
|
|
|
2017-03-28 23:40:58 +02:00
|
|
|
/** The interface from the Bluetooth Controller to the stack. */
|
2016-09-12 19:58:42 +02:00
|
|
|
interface IBluetoothHciCallbacks {
|
2017-01-18 03:23:12 +01:00
|
|
|
/**
|
|
|
|
* Invoked when the Bluetooth controller initialization has been
|
|
|
|
* completed.
|
|
|
|
*/
|
|
|
|
initializationComplete(Status status);
|
|
|
|
|
2016-09-12 19:58:42 +02:00
|
|
|
/**
|
|
|
|
* This function is invoked when an HCI event is received from the
|
|
|
|
* Bluetooth controller to be forwarded to the Bluetooth stack.
|
|
|
|
* @param event is the HCI event to be sent to the Bluetooth stack.
|
|
|
|
*/
|
2017-01-18 03:23:12 +01:00
|
|
|
hciEventReceived(HciPacket event);
|
2016-09-12 19:58:42 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Send an ACL data packet form the controller to the host.
|
|
|
|
* @param data the ACL HCI packet to be passed to the host stack
|
|
|
|
*/
|
2017-01-18 03:23:12 +01:00
|
|
|
aclDataReceived(HciPacket data);
|
2016-09-12 19:58:42 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Send a SCO data packet form the controller to the host.
|
|
|
|
* @param data the SCO HCI packet to be passed to the host stack
|
|
|
|
*/
|
2017-01-18 03:23:12 +01:00
|
|
|
scoDataReceived(HciPacket data);
|
2016-09-12 19:58:42 +02:00
|
|
|
};
|