X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/786479faf0605d610c93041191ee5bd6d020ccf9..f3c061d5c8ef95a0bd2ec829cc1d7461af94a845:/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h diff --git a/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h b/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h index 01f1f1408..4656d190e 100644 --- a/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h +++ b/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h @@ -53,9 +53,16 @@ /** Pipe number of the Printer data OUT pipe */ #define PRINTER_DATA_OUT_PIPE 2 + /* Type Defines: */ + typedef struct + { + char* Data; + uint16_t Length; + } Printer_Data_t; + /* Function Prototypes: */ - uint8_t Printer_SendData(char* PrinterCommands); - uint8_t Printer_GetDeviceID(char* DeviceIDString, uint8_t BufferSize); + uint8_t Printer_SendData(Printer_Data_t* PrinterCommands); + uint8_t Printer_GetDeviceID(char* DeviceIDString, uint16_t BufferSize); uint8_t Printer_GetPortStatus(uint8_t* PortStatus); uint8_t Printer_SoftReset(void);