PORTS Forum

Ports and Interfaces => USB => Topic started by: kender on May 11, 2011, 05:16:29 pm

Title: HID endpoints
Post by: kender on May 11, 2011, 05:16:29 pm
Folks,

In GenericHID application you can specify VID and PID, but it doesn’t let you specify endpoints.  Do all HID devices have predetermined set of endpoints?  I’m curious about this, because I’m designing an instrument with low data rate, and it could work as an HID class.

Any suggestion, insight or reference is really appreciated!

Cheers,
- Nick
Title: Re: HID endpoints
Post by: Jan Axelson on May 11, 2011, 05:37:36 pm
The application doesn't have to know or care what endpoints the device uses. The lower-level software handles that from the information in the descriptors returned during enumeration. In fact, WriteFile may use a control or interrupt transfer depending on whether the HID has an interrupt OUT endpoint.

Jan