Fixed CDCHost not clearing configured endpoints and resetting configured endpoints...
[pub/USBasp.git] / Demos / Host / GenericHIDHost / GenericHIDHost.h
index f3005e5..3ae473e 100644 (file)
                #include <stdio.h>\r
 \r
                #include <LUFA/Version.h>                                // Library Version Information\r
-               #include <LUFA/Common/ButtLoadTag.h>                     // PROGMEM tags readable by the ButtLoad project\r
                #include <LUFA/Drivers/Misc/TerminalCodes.h>             // ANSI Terminal Escape Codes\r
                #include <LUFA/Drivers/USB/USB.h>                        // USB Functionality\r
-               #include <LUFA/Drivers/AT90USBXXX/Serial_Stream.h>       // Serial stream driver\r
+               #include <LUFA/Drivers/Peripheral/SerialStream.h>        // Serial stream driver\r
                #include <LUFA/Drivers/Board/LEDs.h>                     // LEDs driver\r
                #include <LUFA/Scheduler/Scheduler.h>                    // Simple scheduler for task management\r
                \r
                /** HID Class specific request to send a HID report to the device. */\r
                #define REQ_SetReport                    0x09\r
                \r
+               /** HID Report type specifier, for output reports to a device */\r
+               #define HID_REPORTTYPE_OUTPUT            0x02\r
+               \r
+               /** HID Report type specifier, for feature reports to a device */\r
+               #define HID_REPORTTYPE_FEATURE           0x03\r
+\r
        /* Task Definitions: */\r
                TASK(USB_HID_Host);\r
 \r
@@ -88,6 +93,6 @@
        /* Function Prototypes: */\r
                void UpdateStatus(uint8_t CurrentStatus);\r
                void ReadNextReport(void);\r
-               void WriteNextReport(uint8_t ReportOUTData, uint16_t ReportLength);\r
+               void WriteNextReport(uint8_t* ReportOUTData, uint8_t ReportIndex, uint8_t ReportType, uint16_t ReportLength);\r
                \r
 #endif\r