Simplest HID Report?
Posted: Mon Oct 25, 2010 11:03 am
Referring to the following page:
http://vusb.wikidot.com/examples
especially the following lines:
I would like to know how to use the first option. Basically I modified the HID-Mouse for my test application. I will basically just be sending data from the Host to the device via Control endpoint 0 as per first example on: http://vusb.wikidot.com/driver-api The problem I am having is that when I comment out the following in the HID-Mouse example:
PROGRAM char usbHidReportDescriptor[52] ....... etc
it does not want to compile. I thus want to use the default descriptor instead of that one. How do I do it or am I missing the bus completely. All this is new to me and all the USB settings is a bit overwhelming.
http://vusb.wikidot.com/examples
especially the following lines:
Descriptors can be provided in one of four ways:
1 You can decide to use V-USB's default descriptor (with eventually resides in flash memory).
2 In flash memory.
3 In RAM.
4 By means of a function which returns the descriptor.
I would like to know how to use the first option. Basically I modified the HID-Mouse for my test application. I will basically just be sending data from the Host to the device via Control endpoint 0 as per first example on: http://vusb.wikidot.com/driver-api The problem I am having is that when I comment out the following in the HID-Mouse example:
PROGRAM char usbHidReportDescriptor[52] ....... etc
it does not want to compile. I thus want to use the default descriptor instead of that one. How do I do it or am I missing the bus completely. All this is new to me and all the USB settings is a bit overwhelming.