/* This comparator searches for the next Interface descriptor of the correct HID Class value. */
uint8_t DComp_NextHIDInterface(void *CurrentDescriptor)
/* This comparator searches for the next Interface descriptor of the correct HID Class value. */
uint8_t DComp_NextHIDInterface(void *CurrentDescriptor)
{
	USB_Descriptor_Header_t* Header = DESCRIPTOR_PCAST(CurrentDescriptor, USB_Descriptor_Header_t);
	if (Header->Type == DTYPE_Interface)
	{
		USB_Descriptor_Interface_t* Interface = DESCRIPTOR_PCAST(CurrentDescriptor, USB_Descriptor_Interface_t);
		if (Interface->Class == HID_CLASS)
		{
			return DESCRIPTOR_SEARCH_Found;
		}
	}
	return DESCRIPTOR_SEARCH_NotFound;
}