Subversion Repositories group.electronics

Rev

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

Rev 37 Rev 39
Line 1... Line 1...
1
#include <avr/pgmspace.h>
1
#include <avr/pgmspace.h>
2
 
2
 
3
PROGMEM char usbHidReportDescriptor[91] = {
3
PROGMEM char usbHidReportDescriptor[81] = {
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 15... Line 15...
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
 
17
 
18
    0x95, 0x01,                    //   REPORT_COUNT (1)
18
    0x95, 0x01,                    //   REPORT_COUNT (1)
19
    0x75, 0x08,                    //   REPORT_SIZE (8)
19
    0x75, 0x08,                    //   REPORT_SIZE (8)
20
    0x81, 0x03,                    //   INPUT (Cnst,Var,Abs)
-
 
21
 
-
 
22
    0x95, 0x06,                    //   REPORT_COUNT (6)
-
 
23
    0x75, 0x08,                    //   REPORT_SIZE (8)
-
 
24
    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)
-
 
25
    0x25, 0x65,                    //   LOGICAL_MAXIMUM (101)
20
    0x25, 0x65,                    //   LOGICAL_MAXIMUM (101)
26
    0x05, 0x07,                    //   USAGE_PAGE (Keyboard)
-
 
27
    0x19, 0x00,                    //   USAGE_MINIMUM (Reserved (no event indicated))
21
    0x19, 0x00,                    //   USAGE_MINIMUM (Reserved (no event indicated))
28
    0x29, 0x65,                    //   USAGE_MAXIMUM (Keyboard Application)
22
    0x29, 0x65,                    //   USAGE_MAXIMUM (Keyboard Application)
29
    0x81, 0x00,                    //   INPUT (Data,Ary,Abs)				23 46
23
    0x81, 0x00,                    //   INPUT (Data,Ary,Abs)				18 36
30
    0xc0,                          // END_COLLECTION					   47
24
    0xc0,                          // END_COLLECTION					   37
31
 
25
 
32
    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)			22 44
26
    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)			22 44
33
    0x09, 0x04,                    // USAGE (Joystick)
27
    0x09, 0x05,                    // USAGE (Joystick)
34
    0xa1, 0x01,                    // COLLECTION (Application)
28
    0xa1, 0x01,                    // COLLECTION (Application)
35
//    0x09, 0x01,                    //   USAGE (Pointer)
-
 
36
    0xa1, 0x00,                    //   COLLECTION (Physical)
29
    0xa1, 0x00,                    //   COLLECTION (Physical)
37
    0x85, 0x02,                    //   REPORT_ID (2)
30
    0x85, 0x02,                    //     REPORT_ID (2)
38
    0x05, 0x01,                    //     USAGE_PAGE (Generic Desktop)
31
    0x05, 0x01,                    //     USAGE_PAGE (Generic Desktop)
39
    0x09, 0x30,                    //     USAGE (X)
32
    0x09, 0x30,                    //     USAGE (X)
40
    0x09, 0x31,                    //     USAGE (Y)
33
    0x09, 0x31,                    //     USAGE (Y)
41
    0x15, 0x81,                    //     LOGICAL_MINIMUM (-127)
34
    0x15, 0x81,                    //     LOGICAL_MINIMUM (-127)
42
    0x25, 0x7f,              	   //     LOGICAL_MAXIMUM (127)
35
    0x25, 0x7f,              	   //     LOGICAL_MAXIMUM (127)