tengs77
Newbie level 2
usb_hid_report_descriptor_mouse
Hi to all the pros out there, I need help badly for my project.
I am building a USB Touch Screen and currently have this problem. I had concluded that the USB had interpret wrongly and had tried all means to edit the USB descriptor to no avail.
Problems
1)Cusor only can move within a specfic range......I am using a 800 by 480 LCD screen and currently the cursor could only move within a 400 by185 range.
I am using C to write my firmware, the source code for the USB descriptor is as follow
code S_usb_hid_report_descriptor_mouse usb_hid_report_descriptor_mouse = {
0x05,0x01, /* Usage Page (Generic Desktop) */
0x09,0x02, /* Usage (Mouse) */
0xA1,0x01, /* Collection (Application) */
0x09,0x01, /* Usage (Pointer) */
0xA1,0x00, /* Collection (Application) */
0x05,0x09, /* Usage Page (Button) */
0x19,0x01, /* Usage Minimum (1) */
0x29,0x02, /* Usage Maximum (2) */
0x15,0x00, /* Logical Minimum (0) */
0x25,0x01, /* Logical Maximum (1) */
0x75,0x01, /* Report Size (1) */
0x95,0x02, /* Report Count (2) */
0x81,0x02, /* Input (Data, Variable, Absolute) */
0x75,0x06, /* Report Size (6) */
0x95,0x01, /* Report Count (1) */
0x81,0x01, /* Input (Constant) */
0x05,0x01, /* Usage Page (Generic Desktop Control)*/
0x09,0x30, /* Usage X */
0x09,0x31, /* Usage Y */
0x16,0x00,0xF8, /* Logical Minimum (-2048) */
0x26,0xFF,0x07, /* Logical Maximum (2047) */
0x75,0x0C, /* Report Size (12) */
0x95,0x02, /* Report Count (2) */
0x81,0x02, /* Input (Data, Variable, Absolute) */
0xC0, /* End Collection */
0xC0 /* End Collection */
Any help is greatly appreciate. Thanks in advance
Hi to all the pros out there, I need help badly for my project.
I am building a USB Touch Screen and currently have this problem. I had concluded that the USB had interpret wrongly and had tried all means to edit the USB descriptor to no avail.
Problems
1)Cusor only can move within a specfic range......I am using a 800 by 480 LCD screen and currently the cursor could only move within a 400 by185 range.
I am using C to write my firmware, the source code for the USB descriptor is as follow
code S_usb_hid_report_descriptor_mouse usb_hid_report_descriptor_mouse = {
0x05,0x01, /* Usage Page (Generic Desktop) */
0x09,0x02, /* Usage (Mouse) */
0xA1,0x01, /* Collection (Application) */
0x09,0x01, /* Usage (Pointer) */
0xA1,0x00, /* Collection (Application) */
0x05,0x09, /* Usage Page (Button) */
0x19,0x01, /* Usage Minimum (1) */
0x29,0x02, /* Usage Maximum (2) */
0x15,0x00, /* Logical Minimum (0) */
0x25,0x01, /* Logical Maximum (1) */
0x75,0x01, /* Report Size (1) */
0x95,0x02, /* Report Count (2) */
0x81,0x02, /* Input (Data, Variable, Absolute) */
0x75,0x06, /* Report Size (6) */
0x95,0x01, /* Report Count (1) */
0x81,0x01, /* Input (Constant) */
0x05,0x01, /* Usage Page (Generic Desktop Control)*/
0x09,0x30, /* Usage X */
0x09,0x31, /* Usage Y */
0x16,0x00,0xF8, /* Logical Minimum (-2048) */
0x26,0xFF,0x07, /* Logical Maximum (2047) */
0x75,0x0C, /* Report Size (12) */
0x95,0x02, /* Report Count (2) */
0x81,0x02, /* Input (Data, Variable, Absolute) */
0xC0, /* End Collection */
0xC0 /* End Collection */
Any help is greatly appreciate. Thanks in advance