]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/IndustryStandard/Bluetooth.h
MdePkg/DevicePath: Add BluetoothLe device path node support
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / Bluetooth.h
CommitLineData
362c355c
QS
1/** @file\r
2 This file contains the Bluetooth definitions that are consumed by drivers.\r
3 These definitions are from Bluetooth Core Specification Version 4.0 June, 2010\r
4\r
ff5623e9 5 Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
362c355c
QS
6 This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef _BLUETOOTH_H_\r
17#define _BLUETOOTH_H_\r
18\r
19#pragma pack(1)\r
20\r
21///\r
22/// BLUETOOTH_ADDRESS\r
23///\r
24typedef struct {\r
25 ///\r
26 /// 48bit Bluetooth device address.\r
27 ///\r
28 UINT8 Address[6];\r
29} BLUETOOTH_ADDRESS;\r
30\r
31///\r
32/// BLUETOOTH_CLASS_OF_DEVICE. See Bluetooth specification for detail.\r
33///\r
34typedef struct {\r
35 UINT8 FormatType:2;\r
36 UINT8 MinorDeviceClass: 6;\r
37 UINT16 MajorDeviceClass: 5;\r
38 UINT16 MajorServiceClass:11;\r
39} BLUETOOTH_CLASS_OF_DEVICE;\r
40\r
ff5623e9
RN
41///\r
42/// BLUETOOTH_LE_ADDRESS\r
43///\r
44typedef struct {\r
45 ///\r
46 /// 48-bit Bluetooth device address\r
47 ///\r
48 UINT8 Address[6];\r
49 ///\r
50 /// 0x00 - Public Device Address\r
51 /// 0x01 - Random Device Address\r
52 ///\r
53 UINT8 Type;\r
54} BLUETOOTH_LE_ADDRESS;\r
55\r
362c355c
QS
56#pragma pack()\r
57\r
58#define BLUETOOTH_HCI_COMMAND_LOCAL_READABLE_NAME_MAX_SIZE 248\r
59\r
60#define BLUETOOTH_HCI_LINK_KEY_SIZE 16\r
61\r
62#endif\r