]>
Commit | Line | Data |
---|---|---|
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 |
9344f092 | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
362c355c QS |
7 | \r |
8 | **/\r | |
9 | \r | |
10 | #ifndef _BLUETOOTH_H_\r | |
11 | #define _BLUETOOTH_H_\r | |
12 | \r | |
13 | #pragma pack(1)\r | |
14 | \r | |
15 | ///\r | |
16 | /// BLUETOOTH_ADDRESS\r | |
17 | ///\r | |
18 | typedef struct {\r | |
19 | ///\r | |
20 | /// 48bit Bluetooth device address.\r | |
21 | ///\r | |
22 | UINT8 Address[6];\r | |
23 | } BLUETOOTH_ADDRESS;\r | |
24 | \r | |
25 | ///\r | |
26 | /// BLUETOOTH_CLASS_OF_DEVICE. See Bluetooth specification for detail.\r | |
27 | ///\r | |
28 | typedef struct {\r | |
29 | UINT8 FormatType:2;\r | |
30 | UINT8 MinorDeviceClass: 6;\r | |
31 | UINT16 MajorDeviceClass: 5;\r | |
32 | UINT16 MajorServiceClass:11;\r | |
33 | } BLUETOOTH_CLASS_OF_DEVICE;\r | |
34 | \r | |
ff5623e9 RN |
35 | ///\r |
36 | /// BLUETOOTH_LE_ADDRESS\r | |
37 | ///\r | |
38 | typedef struct {\r | |
39 | ///\r | |
40 | /// 48-bit Bluetooth device address\r | |
41 | ///\r | |
42 | UINT8 Address[6];\r | |
43 | ///\r | |
44 | /// 0x00 - Public Device Address\r | |
45 | /// 0x01 - Random Device Address\r | |
46 | ///\r | |
47 | UINT8 Type;\r | |
48 | } BLUETOOTH_LE_ADDRESS;\r | |
49 | \r | |
362c355c QS |
50 | #pragma pack()\r |
51 | \r | |
52 | #define BLUETOOTH_HCI_COMMAND_LOCAL_READABLE_NAME_MAX_SIZE 248\r | |
53 | \r | |
54 | #define BLUETOOTH_HCI_LINK_KEY_SIZE 16\r | |
55 | \r | |
56 | #endif\r |