Subversion Repositories group.electronics

Rev

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

Rev 21 Rev 24
Line 1... Line 1...
1
#include <avr/pgmspace.h>
1
#include <avr/pgmspace.h>
2
 
2
 
3
PROGMEM char usbHidReportDescriptor[42] = {
3
PROGMEM char usbHidReportDescriptor[58] = {
4
    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)
4
    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)
5
    0x09, 0x05,                    // USAGE (Game Pad)
5
    0x09, 0x04,                    // USAGE (Joystick)
6
    0xa1, 0x01,                    // COLLECTION (Application)
6
    0xa1, 0x01,                    // COLLECTION (Application)
7
    0x09, 0x01,                    //   USAGE (Pointer)
7
    0x09, 0x01,                    //   USAGE (Pointer)
8
    0xa1, 0x00,                    //   COLLECTION (Physical)
8
    0xa1, 0x00,                    //   COLLECTION (Physical)
9
    0x09, 0x30,                    //     USAGE (X)
9
    0x09, 0x30,                    //     USAGE (X)
10
    0x09, 0x31,                    //     USAGE (Y)
10
    0x09, 0x31,                    //     USAGE (Y)
11
    0x15, 0x00,                    //     LOGICAL_MINIMUM (0)
11
    0x15, 0x81,                    //     LOGICAL_MINIMUM (-127)
12
    0x25, 0x02,                    //     LOGICAL_MAXIMUM (2)
12
    0x25, 0x7f,                    //     LOGICAL_MAXIMUM (127)
13
    0x75, 0x02,                    //     REPORT_SIZE (2)
13
    0x75, 0x02,                    //     REPORT_SIZE (8)
14
    0x95, 0x02,                    //     REPORT_COUNT (2)
14
    0x95, 0x02,                    //     REPORT_COUNT (2)
15
    0x81, 0x02,                    //     INPUT (Data,Var,Abs)
15
    0x81, 0x02,                    //     INPUT (Data,Var,Abs)
16
    0xc0,                          //   END_COLLECTION
16
    0xc0,                          //   END_COLLECTION
-
 
17
 
17
    0x05, 0x09,                    //   USAGE_PAGE (Button)
18
    0x05, 0x09,                    //   USAGE_PAGE (Button)
18
    0x19, 0x01,                    //   USAGE_MINIMUM (Button 1)
19
    0x19, 0x01,                    //   USAGE_MINIMUM (Button 1)
19
    0x29, 0x04,                    //   USAGE_MAXIMUM (Button 4)
20
    0x29, 0x08,                    //   USAGE_MAXIMUM (Button 8)
20
    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)
21
    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)
21
    0x25, 0x01,                    //   LOGICAL_MAXIMUM (1)
22
    0x25, 0x01,                    //   LOGICAL_MAXIMUM (1)
22
    0x75, 0x01,                    //   REPORT_SIZE (1)
23
    0x75, 0x01,                    //   REPORT_SIZE (1)
23
    0x95, 0x04,                    //   REPORT_COUNT (4)
24
    0x95, 0x08,                    //   REPORT_COUNT (8)
24
    0x81, 0x02,                    //   INPUT (Data,Var,Abs)
25
    0x81, 0x02,                    //   INPUT (Data,Var,Abs)
-
 
26
 
-
 
27
    0x05, 0x09,                    //   USAGE_PAGE (Button)
-
 
28
    0x19, 0x01,                    //   USAGE_MINIMUM (Button 1)
-
 
29
    0x29, 0x10,                    //   USAGE_MAXIMUM (Button 16)
-
 
30
    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)
-
 
31
    0x25, 0x01,                    //   LOGICAL_MAXIMUM (1)
-
 
32
    0x75, 0x01,                    //   REPORT_SIZE (1)
-
 
33
    0x95, 0x10,                    //   REPORT_COUNT (16)
-
 
34
    0x81, 0x02,                    //   INPUT (Data,Var,Abs)
-
 
35
 
25
    0xc0                           // END_COLLECTION
36
    0xc0                           // END_COLLECTION
26
};
37
};
27
 
38
 
28
 
39