X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/071e02c6b6b4837fa9cf0b6d4c749994e02638d7..c31fdbd03eee95660d65adb0f1bf7c0c397fd435:/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h index 5f98e34a9..434e3ead4 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h @@ -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 @@ -28,6 +28,11 @@ this software. */ +/** \file + * + * Header file for BluetoothHCICommands.c. + */ + #ifndef _BLUETOOTH_HCICOMMANDS_H_ #define _BLUETOOTH_HCICOMMANDS_H_ @@ -38,7 +43,7 @@ #include #include - #include + #include #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 @@ -86,10 +91,10 @@ #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 { @@ -110,7 +115,7 @@ uint8_t Packets; uint16_t OpCode; } BT_HCIEvent_CommandStatus_t; - + typedef struct { uint8_t HCIPacketsAllowable; @@ -134,7 +139,7 @@ uint8_t LinkType; uint8_t EncryptionEnabled; } BT_HCIEvent_ConnectionComplete_t; - + typedef struct { uint8_t RemoteAddress[6]; @@ -144,7 +149,7 @@ { uint8_t RemoteAddress[6]; } BT_HCIEvent_LinkKeyReq_t; - + typedef struct { uint8_t RemoteAddress[6]; @@ -156,18 +161,18 @@ 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 @@ -194,13 +199,15 @@ 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 +