/* About: Purpose Implementation of the USBEndpointDescriptor class. Returns the number of an endpoint given its descriptor.  */
unsigned char USBEndpointDescriptor_GetNumber(const USBEndpointDescriptor *endpoint)
/* About: Purpose Implementation of the USBEndpointDescriptor class. Returns the number of an endpoint given its descriptor.  */
unsigned char USBEndpointDescriptor_GetNumber(const USBEndpointDescriptor *endpoint)
{
    return endpoint->bEndpointAddress & 0xF;
}