X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/73a21890f6b37becc1e42566a3a716ae5eb96a0e..24f730fce3f2022762011d795c3feada5ef874b3:/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.h?ds=sidebyside diff --git a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.h b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.h index f55d03b0f..c8c1b137b 100644 --- a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.h +++ b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.h @@ -44,13 +44,13 @@ /* Macros: */ /** Printer class-specific request to retrieve the printer's ID string */ - #define GET_DEVICE_ID 0 + #define REQ_GetDeviceID 0 /** Printer class-specific request to retrieve the printer's virtual port status flags */ - #define GET_PORT_STATUS 1 + #define REQ_GetPortStatus 1 /** Printer class-specific request to soft-reset the device */ - #define SOFT_RESET 2 + #define REQ_SoftReset 2 /** Pipe number of the Printer data IN pipe */ #define PRINTER_DATA_IN_PIPE 1 @@ -58,18 +58,8 @@ /** Pipe number of the Printer data OUT pipe */ #define PRINTER_DATA_OUT_PIPE 2 - /* Type Defines: */ - /** Type define for a Printer Command Data structure, for the encapsulation of raw printer commands to - * send to an attached printer device. - */ - typedef struct - { - char* Data; /**< Printer commands to send to the attached printer */ - uint16_t Length; /**< Length in bytes of the commands to send to the attached printer */ - } Printer_Data_t; - /* Function Prototypes: */ - uint8_t Printer_SendData(Printer_Data_t* PrinterCommands); + uint8_t Printer_SendData(void* PrinterCommands, uint16_t CommandSize); uint8_t Printer_GetDeviceID(char* DeviceIDString, uint16_t BufferSize); uint8_t Printer_GetPortStatus(uint8_t* PortStatus); uint8_t Printer_SoftReset(void);