Subversion Repositories group.electronics

Rev

Rev 33 | Rev 37 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33 Rev 34
Line 1... Line 1...
1
#include <avr/pgmspace.h>
1
#include <avr/pgmspace.h>
2
 
2
 
3
PROGMEM char usbHidReportDescriptor[95] = {
3
PROGMEM char usbHidReportDescriptor[89] = {
4
 
4
 
5
    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)
5
    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)
6
    0x09, 0x06,                    // USAGE (Keyboard)
6
    0x09, 0x06,                    // USAGE (Keyboard)
7
    0xa1, 0x01,                    // COLLECTION (Application)
7
    0xa1, 0x01,                    // COLLECTION (Application)
8
    0x85, 0x01,                    //   REPORT_ID (1)
8
    0x85, 0x01,                    //   REPORT_ID (1)
Line 14... Line 14...
14
    0x75, 0x01,                    //   REPORT_SIZE (1)
14
    0x75, 0x01,                    //   REPORT_SIZE (1)
15
    0x95, 0x08,                    //   REPORT_COUNT (8)
15
    0x95, 0x08,                    //   REPORT_COUNT (8)
16
    0x81, 0x02,                    //   INPUT (Data,Var,Abs)
16
    0x81, 0x02,                    //   INPUT (Data,Var,Abs)
17
    0x95, 0x01,                    //   REPORT_COUNT (1)
17
    0x95, 0x01,                    //   REPORT_COUNT (1)
18
    0x75, 0x08,                    //   REPORT_SIZE (8)
18
    0x75, 0x08,                    //   REPORT_SIZE (8)
19
    0x81, 0x03,                    //   INPUT (Cnst,Var,Abs)
-
 
20
    0x95, 0x06,                    //   REPORT_COUNT (6)
-
 
21
    0x75, 0x08,                    //   REPORT_SIZE (8)
-
 
22
    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)
19
    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)
23
    0x25, 0x65,                    //   LOGICAL_MAXIMUM (101)
20
    0x25, 0x65,                    //   LOGICAL_MAXIMUM (101)
24
    0x05, 0x07,                    //   USAGE_PAGE (Keyboard)
21
    0x05, 0x07,                    //   USAGE_PAGE (Keyboard)
25
    0x19, 0x00,                    //   USAGE_MINIMUM (Reserved (no event indicated))
22
    0x19, 0x00,                    //   USAGE_MINIMUM (Reserved (no event indicated))
26
    0x29, 0x65,                    //   USAGE_MAXIMUM (Keyboard Application)
23
    0x29, 0x65,                    //   USAGE_MAXIMUM (Keyboard Application)
27
    0x81, 0x00,                    //   INPUT (Data,Ary,Abs)				23 46
24
    0x81, 0x00,                    //   INPUT (Data,Ary,Abs)				20 40
28
    0xc0,                          // END_COLLECTION					   47
25
    0xc0,                          // END_COLLECTION					   41
29
 
26
 
30
    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)			24 48
27
    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)			24 48
31
    0x09, 0x04,                    // USAGE (Joystick)
28
    0x09, 0x04,                    // USAGE (Joystick)
32
    0xa1, 0x01,                    // COLLECTION (Application)
29
    0xa1, 0x01,                    // COLLECTION (Application)
33
    0x09, 0x01,                    //   USAGE (Pointer)
30
    0x09, 0x01,                    //   USAGE (Pointer)