X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/6198289b388e4122afe4913f899b37a8e7cd8af4..fabfdd454a11440a5789a70f6476889b02928438:/Demos/Host/GenericHIDHost/GenericHIDHost.h diff --git a/Demos/Host/GenericHIDHost/GenericHIDHost.h b/Demos/Host/GenericHIDHost/GenericHIDHost.h index f3005e596..3ae473e00 100644 --- a/Demos/Host/GenericHIDHost/GenericHIDHost.h +++ b/Demos/Host/GenericHIDHost/GenericHIDHost.h @@ -45,10 +45,9 @@ #include #include // Library Version Information - #include // PROGMEM tags readable by the ButtLoad project #include // ANSI Terminal Escape Codes #include // USB Functionality - #include // Serial stream driver + #include // Serial stream driver #include // LEDs driver #include // Simple scheduler for task management @@ -64,6 +63,12 @@ /** HID Class specific request to send a HID report to the device. */ #define REQ_SetReport 0x09 + /** HID Report type specifier, for output reports to a device */ + #define HID_REPORTTYPE_OUTPUT 0x02 + + /** HID Report type specifier, for feature reports to a device */ + #define HID_REPORTTYPE_FEATURE 0x03 + /* Task Definitions: */ TASK(USB_HID_Host); @@ -88,6 +93,6 @@ /* Function Prototypes: */ void UpdateStatus(uint8_t CurrentStatus); void ReadNextReport(void); - void WriteNextReport(uint8_t ReportOUTData, uint16_t ReportLength); + void WriteNextReport(uint8_t* ReportOUTData, uint8_t ReportIndex, uint8_t ReportType, uint16_t ReportLength); #endif