/* Sends the given data directly to the printer via the data endpoints, for the sending of print commands in printer languages accepted by the attached printer (e.g. PCL). */
uint8_t Printer_SendData(const void *const PrinterCommands, const uint16_t CommandSize)
/* Sends the given data directly to the printer via the data endpoints, for the sending of print commands in printer languages accepted by the attached printer (e.g. PCL). */
uint8_t Printer_SendData(const void *const PrinterCommands, const uint16_t CommandSize)
{
	uint8_t ErrorCode;
	Pipe_SelectPipe(PRINTER_DATA_OUT_PIPE);
	Pipe_Unfreeze();
	if ((ErrorCode = Pipe_Write_Stream_LE(PrinterCommands, CommandSize, NULL)) != PIPE_RWSTREAM_NoError)
	  return ErrorCode;
	Pipe_ClearOUT();
	Pipe_WaitUntilReady();
	Pipe_Freeze();
	return PIPE_RWSTREAM_NoError;
}