|
|
|
|
|
|
|
|
static uint8_t device_descriptor[] = { |
|
|
static uint8_t device_descriptor[] = { |
|
|
18, // bLength |
|
|
18, // bLength |
|
|
1, // bDescriptorType |
|
|
1, // bDescriptorType |
|
|
0x01, 0x01, // bcdUSB |
|
|
|
|
|
|
|
|
0x10, 0x01, // bcdUSB |
|
|
#ifdef DEVICE_CLASS |
|
|
#ifdef DEVICE_CLASS |
|
|
DEVICE_CLASS, // bDeviceClass |
|
|
DEVICE_CLASS, // bDeviceClass |
|
|
#else |
|
|
#else |
|
|
|
|
|
|
|
|
0x75, 0x01, // Report Size (1) |
|
|
0x75, 0x01, // Report Size (1) |
|
|
0x95, 0x01, // Report Count (1) |
|
|
0x95, 0x01, // Report Count (1) |
|
|
0x81, 0x02, // Input (variable,absolute) |
|
|
0x81, 0x02, // Input (variable,absolute) |
|
|
0x09, 0x30, // Usage (Pressure) |
|
|
|
|
|
|
|
|
0x09, 0x51, // Usage (Contact Identifier) |
|
|
0x25, 0x7F, // Logical Maximum (127) |
|
|
0x25, 0x7F, // Logical Maximum (127) |
|
|
0x75, 0x07, // Report Size (7) |
|
|
0x75, 0x07, // Report Size (7) |
|
|
0x95, 0x01, // Report Count (1) |
|
|
0x95, 0x01, // Report Count (1) |
|
|
0x81, 0x02, // Input (variable,absolute) |
|
|
0x81, 0x02, // Input (variable,absolute) |
|
|
0x09, 0x51, // Usage (Contact Identifier) |
|
|
|
|
|
|
|
|
0x09, 0x30, // Usage (Pressure) |
|
|
0x26, 0xFF, 0x00, // Logical Maximum (255) |
|
|
0x26, 0xFF, 0x00, // Logical Maximum (255) |
|
|
0x75, 0x08, // Report Size (8) |
|
|
0x75, 0x08, // Report Size (8) |
|
|
0x95, 0x01, // Report Count (1) |
|
|
0x95, 0x01, // Report Count (1) |
|
|
|
|
|
|
|
|
0x95, 0x01, // Report Count (1) |
|
|
0x95, 0x01, // Report Count (1) |
|
|
0x09, 0x56, // Usage (Scan Time) |
|
|
0x09, 0x56, // Usage (Scan Time) |
|
|
0x81, 0x02, // Input (variable,absolute) |
|
|
0x81, 0x02, // Input (variable,absolute) |
|
|
0x09, 0x54, // Usage (Contact Count) |
|
|
|
|
|
0x25, MULTITOUCH_FINGERS, // Logical Maximum (10) |
|
|
|
|
|
0x75, 0x08, // Report Size (8) |
|
|
|
|
|
0x95, 0x01, // Report Count (1) |
|
|
|
|
|
0x81, 0x02, // Input (variable,absolute) |
|
|
|
|
|
0x05, 0x0D, // Usage Page (Digitizers) |
|
|
0x05, 0x0D, // Usage Page (Digitizers) |
|
|
0x09, 0x55, // Usage (Contact Count Maximum) |
|
|
0x09, 0x55, // Usage (Contact Count Maximum) |
|
|
0x25, MULTITOUCH_FINGERS, // Logical Maximum (10) |
|
|
0x25, MULTITOUCH_FINGERS, // Logical Maximum (10) |