Add other missing Printer.h main class driver dispatch file.
authorDean Camera <dean@fourwalledcubicle.com>
Wed, 4 Nov 2009 13:23:47 +0000 (13:23 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Wed, 4 Nov 2009 13:23:47 +0000 (13:23 +0000)
LUFA/Drivers/USB/Class/Printer.h [new file with mode: 0644]

diff --git a/LUFA/Drivers/USB/Class/Printer.h b/LUFA/Drivers/USB/Class/Printer.h
new file mode 100644 (file)
index 0000000..b1d41fc
--- /dev/null
@@ -0,0 +1,63 @@
+/*\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
+/** \ingroup Group_USBClassDrivers\r
+ *  @defgroup Group_USBClassPrinter Printer Device Class Driver - LUFA/Drivers/Class/Printer.h\r
+ *\r
+ *  \section Sec_Dependencies Module Source Dependencies\r
+ *  The following files must be built with any user project that uses this module:\r
+ *    - LUFA/Drivers/USB/Class/Host/Printer.c\r
+ *\r
+ *  \section Module Description\r
+ *  Printer Class Driver module. This module contains an internal implementation of the USB Printer Class, for the base\r
+ *  USB Printer transport layer for USB Host mode only. Note that printers are free to implement whatever printer language\r
+ *  they choose on top of this (e.g. Postscript), and so this driver exposes low level data transport functions only rather\r
+ *  than high level raster or text functions. User applications can use this class driver instead of implementing the Printer\r
+ *  class manually via the low-level LUFA APIs.\r
+ *\r
+ *  This module is designed to simplify the user code by exposing only the required interface needed to interace with\r
+ *  Devices using the USB Printer Class.\r
+ *\r
+ *  @{\r
+ */\r
+\r
+#ifndef _PRINTER_CLASS_H_\r
+#define _PRINTER_CLASS_H_\r
+\r
+       /* Includes: */\r
+               #include "../HighLevel/USBMode.h"\r
+               \r
+               #if defined(USB_CAN_BE_HOST)\r
+                       #include "Host/Printer.h"\r
+               #endif\r
+               \r
+#endif\r
+\r
+/** @} */\r