summaryrefslogtreecommitdiff
path: root/firmware/usbstack/usb_hid.h
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-07-18 12:58:29 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-07-18 12:58:29 +0000
commite409fba7f85e9ddf51e2d6a3342dbca6f667e280 (patch)
tree63d0e5689658f3a439459611a31462b1cba9fa55 /firmware/usbstack/usb_hid.h
parent06bb5ea004dacfa81e3c8e192ad2c1f95d2ad18e (diff)
downloadrockbox-e409fba7f85e9ddf51e2d6a3342dbca6f667e280.tar.gz
rockbox-e409fba7f85e9ddf51e2d6a3342dbca6f667e280.zip
Flyspray: FS#10326
Author: Tomer Shalev Adds a USB HID sample application, a plugin tha allows to send HID commands while connected in non-storage mode. This also removes the HID stuff in the debug menu. Testing is now easily doable from the plugin Also general HID updates git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21953 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack/usb_hid.h')
-rw-r--r--firmware/usbstack/usb_hid.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/usbstack/usb_hid.h b/firmware/usbstack/usb_hid.h
index bce6943a4d..917992cd35 100644
--- a/firmware/usbstack/usb_hid.h
+++ b/firmware/usbstack/usb_hid.h
@@ -22,6 +22,7 @@
22#define USB_HID_H 22#define USB_HID_H
23 23
24#include "usb_ch9.h" 24#include "usb_ch9.h"
25#include "usb_core.h"
25#include "usb_hid_usage_tables.h" 26#include "usb_hid_usage_tables.h"
26 27
27int usb_hid_request_endpoints(struct usb_class_driver *drv); 28int usb_hid_request_endpoints(struct usb_class_driver *drv);
@@ -33,7 +34,7 @@ void usb_hid_disconnect(void);
33void usb_hid_transfer_complete(int ep, int dir, int status, int length); 34void usb_hid_transfer_complete(int ep, int dir, int status, int length);
34bool usb_hid_control_request(struct usb_ctrlrequest* req, unsigned char* dest); 35bool usb_hid_control_request(struct usb_ctrlrequest* req, unsigned char* dest);
35 36
36void usb_hid_send_consumer_usage(consumer_usage_page_t id); 37void usb_hid_send(usage_page_t usage_page, int id);
37 38
38#endif 39#endif
39 40