I have tried the endpoint 0 to send the data in HID is working
well .
But the problem is, how to send the data in USB endpoint 2 or other
endpoints.
Can u help me, any initialize is there?
Read-Only
Author WT L
Posted 16-May-2012 13:06 GMT
Toolset ARM
RE: doubt on USB endpoint
WT L
Hi,
You need take care the following things.
1. Endpoint Descriptor (in Configuration Descriptor)
Define your endpoint at Configuration Descriptor as IN or OUT.
Also make sure the bNumEndpoints is correct in the Interface Descriptor.
2. HID Report Descriptor
You need define Input or Output Report in the HID Report Descriptor
depend on the direction of your data (IN or OUT).
3. If the enumeration is find, you can use ReadFile/WriteFile to send/receive
data for the IN/OUT interrut endpoint.
Hope the information is useful to you.
Sincerely,
WT
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.