Add bidirectional channel configuration -- remote device is not ACKing sent Configura...
[pub/lufa.git] / Demos / Host / Incomplete / BluetoothHost / Lib / BluetoothHCICommands.h
index f64bba0..9c1adf0 100644 (file)
 \r
                        uint8_t  ParameterLength;\r
                        uint8_t  Parameters[];\r
-               } Bluetooth_HCICommand_Header_t;\r
+               } BT_HCICommand_Header_t;\r
 \r
                typedef struct\r
                {\r
                        uint8_t  EventCode;\r
                        uint8_t  ParameterLength;\r
-               } Bluetooth_HCIEvent_Header_t;\r
+               } BT_HCIEvent_Header_t;\r
 \r
                typedef struct\r
                {\r
                                int OCF : 10;\r
                                int OGF : 6;\r
                        } OpCode;\r
-               } Bluetooth_HCIEvent_CommandStatus_t;\r
+               } BT_HCIEvent_CommandStatus_t;\r
                \r
                typedef struct\r
                {\r
                        uint8_t  HCLPacketsAllowable;\r
                        uint16_t Opcode;\r
                        uint8_t  ReturnParams[];\r
-               } Bluetooth_HCIEvent_CommandComplete_t;\r
+               } BT_HCIEvent_CommandComplete_t;\r
 \r
                typedef struct\r
                {\r
                        uint8_t  ClassOfDevice_Service;\r
                        uint16_t ClassOfDevice_MajorMinor;\r
                        uint8_t  LinkType;\r
-               } Bluetooth_HCIEvent_ConnectionRequest_t;\r
+               } BT_HCIEvent_ConnectionRequest_t;\r
 \r
                typedef struct\r
                {\r
                        uint8_t  RemoteAddress[6];\r
                        uint8_t  LinkType;\r
                        uint8_t  EncryptionEnabled;\r
-               } Bluetooth_HCIEvent_ConnectionComplete_t;\r
+               } BT_HCIEvent_ConnectionComplete_t;\r
                \r
                typedef struct\r
                {\r
                        uint8_t  RemoteAddress[6];\r
-               } Bluetooth_HCIEvent_PinCodeRequest_t;\r
+               } BT_HCIEvent_PinCodeReq_t;\r
                \r
                typedef struct\r
                {\r
                        uint8_t  RemoteAddress[6];\r
                        uint8_t  SlaveRole;\r
-               } Bluetooth_HCICommand_AcceptConnectionRequest_t;\r
+               } BT_HCICommand_AcceptConnectionReq_t;\r
                \r
                typedef struct\r
                {\r
                        uint8_t  RemoteAddress[6];\r
                        uint8_t  Reason;\r
-               } Bluetooth_HCICommand_RejectConnectionRequest_t;\r
+               } BT_HCICommand_RejectConnectionReq_t;\r
 \r
                typedef struct\r
                {\r
                        uint8_t  RemoteAddress[6];\r
                        uint8_t  PINCodeLength;\r
                        char     PINCode[16];\r
-               } Bluetooth_HCICommand_PinCodeResponse_t;\r
+               } BT_HCICommand_PinCodeResp_t;\r
                \r
        /* Enums: */\r
-               enum Bluetooth_ScanEnable_Modes_t\r
+               enum BT_ScanEnable_Modes_t\r
                {\r
                        BT_SCANMODE_NoScansEnabled       = 0,\r
                        BT_SCANMODE_InquiryScanOnly      = 1,\r
                        BT_SCANMODE_InquiryAndPageScans  = 3,\r
                };\r
 \r
-               enum BluetoothStack_States_t\r
+               enum BT_HCIStates_t\r
                {\r
                        Bluetooth_ProcessEvents          = 0,\r
                        Bluetooth_Init                   = 1,\r
                extern uint8_t Bluetooth_HCIProcessingState;\r
 \r
        /* Function Prototypes: */\r
-               void Bluetooth_ProcessHCICommands(void);\r
-               void Bluetooth_ProcessHCIEvents(void);\r
+               void Bluetooth_HCITask(void);\r
                        \r
                #if defined(INCLUDE_FROM_BLUETOOTHHCICOMMANDS_C)\r
                        static uint8_t Bluetooth_SendHCICommand(void* Parameters, uint16_t ParameterLength);\r