Keil Logo Arm Logo

Discussion Forum

doubt on USB endpoint

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
sridhar selvaraj
Posted
16-May-2012 12:02 GMT
Toolset
ARM
New! doubt on USB endpoint

Hi

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
New! RE: doubt on USB endpoint
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

Next Thread | Thread List | Previous Thread Start a Thread | Settings

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.