/* Returns the index of the requested descriptor, given the corresponding GET_DESCRIPTOR request.  */
unsigned char USBGetDescriptorRequest_GetDescriptorIndex(const USBGenericRequest *request)
/* Returns the index of the requested descriptor, given the corresponding GET_DESCRIPTOR request.  */
unsigned char USBGetDescriptorRequest_GetDescriptorIndex(const USBGenericRequest *request)
{
    return USBGenericRequest_GetValue(request) & 0xFF;
}