This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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?

  • 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