char code Pc_Report_Descriptor[] = {
0x05, 0x01, // Usage Page(Generic Desktop Controls )
0x09, 0x04, // Usage(Joystick)
0xA1, 0x01, // Collection(Application)
0xA1, 0x02, // Collection(Logical)
0x15, 0x00, // Logical Minimum(0x00)
0x26, 0xFF, 0x00, // Logical Maximum(0xFF)
0x35, 0x00, // Physical Minimum(0x00)
0x46, 0xFF, 0x00, // Physical Maximum(0xFF)
0x75, 0x08, // Report Size(0x08)
0x95, 0x04, // Report Count(0x04)
0x09, 0x30, // Usage(X)
0x09, 0x31, // Usage(Y)
0x09, 0x32, // Usage(Z)
0x09, 0x35, // Usage(Rz)
0x81, 0x02, // Input(Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Bit Field)
0x25, 0x07, // Logical Maximum(0x07)
0x46, 0x3B, 0x01, // Physical Maximum(0x013B)
0x75, 0x04, // Report Size(0x04)
0x95, 0x01, // Report Count(0x01)
0x65, 0x14, // Unit(Degrees)
0x09, 0x39, // Usage(Hat switch)
0x81, 0x42, // Input(Data, Variable, Absolute, No Wrap, Linear, Preferred State, Null State, Bit Field)
0x65, 0x00, // Unit(None)
0x25, 0x01, // Logical Maximum(0x01)
0x45, 0x01, // Physical Maximum(0x01)
0x75, 0x01, // Report Size(0x01)
0x95, 0x0d, // Report Count(0x0C) * 13
0x05, 0x09, // Usage Page(Button)
0x19, 0x01, // Usage Minimum(0x01)
0x29, 0x0d, // Usage Maximum(0x0C) * 13
0x81, 0x02, // Input(Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Bit Field)
0x06, 0x00, 0xFF, // Usage Page(Undefined)
0x75, 0x01, // Report Size(0x01)
0x95, 0x0f, // Report Count(0x10) * 15
0x25, 0x01, // Logical Maximum(0x01)
0x45, 0x01, // Physical Maximum(0x01)
0x09, 0x01, // Usage(1)
0x81, 0x02, // Input(Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Bit Field)
0xC0, // End Collection
0xA1, 0x02, // Collection(Logical)
0x26, 0xFF, 0x00, // Logical Maximum(0xFF)
0x46, 0xFF, 0x00, // Physical Maximum(0xFF)
0x75, 0x08, // Report Size(0x08)
0x95, 0x08, // Report Count(0x07) * 8
0x09, 0x02, // Usage(2)
0x91, 0x02, // Output(Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Non VolatileBit Field)
0xC0, // End Collection
} |