/* This comparator searches for the next Interface descriptor of the correct CDC data Class, Subclass and Protocol values. */
uint8_t DComp_NextCDCDataInterface(void *CurrentDescriptor)
/* This comparator searches for the next Interface descriptor of the correct CDC data Class, Subclass and Protocol values. */
uint8_t DComp_NextCDCDataInterface(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    == CDC_CSCP_CDCDataClass)   &&
		    (Interface->SubClass == CDC_CSCP_NoDataSubclass) &&
		    (Interface->Protocol == CDC_CSCP_NoDataProtocol))
		{
			return DESCRIPTOR_SEARCH_Found;
		}
	}
	return DESCRIPTOR_SEARCH_NotFound;
}