Subversion Repositories group.electronics

Rev

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

Rev 27 Rev 28
Line 3... Line 3...
3
PROGMEM char usbHidReportDescriptor[42] = {
3
PROGMEM char usbHidReportDescriptor[42] = {
4
    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)
4
    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)
5
    0x09, 0x05,                    // USAGE (Game Pad)
5
    0x09, 0x05,                    // USAGE (Game Pad)
6
    0xa1, 0x01,                    // COLLECTION (Application)
6
    0xa1, 0x01,                    // COLLECTION (Application)
7
    0xa1, 0x00,                    //   COLLECTION (Physical)
7
    0xa1, 0x00,                    //   COLLECTION (Physical)
8
    0x05, 0x02,                    //     USAGE_PAGE (Button)
8
    0x05, 0x01,                    //     USAGE_PAGE (Generic Desktop)
9
    0x09, 0x32,                    //     USAGE (Rx)
9
    0x09, 0x30,                    //     USAGE (X)
10
    0x09, 0x33,                    //     USAGE (Ry)
10
    0x09, 0x31,                    //     USAGE (Y)
11
    0x15, 0x00,                    //     LOGICAL_MINIMUM (0)
11
    0x15, 0x81,                    //     LOGICAL_MINIMUM (-127)
12
    0x25, 0xfe,              //     LOGICAL_MAXIMUM (255)
12
    0x25, 0x7f,              	   //     LOGICAL_MAXIMUM (127)
13
    0x75, 0x08,                    //     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
 
16
 
17
    0x05, 0x09,                    //     USAGE_PAGE (Button)
17
    0x05, 0x09,                    //     USAGE_PAGE (Button)
Line 20... Line 20...
20
    0x15, 0x00,                    //     LOGICAL_MINIMUM (0)
20
    0x15, 0x00,                    //     LOGICAL_MINIMUM (0)
21
    0x25, 0x01,                    //     LOGICAL_MAXIMUM (1)
21
    0x25, 0x01,                    //     LOGICAL_MAXIMUM (1)
22
    0x75, 0x01,                    //     REPORT_SIZE (1)
22
    0x75, 0x01,                    //     REPORT_SIZE (1)
23
    0x95, 0x10,                    //     REPORT_COUNT (16)
23
    0x95, 0x10,                    //     REPORT_COUNT (16)
24
    0x81, 0x02,                    //     INPUT (Data,Var,Abs)
24
    0x81, 0x02,                    //     INPUT (Data,Var,Abs)
25
    0xc0,                          //   END_COLLECTION			48
25
    0xc0,                          //   END_COLLECTION			
26
 
26
 
27
    0xc0                           // END_COLLECTION
27
    0xc0                           // END_COLLECTION
28
};
28
};
29
 
29