Hi All,
I have a HID keyboard application. I have single interface with one IN
endpoint EP1(IN) for keyboard and one OUT endpoint EP2(OUT) for
recieving data from the PC software.
I have modified the existing report descriptor with addition of a
vendor defined collection for output report descriptor as follows.
DESCRIPTOR MyRepDesc[L_F_KBD_REP] PROGMEM =
{ // bootable keyboard report
0x05, 0x01, // Usage Page (Generic Desktop)
0x09, 0x06, // Usage (Keyboard)
0xA1, 0x01, // Collection (Application)
0x05, 0x07, // Usage Page (Key Codes)
0x19, 0xE0, // Usage Min (E0h = 224d)
0x29, 0xE7, // Usage Max (E7h = 231d)
0x15, 0x00, // Logical Min (0)
0x25, 0x01, // Logical Max (1)
0x75, 0x01, // Report Size (1)
0x95, 0x08, // Report Count (8)
0x81, 0x02, // Input (Data, Variable, Abs)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x01, // Input (Const, Ary, Abs)
0x95, 0x05, // Report Count (5)
0x75, 0x01, // Report Size (1)
0x05, 0x08, // Usage Page (LED)
0x19, 0x01, // Usage Min (1)
0x29, 0x05, // Usage Max (5)
0x91, 0x02, // Output (Data, Var, Abs); LED
report
0x95, 0x01, // Report Count (1)
0x75, 0x03, // Report Size (3)
0x91, 0x01, // Output (Constant); padding
0x95, 0x06, // Report Count (6)
0x75, 0x08, // Report Size (8)
0x15, 0x00, // Logical Min (0)
0x26, 0xFF, 0x00, // Logical Max (255); all allowed key
codes
0x05, 0x07, // Usage Page (Key Codes)
0x19, 0x00, // Usage Min (0)
0x2A, 0xFF, 0x00, // Usage Max (255); all allowed key
codes
0x81, 0x00, // Input (Data, Ary); Key arrays
(6 bytes)
0xC0 // End Collection total 65 (41h) bytes
0x06, 0xA0, 0xFF, // USAGE_PAGE (Vendor Usage Page 1)
0x09, 0x01, // USAGE (Vendor Usage 1)
0xA1, 0x01, // COLLECTION (Application)
0x85, 0x02, // Report ID (1)
0x09, 0x01, // USAGE (Vendor Usage 1)
0x15, 0x00, // LOGICAL_MINIMUM (0)
0x26, 0xFF, 0x00, // LOGICAL_MAXIMUM (255)
0x75, 0x08, // REPORT_SIZE (8)
0x95, 0x06, // REPORT_COUNT(6)
0x91, 0x02, // OUTPUT (Data,Var,Abs)
0xC0 // END_COLLECTION
But its not enumarating ...whether i need to make any changes in my
report descriptor?
Thanks in Advance