/* About: Purpose Implementation of the USBGetDescriptorRequest class. Returns the type of the descriptor requested by the host given the corresponding GET_DESCRIPTOR request.  */
unsigned char USBGetDescriptorRequest_GetDescriptorType(const USBGenericRequest *request)
/* About: Purpose Implementation of the USBGetDescriptorRequest class. Returns the type of the descriptor requested by the host given the corresponding GET_DESCRIPTOR request.  */
unsigned char USBGetDescriptorRequest_GetDescriptorType(const USBGenericRequest *request)
{
    return (USBGenericRequest_GetValue(request) >> 8) & 0xFF;
}