Subversion Repositories group.electronics

Rev

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

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