More improvements to the incomplete BluetoothHost demo - add Disconnection Event...
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / Lib / BluetoothHCICommands.h
index 03a6505..4df5861 100644 (file)
@@ -42,6 +42,8 @@
                #include "BluetoothClassCodes.h"\r
 \r
        /* Macros: */\r
+               #define BT_HCI_DEBUG(s, ...)                           printf_P(PSTR("(HCI) " s "\r\n"), __VA_ARGS__)\r
+       \r
                #define OGF_LINK_CONTROL                               0x01\r
                #define OGF_CTRLR_BASEBAND                             0x03\r
                #define OGF_CTRLR_INFORMATIONAL                        0x04\r
        /* Enums: */\r
                enum Bluetooth_ScanEnable_Modes_t\r
                {\r
-                       NoScansEnabled            = 0,\r
-                       InquiryScanOnly           = 1,\r
-                       PageScanOnly              = 2,\r
-                       InquiryAndPageScans       = 3,\r
+                       BT_SCANMODE_NoScansEnabled       = 0,\r
+                       BT_SCANMODE_InquiryScanOnly      = 1,\r
+                       BT_SCANMODE_PageScanOnly         = 2,\r
+                       BT_SCANMODE_InquiryAndPageScans  = 3,\r
                };\r
 \r
                enum BluetoothStack_States_t\r
                {\r
-                       Bluetooth_ProcessEvents                   = 0,\r
-                       Bluetooth_Init                            = 1,\r
-                       Bluetooth_Init_Reset                      = 2,\r
-                       Bluetooth_Init_ReadBufferSize             = 3,\r
-                       Bluetooth_Init_SetLocalName               = 4,\r
-                       Bluetooth_Init_SetDeviceClass             = 5,\r
-                       Bluetooth_Init_WriteScanEnable            = 6,\r
-                       Bluetooth_Conn_AcceptConnection           = 7,\r
-                       Bluetooth_Conn_RejectConnection           = 8,\r
-                       Bluetooth_Conn_SendPINCode                = 9,\r
+                       Bluetooth_ProcessEvents          = 0,\r
+                       Bluetooth_Init                   = 1,\r
+                       Bluetooth_Init_Reset             = 2,\r
+                       Bluetooth_Init_SetLocalName      = 3,\r
+                       Bluetooth_Init_SetDeviceClass    = 4,\r
+                       Bluetooth_Init_WriteScanEnable   = 5,\r
+                       Bluetooth_Conn_AcceptConnection  = 6,\r
+                       Bluetooth_Conn_RejectConnection  = 7,\r
+                       Bluetooth_Conn_SendPINCode       = 8,\r
                };\r
                \r
        /* External Variables: */\r
                void Bluetooth_ProcessHCIEvents(void);\r
 \r
                #if defined(INCLUDE_FROM_BLUETOOTHHCICOMMANDS_C)\r
-                       static uint8_t Bluetooth_SendHCICommand(void* Parameters, uint8_t ParamLength);\r
+                       static uint8_t Bluetooth_SendHCICommand(void* Parameters, uint16_t ParameterLength);\r
                #endif\r
                \r
 #endif\r