I'm designing HID touchscreen and wonder about features "Width" and "Height". All HID reports that I checked have them defined like:
0x75, 0x10, // REPORT_SIZE (16)
0x95, 0x02, // REPORT_COUNT (2)
0x05, 0x0d, // USAGE_PAGE (Digitizers)
0x09, 0x48, // USAGE (Width)
0x09, 0x49, // USAGE (Height)
0x81, 0x02, // INPUT (Data,Var,Abs)
Can please someone explain why USAGE (Height) comes immediately after USAGE (Width) without any INPUT field?
How should I write real width and height values - just two 16-bit values one after one?
Or probably I should better define descriptor like:
0x75, 0x10, // REPORT_SIZE (16)
0x95, 0x01, // REPORT_COUNT (1)
0x05, 0x0d, // USAGE_PAGE (Digitizers)
0x09, 0x48, // USAGE (Width)
0x81, 0x02, // INPUT (Data,Var,Abs)
0x09, 0x49, // USAGE (Height)
0x81, 0x02, // INPUT (Data,Var,Abs)