summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-01-14 17:06:30 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-01-14 17:06:30 +0000
commitdba61e642d8471a75bb3b23dd74d127cb7a51ad0 (patch)
treeb5e7686b3e7becbf3f01cf7113e2474b4908e233 /nuttx/include
parent754e81dbafc4def5572bc9d0b91a799d0b68af52 (diff)
downloadpx4-nuttx-dba61e642d8471a75bb3b23dd74d127cb7a51ad0.tar.gz
px4-nuttx-dba61e642d8471a75bb3b23dd74d127cb7a51ad0.tar.bz2
px4-nuttx-dba61e642d8471a75bb3b23dd74d127cb7a51ad0.zip
Fleshing out keyboard driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3250 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rwxr-xr-xnuttx/include/nuttx/usb/hid.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/usb/hid.h b/nuttx/include/nuttx/usb/hid.h
index 6e4a8072b..31c3644a0 100755
--- a/nuttx/include/nuttx/usb/hid.h
+++ b/nuttx/include/nuttx/usb/hid.h
@@ -488,7 +488,22 @@
/****************************************************************************
* Public Types
****************************************************************************/
+/* HID Descriptor (HID 6.2.1) ***********************************************/
+struct usbhid_descriptor_s
+{
+ uint8_t len; /* Size of the HID descriptor */
+ uint8_t type; /* HID descriptor type */
+ uint8_t hid[2]; /* HID class specification release */
+ uint8_t country; /* Country code */
+ uint8_t ndesc; /* Number of descriptors (>=1) */
+ uint8_t classdesc; /* Class descriptor type (See 7.1) */
+ uint8_t desclen[2]; /* Size of the report descriptor */
+ uint8_t optdesc; /* Type of optional descriptor */
+ uint8_t optlen[2]; /* Size of the optional descriptor */
+};
+
+/* Standard Reports *********************************************************/
/* Keyboard input report (8 bytes) (HID B.1) */
struct usbhid_kbdreport_s