Other Parts Discussed in Thread: OMAPL138
I'm pouring through the StarterWare help file looking for extra insight on how to use the USB. (The file is OMAPL138_StarterWare_1_10_02_02.chm) I'll have some questions from time to time. I hope it's alright if I post them here.
1) I'm comparing two descriptions of the structure known as tHIDInstance. One description from usbdhid.h, and the other description from the above-mentioned .chm file. The two structures are an exact match, except the first five items from the .chm structure are absent from the same structure in the usbdhid.h file. I can't see any reason why there should be a difference. What's up?
2) I'm looking at the .chm file for insight about two related functions: USBDHIDInit and USBDHIDCompositeInit. The problem is the two functions are identical, except for their names. That is, they pass and return the same information, and they are both described identically. Here is the text for both:
Initializes HID device operation for a given USB controller.
That doesn't help unravel when to use one, versus the other. (Also, the example HID device mouse driver uses both function calls: first the CompositeInit, and then the Init. I can't figure out why.)