Fixed error in PrinterHost preventing the full page data from being sent to the attac...
[pub/USBasp.git] / Demos / Host / LowLevel / PrinterHost / Lib / PrinterCommands.h
index f55d03b..cb8f046 100644 (file)
                /** Pipe number of the Printer data OUT pipe */\r
                #define PRINTER_DATA_OUT_PIPE        2\r
                \r
                /** Pipe number of the Printer data OUT pipe */\r
                #define PRINTER_DATA_OUT_PIPE        2\r
                \r
-       /* Type Defines: */\r
-               /** Type define for a Printer Command Data structure, for the encapsulation of raw printer commands to\r
-                *  send to an attached printer device.\r
-                */\r
-               typedef struct\r
-               {\r
-                       char*    Data; /**< Printer commands to send to the attached printer */\r
-                       uint16_t Length; /**< Length in bytes of the commands to send to the attached printer */\r
-               } Printer_Data_t;\r
-               \r
        /* Function Prototypes: */\r
        /* Function Prototypes: */\r
-               uint8_t Printer_SendData(Printer_Data_t* PrinterCommands);\r
+               uint8_t Printer_SendData(void* PrinterCommands, uint16_t CommandSize);\r
                uint8_t Printer_GetDeviceID(char* DeviceIDString, uint16_t BufferSize);\r
                uint8_t Printer_GetPortStatus(uint8_t* PortStatus);\r
                uint8_t Printer_SoftReset(void);\r
                uint8_t Printer_GetDeviceID(char* DeviceIDString, uint16_t BufferSize);\r
                uint8_t Printer_GetPortStatus(uint8_t* PortStatus);\r
                uint8_t Printer_SoftReset(void);\r