Path: blob/main/sys/contrib/edk2/Include/IndustryStandard/Bluetooth.h
48292 views
/** @file1This file contains the Bluetooth definitions that are consumed by drivers.2These definitions are from Bluetooth Core Specification Version 4.0 June, 201034Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>5SPDX-License-Identifier: BSD-2-Clause-Patent67**/89#ifndef _BLUETOOTH_H_10#define _BLUETOOTH_H_1112#pragma pack(1)1314///15/// BLUETOOTH_ADDRESS16///17typedef struct {18///19/// 48bit Bluetooth device address.20///21UINT8 Address[6];22} BLUETOOTH_ADDRESS;2324///25/// BLUETOOTH_CLASS_OF_DEVICE. See Bluetooth specification for detail.26///27typedef struct {28UINT8 FormatType : 2;29UINT8 MinorDeviceClass : 6;30UINT16 MajorDeviceClass : 5;31UINT16 MajorServiceClass : 11;32} BLUETOOTH_CLASS_OF_DEVICE;3334///35/// BLUETOOTH_LE_ADDRESS36///37typedef struct {38///39/// 48-bit Bluetooth device address40///41UINT8 Address[6];42///43/// 0x00 - Public Device Address44/// 0x01 - Random Device Address45///46UINT8 Type;47} BLUETOOTH_LE_ADDRESS;4849#pragma pack()5051#define BLUETOOTH_HCI_COMMAND_LOCAL_READABLE_NAME_MAX_SIZE 2485253#define BLUETOOTH_HCI_LINK_KEY_SIZE 165455#endif565758