/* Returns the endpoint number targetted by a given request.  */
unsigned char USBGenericRequest_GetEndpointNumber(const USBGenericRequest *request)
/* Returns the endpoint number targetted by a given request.  */
unsigned char USBGenericRequest_GetEndpointNumber(const USBGenericRequest *request)
{
    return USBGenericRequest_GetIndex(request) & 0xF;
}