/* About: Purpose Implementation of the USBGenericRequest class. Returns the type of the given request.  */
unsigned char USBGenericRequest_GetType(const USBGenericRequest *request)
/* About: Purpose Implementation of the USBGenericRequest class. Returns the type of the given request.  */
unsigned char USBGenericRequest_GetType(const USBGenericRequest *request)
{
    return ((request->bmRequestType >> 5) & 0x3);
}