Subversion Repositories group.electronics

Rev

Rev 26 | Rev 28 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21 pfowler 1
#include <avr/pgmspace.h>
2
 
26 pfowler 3
PROGMEM char usbHidReportDescriptor[42] = {
21 pfowler 4
    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)
26 pfowler 5
    0x09, 0x05,                    // USAGE (Game Pad)
21 pfowler 6
    0xa1, 0x01,                    // COLLECTION (Application)
7
    0xa1, 0x00,                    //   COLLECTION (Physical)
26 pfowler 8
    0x05, 0x02,                    //     USAGE_PAGE (Button)
27 pfowler 9
    0x09, 0x32,                    //     USAGE (Rx)
10
    0x09, 0x33,                    //     USAGE (Ry)
26 pfowler 11
    0x15, 0x00,                    //     LOGICAL_MINIMUM (0)
27 pfowler 12
    0x25, 0xfe,              //     LOGICAL_MAXIMUM (255)
26 pfowler 13
    0x75, 0x08,                    //     REPORT_SIZE (8)
21 pfowler 14
    0x95, 0x02,                    //     REPORT_COUNT (2)
15
    0x81, 0x02,                    //     INPUT (Data,Var,Abs)
24 pfowler 16
 
26 pfowler 17
    0x05, 0x09,                    //     USAGE_PAGE (Button)
18
    0x19, 0x01,                    //     USAGE_MINIMUM (Button 1)
19
    0x29, 0x10,                    //     USAGE_MAXIMUM (Button 16)
20
    0x15, 0x00,                    //     LOGICAL_MINIMUM (0)
21
    0x25, 0x01,                    //     LOGICAL_MAXIMUM (1)
22
    0x75, 0x01,                    //     REPORT_SIZE (1)
23
    0x95, 0x10,                    //     REPORT_COUNT (16)
24
    0x81, 0x02,                    //     INPUT (Data,Var,Abs)
25
    0xc0,                          //   END_COLLECTION			48
24 pfowler 26
 
21 pfowler 27
    0xc0                           // END_COLLECTION
28
};
29