/** Sends the given data directly to the printer via the data endpoints, for the sending of print commands in printer\r
* languages accepted by the attached printer (e.g. PCL).\r
*\r
- * \param[in] PrinterCommands Pointer to a structure containing the commands and length of the data to send\r
+ * \param[in] PrinterCommands Pointer to the data to send to the attached printer\r
+ * \param[in] CommandSize Size of the data to send to the attached printer\r
*\r
* \return A value from the Pipe_Stream_RW_ErrorCodes_t enum\r
*/\r
-uint8_t Printer_SendData(Printer_Data_t* PrinterCommands)\r
+uint8_t Printer_SendData(void* PrinterCommands, uint16_t CommandSize)\r
{\r
uint8_t ErrorCode;\r
\r
Pipe_SelectPipe(PRINTER_DATA_OUT_PIPE);\r
Pipe_Unfreeze();\r
\r
- if ((ErrorCode = Pipe_Write_Stream_LE(PrinterCommands->Data, PrinterCommands->Length)) != PIPE_RWSTREAM_NoError)\r
+ if ((ErrorCode = Pipe_Write_Stream_LE(PrinterCommands, CommandSize)) != PIPE_RWSTREAM_NoError)\r
return ErrorCode;\r
\r
Pipe_ClearOUT();\r