Minor documentation adjustments to the demos, projects and bootloaders to ensure...
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / Lib / BluetoothHCICommands.h
index 5f98e34..434e3ea 100644 (file)
@@ -1,21 +1,21 @@
 /*
              LUFA Library
-     Copyright (C) Dean Camera, 2010.
-              
+     Copyright (C) Dean Camera, 2012.
+
   dean [at] fourwalledcubicle [dot] com
-      www.fourwalledcubicle.com
+           www.lufa-lib.org
 */
 
 /*
-  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
+  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 
-  Permission to use, copy, modify, distribute, and sell this 
+  Permission to use, copy, modify, distribute, and sell this
   software and its documentation for any purpose is hereby granted
-  without fee, provided that the above copyright notice appear in 
+  without fee, provided that the above copyright notice appear in
   all copies and that both that the copyright notice and this
-  permission notice and warranty disclaimer appear in supporting 
-  documentation, and that the name of the author not be used in 
-  advertising or publicity pertaining to distribution of the 
+  permission notice and warranty disclaimer appear in supporting
+  documentation, and that the name of the author not be used in
+  advertising or publicity pertaining to distribution of the
   software without specific, written prior permission.
 
   The author disclaim all warranties with regard to this
   this software.
 */
 
+/** \file
+ *
+ *  Header file for BluetoothHCICommands.c.
+ */
+
 #ifndef _BLUETOOTH_HCICOMMANDS_H_
 #define _BLUETOOTH_HCICOMMANDS_H_
 
@@ -38,7 +43,7 @@
                #include <stdio.h>
 
                #include <LUFA/Drivers/USB/USB.h>
-               #include <LUFA/Drivers/Peripheral/SerialStream.h>
+               #include <LUFA/Drivers/Peripheral/Serial.h>
 
                #include "BluetoothStack.h"
                #include "BluetoothClassCodes.h"
@@ -77,7 +82,7 @@
                #define OCF_CTRLR_BASEBAND_WRITE_AUTHENTICATION_ENABLE 0x0020
                #define OCF_CTRLR_INFORMATIONAL_READBUFFERSIZE         0x0005
                #define OCF_CTRLR_INFORMATIONAL_READBDADDR             0x0009
-               
+
                #define EVENT_COMMAND_STATUS                           0x0F
                #define EVENT_COMMAND_COMPLETE                         0x0E
                #define EVENT_CONNECTION_COMPLETE                      0x03
                #define EVENT_REMOTE_NAME_REQUEST_COMPLETE             0x07
                #define EVENT_PIN_CODE_REQUEST                         0x16
                #define EVENT_LINK_KEY_REQUEST                         0x17
-               
+
                #define ERROR_LIMITED_RESOURCES                        0x0D
                #define ERROR_UNACCEPTABLE_BDADDR                      0x0F
-               
+
        /* Type Defines: */
                typedef struct
                {
                        uint8_t  Packets;
                        uint16_t OpCode;
                } BT_HCIEvent_CommandStatus_t;
-               
+
                typedef struct
                {
                        uint8_t  HCIPacketsAllowable;
                        uint8_t  LinkType;
                        uint8_t  EncryptionEnabled;
                } BT_HCIEvent_ConnectionComplete_t;
-               
+
                typedef struct
                {
                        uint8_t  RemoteAddress[6];
                {
                        uint8_t  RemoteAddress[6];
                } BT_HCIEvent_LinkKeyReq_t;
-                               
+
                typedef struct
                {
                        uint8_t  RemoteAddress[6];
                        uint8_t  PINCodeLength;
                        char     PINCode[16];
                } BT_HCICommand_PinCodeResp_t;
-               
+
                typedef struct
                {
                        uint8_t  RemoteAddress[6];
                        uint8_t  SlaveRole;
                } BT_HCICommand_AcceptConnectionReq_t;
-               
+
                typedef struct
                {
                        uint8_t  RemoteAddress[6];
                        uint8_t  Reason;
-               } BT_HCICommand_RejectConnectionReq_t;          
+               } BT_HCICommand_RejectConnectionReq_t;
 
        /* Enums: */
                enum BT_ScanEnable_Modes_t
                        Bluetooth_Conn_SendPINCode       = 11,
                        Bluetooth_Conn_SendLinkKeyNAK    = 12,
                };
-               
+
        /* Function Prototypes: */
                void Bluetooth_HCITask(void);
-                       
+
                #if defined(INCLUDE_FROM_BLUETOOTHHCICOMMANDS_C)
-                       static uint8_t Bluetooth_SendHCICommand(const BT_HCICommand_Header_t* const HCICommandHeader, const void* Parameters,
+                       static uint8_t Bluetooth_SendHCICommand(const BT_HCICommand_Header_t* const HCICommandHeader,
+                                                               const void* Parameters,
                                                                const uint16_t ParameterLength);
                #endif
-               
+
 #endif
+