Add tag for the 120219 release.
[pub/USBasp.git] / Demos / Host / LowLevel / PrinterHost / Lib / PrinterCommands.h
index c8c1b13..0aad928 100644 (file)
@@ -1,67 +1,56 @@
-/*\r
-             LUFA Library\r
-     Copyright (C) Dean Camera, 2009.\r
-              \r
-  dean [at] fourwalledcubicle [dot] com\r
-      www.fourwalledcubicle.com\r
-*/\r
-\r
-/*\r
-  Copyright 2009  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
-\r
-  Permission to use, copy, modify, and distribute this software\r
-  and its documentation for any purpose and without fee is hereby\r
-  granted, provided that the above copyright notice appear in all\r
-  copies and that both that the copyright notice and this\r
-  permission notice and warranty disclaimer appear in supporting\r
-  documentation, and that the name of the author not be used in\r
-  advertising or publicity pertaining to distribution of the\r
-  software without specific, written prior permission.\r
-\r
-  The author disclaim all warranties with regard to this\r
-  software, including all implied warranties of merchantability\r
-  and fitness.  In no event shall the author be liable for any\r
-  special, indirect or consequential damages or any damages\r
-  whatsoever resulting from loss of use, data or profits, whether\r
-  in an action of contract, negligence or other tortious action,\r
-  arising out of or in connection with the use or performance of\r
-  this software.\r
-*/\r
-\r
-/** \file\r
- *\r
- *  Header file for PrinterCommands.c.\r
- */\r
\r
-#ifndef _PRINTER_COMMANDS_H_\r
-#define _PRINTER_COMMANDS_H_\r
-\r
-       /* Includes: */\r
-               #include <avr/io.h>\r
-               #include <string.h>\r
-\r
-               #include <LUFA/Drivers/USB/USB.h>\r
-\r
-       /* Macros: */\r
-               /** Printer class-specific request to retrieve the printer's ID string */\r
-               #define REQ_GetDeviceID              0\r
-\r
-               /** Printer class-specific request to retrieve the printer's virtual port status flags */\r
-               #define REQ_GetPortStatus            1\r
-\r
-               /** Printer class-specific request to soft-reset the device */\r
-               #define REQ_SoftReset                2\r
-\r
-               /** Pipe number of the Printer data IN pipe */\r
-               #define PRINTER_DATA_IN_PIPE         1\r
-\r
-               /** Pipe number of the Printer data OUT pipe */\r
-               #define PRINTER_DATA_OUT_PIPE        2\r
-               \r
-       /* Function Prototypes: */\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
-       \r
-#endif\r
+/*
+             LUFA Library
+     Copyright (C) Dean Camera, 2012.
+
+  dean [at] fourwalledcubicle [dot] com
+           www.lufa-lib.org
+*/
+
+/*
+  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)
+
+  Permission to use, copy, modify, distribute, and sell this
+  software and its documentation for any purpose is hereby granted
+  without fee, provided that the above copyright notice appear in
+  all copies and that both that the copyright notice and this
+  permission notice and warranty disclaimer appear in supporting
+  documentation, and that the name of the author not be used in
+  advertising or publicity pertaining to distribution of the
+  software without specific, written prior permission.
+
+  The author disclaim all warranties with regard to this
+  software, including all implied warranties of merchantability
+  and fitness.  In no event shall the author be liable for any
+  special, indirect or consequential damages or any damages
+  whatsoever resulting from loss of use, data or profits, whether
+  in an action of contract, negligence or other tortious action,
+  arising out of or in connection with the use or performance of
+  this software.
+*/
+
+/** \file
+ *
+ *  Header file for PrinterCommands.c.
+ */
+
+#ifndef _PRINTER_COMMANDS_H_
+#define _PRINTER_COMMANDS_H_
+
+       /* Includes: */
+               #include <avr/io.h>
+               #include <string.h>
+
+               #include <LUFA/Drivers/USB/USB.h>
+
+               #include "../PrinterHost.h"
+
+       /* Function Prototypes: */
+               uint8_t Printer_SendData(const void* const PrinterCommands,
+                                        const uint16_t CommandSize);
+               uint8_t Printer_GetDeviceID(char* DeviceIDString,
+                                           const uint16_t BufferSize);
+               uint8_t Printer_GetPortStatus(uint8_t* const PortStatus);
+               uint8_t Printer_SoftReset(void);
+
+#endif
+