/* This comparator searches for the next Bidirectional Printer Interface descriptor of the current Printer interface, aborting the search if the end of the descriptors is found. */
uint8_t DComp_NextBidirectionalPrinterInterface(void *CurrentDescriptor)
/* This comparator searches for the next Bidirectional Printer Interface descriptor of the current Printer interface, aborting the search if the end of the descriptors is found. */
uint8_t DComp_NextBidirectionalPrinterInterface(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    == PRNT_CSCP_PrinterClass)    &&
		    (Interface->SubClass == PRNT_CSCP_PrinterSubclass) &&
			(Interface->Protocol == PRNT_CSCP_BidirectionalProtocol))
		{
			return DESCRIPTOR_SEARCH_Found;
		}
	}
	return DESCRIPTOR_SEARCH_NotFound;
}