USB descriptor experts ~ Need Help Badly

Status
Not open for further replies.

tengs77

Newbie level 2
Joined
May 11, 2009
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,303
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
 

yes I did, apparently I had performed a debugging on my firmware using the hyperterminal window via a rs232 cable. The reporting output of the co-ordinates are correct but however the USB interpret it wrongly....
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…