]>
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 | |
5 | Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r | |
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 | |
24 | typedef 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 | |
34 | typedef 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 | |
41 | #pragma pack()\r | |
42 | \r | |
43 | #define BLUETOOTH_HCI_COMMAND_LOCAL_READABLE_NAME_MAX_SIZE 248\r | |
44 | \r | |
45 | #define BLUETOOTH_HCI_LINK_KEY_SIZE 16\r | |
46 | \r | |
47 | #endif\r |