unsigned char USBGetDescriptorRequest_GetDescriptorIndex(const USBGenericRequest *request) { // Requested descriptor index if in the low byte of the wValue field return USBGenericRequest_GetValue(request) & 0xFF; }