Content originally posted in LPCWare by tuong on Wed Apr 18 19:33:42 MST 2012
Dear Smoorby,
I think the problem is because CDC_TX_EPNUM or CDC_RX_EPNUM stores only number, they don't contain direction, ex. 0x00 for OUT and 0x80 for IN. And the application layer uses this only number to talk to the lower layers like class, usbd.. endpointhandle is needed for the lower layers understand what application layer is asking.
To improve as your request, I think CDC_TX_EPNUM and CDC_RX_EPNUM have to store direction information. At this moment, endpointhandle can be removed.
With best regards,
Tuong Nguyen