blob: a65f159c7d62e6e0856d53ab0946e65311033e40 [file] [log] [blame]
/*
* Copyright 2021 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 hardware.google.bluetooth.ccc@1.0;
/**
* Generic structure to return the timestamp
*/
struct Timestamp {
/**
* Timestamp in microsecond since system boot.
*/
uint32_t systemTime;
/**
* Timestamp in microsecond since Bluetooth controller power up.
*/
uint32_t bluetoothTime;
};
/**
* LMP event id to be monitored
* CONNECT_IND indicator for initiating connection, timestamp will be at the anchor point
* LL_PHY_UPDATE_IND indicator for PHY update
*/
enum LmpEventId : uint8_t {
CONNECT_IND = 0x00,
LL_PHY_UPDATE_IND = 0x01
};
/**
* Direction of the LMP event
*/
enum Direction : uint8_t {
TX = 0x00, RX = 0x01
};
/**
* Bluetooth Address Type. 6 octest representing bluetooth of a device.
*/
typedef uint8_t[6] Address;