Hi all,
Thanks for your contineous support from this site.
I want to detect my board as HID mouse when plugged to USB port of PC. For that I guess I need to write HID mouse driver.
I am using LPC2148 controller. Can i gett some reference code for it?
Thanks & Regards, Kamal
Are you working on Keil HID example?
Then, you don't need to swap entire descriptors. Replace just the report descriptor.
I see some errors on the config descriptor set in above post, for example, wTotalLength field. But it's pain to examine the figures without any comment for the fields. I recomend you to recover the original descriptors from the example.
For other change,
demo.c BYTE InReport[3]; /* HID Input Report - 3 bytes for mouse */ /* * Get HID Input Report -> InReport */ void GetInReport (void) { // // Fill InReport[] // // InReport[0] mouse buttons, bit 0: left, bit 1: right, bit2: middle // InReport[1] X axis relative movement // InReport[2] Y axis relative movement // }
Tsuneo
Hello guys,
I am a first timer with USB and like many others, VERY CONFUSED.
To start with, i have downloaded the example code for USBHID for LPC2368 and it is not working, leading to more confusion but most of them are conceptual and here are a few of them :
1. How will the code call the functions usbcore.c ?
2. How will the code initialize the descriptors and endpoints ?
Any help will be greatly appreciated.
Thanks. Nitin
Don't you think you should start with a new thread, instead of hijacking someone elses?
Yes, I should have.
Apologies for that.
Can you please tell me how to start a new one ?
Thanks.
Got it ..
Please Help Tsuneo !
Sorry for posting here again.