iPXE
Bluetooth.h
Go to the documentation of this file.
00001 /** @file
00002   This file contains the Bluetooth definitions that are consumed by drivers.
00003   These definitions are from Bluetooth Core Specification Version 4.0 June, 2010
00004 
00005   Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
00006   This program and the accompanying materials
00007   are licensed and made available under the terms and conditions of the BSD License
00008   which accompanies this distribution.  The full text of the license may be found at
00009   http://opensource.org/licenses/bsd-license.php
00010 
00011   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
00013 
00014 **/
00015 
00016 #ifndef _BLUETOOTH_H_
00017 #define _BLUETOOTH_H_
00018 
00019 FILE_LICENCE ( BSD3 );
00020 
00021 #pragma pack(1)
00022 
00023 ///
00024 /// BLUETOOTH_ADDRESS
00025 ///
00026 typedef struct {
00027   ///
00028   /// 48bit Bluetooth device address.
00029   ///
00030   UINT8      Address[6];
00031 } BLUETOOTH_ADDRESS;
00032 
00033 ///
00034 /// BLUETOOTH_CLASS_OF_DEVICE. See Bluetooth specification for detail.
00035 ///
00036 typedef struct {
00037   UINT8      FormatType:2;
00038   UINT8      MinorDeviceClass: 6;
00039   UINT16     MajorDeviceClass: 5;
00040   UINT16     MajorServiceClass:11;
00041 } BLUETOOTH_CLASS_OF_DEVICE;
00042 
00043 #pragma pack()
00044 
00045 #define BLUETOOTH_HCI_COMMAND_LOCAL_READABLE_NAME_MAX_SIZE    248
00046 
00047 #define BLUETOOTH_HCI_LINK_KEY_SIZE                           16
00048 
00049 #endif