/* This comparator searches for the next HID descriptor within the current HID interface descriptor. */
uint8_t DComp_NextHID(void *CurrentDescriptor)
/* This comparator searches for the next HID descriptor within the current HID interface descriptor. */
uint8_t DComp_NextHID(void *CurrentDescriptor)
{
	USB_Descriptor_Header_t* Header = DESCRIPTOR_PCAST(CurrentDescriptor, USB_Descriptor_Header_t);
	if (Header->Type == HID_DTYPE_HID)
	  return DESCRIPTOR_SEARCH_Found;
	else if (Header->Type == DTYPE_Interface)
	  return DESCRIPTOR_SEARCH_Fail;
	else
	  return DESCRIPTOR_SEARCH_NotFound;
}