aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/Host/HID.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-09-21 12:23:09 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-09-21 12:23:09 +0000
commit242303c1607fca405d9407b9fab6fb78cae676e2 (patch)
tree1163c20f5035ee4df711d1c718ef310ba89d2b53 /LUFA/Drivers/USB/Class/Host/HID.h
parent3ffa7543a05761a0c69144c9b66196b08d8f1249 (diff)
downloadlufa-242303c1607fca405d9407b9fab6fb78cae676e2.tar.gz
lufa-242303c1607fca405d9407b9fab6fb78cae676e2.tar.bz2
lufa-242303c1607fca405d9407b9fab6fb78cae676e2.zip
Add new attributes to the HID Report Parser and HID Host Mode Class driver to keep track of the largest report the device can send for buffer allocation purposes. Change MouseHostWithParser and KeyboardHostWithParser demos to only allocate the needed number of bytes.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Host/HID.h')
-rw-r--r--LUFA/Drivers/USB/Class/Host/HID.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/Class/Host/HID.h b/LUFA/Drivers/USB/Class/Host/HID.h
index 8f80ea8c2..5526990ad 100644
--- a/LUFA/Drivers/USB/Class/Host/HID.h
+++ b/LUFA/Drivers/USB/Class/Host/HID.h
@@ -101,6 +101,8 @@
*/
bool UsingBootProtocol; /**< Indicates that the interface is currently initialised in Boot Protocol mode */
uint16_t HIDReportSize; /**< Size in bytes of the HID report descriptor in the device */
+
+ uint8_t LargestReportSize; /**< Largest report the device will send, in bytes */
} State; /**< State data for the USB class interface within the device. All elements in this section
* <b>may</b> be set to initial values, but may also be ignored to default to sane values when
* the interface is enumerated.