Line No. | Rev | Author | Line |
---|---|---|---|
1 | 32 | kaklik | /****************************************************************************** |
2 | |||
3 | USB POS Printer Definition File - Bixolon SRP-270 |
||
4 | |||
5 | Summary: |
||
6 | This is a definition file for the Bixolon SRP-270 Point-of-sale USB |
||
7 | Printer. |
||
8 | |||
9 | Description: |
||
10 | This is a definition file for the Bixolon SRP-270 Point-of-sale USB |
||
11 | Printer. This definition file may be used for other compatible printers, |
||
12 | including the following printers. |
||
13 | |||
14 | Manufacturer Model Tested |
||
15 | ------------ ----- ------ |
||
16 | Bixolon SRP-270 Yes |
||
17 | Epson TM-U220 No (based on spec review only) |
||
18 | Epson TM-U230 No (based on spec review only) |
||
19 | |||
20 | Various POS printers that support the ESC/POS printer language have |
||
21 | deviations or limitations from the language specification. This file |
||
22 | allows the ESC/POS printer language file to configure itself |
||
23 | properly for the requirements and/or limitations of the particular printer. |
||
24 | It will also allow the printer language support file to return an error |
||
25 | (USB_PRINTER_UNKNOWN_COMMAND) if an unsupported command is issued. |
||
26 | |||
27 | Some deviations are minor, and may have no effect on the printed output. |
||
28 | Others, however, can result in printing failures if the configuration is |
||
29 | incorrect. For best results: |
||
30 | * Determine either a single target printer or a set of compatible |
||
31 | target printers when designing the application. |
||
32 | * Specify those printers explicitly in the TPL. |
||
33 | * Specify explicit printer language support for those printers. |
||
34 | * Test the application on each specified printer. |
||
35 | |||
36 | Remarks: |
||
37 | This file should be specified as the "POS Printer Header File" on the |
||
38 | "Printer" tab of the USB Configuration Tool (USBConfig.exe or MPLAB VDI) |
||
39 | when ESC/POS support is enabled. |
||
40 | |||
41 | *******************************************************************************/ |
||
42 | //DOM-IGNORE-BEGIN |
||
43 | /****************************************************************************** |
||
44 | |||
45 | * FileName: usb_printer_pos_bixolon_srp_270.h |
||
46 | * Dependencies: None |
||
47 | * Processor: PIC24/dsPIC30/dsPIC33/PIC32MX |
||
48 | * Compiler: C30 v3.10b/C32 v0.00.18 |
||
49 | * Company: Microchip Technology, Inc. |
||
50 | |||
51 | Software License Agreement |
||
52 | |||
53 | The software supplied herewith by Microchip Technology Incorporated |
||
54 | (the Company) for its PICmicro® Microcontroller is intended and |
||
55 | supplied to you, the Companys customer, for use solely and |
||
56 | exclusively on Microchip PICmicro Microcontroller products. The |
||
57 | software is owned by the Company and/or its supplier, and is |
||
58 | protected under applicable copyright laws. All rights are reserved. |
||
59 | Any use in violation of the foregoing restrictions may subject the |
||
60 | user to criminal sanctions under applicable laws, as well as to |
||
61 | civil liability for the breach of the terms and conditions of this |
||
62 | license. |
||
63 | |||
64 | THIS SOFTWARE IS PROVIDED IN AN AS IS CONDITION. NO WARRANTIES, |
||
65 | WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED |
||
66 | TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
||
67 | PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, |
||
68 | IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR |
||
69 | CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
||
70 | |||
71 | Change History: |
||
72 | Rev Description |
||
73 | ----- -------------------------------------- |
||
74 | 2.6a- No change |
||
75 | 2.7a |
||
76 | *******************************************************************************/ |
||
77 | //DOM-IGNORE-END |
||
78 | |||
79 | #ifndef USB_PRINTER_POS_BIXOLON_SRP_270 |
||
80 | #define USB_PRINTER_POS_BIXOLON_SRP_270 |
||
81 | |||
82 | //------------------------------------------------------------------------------ |
||
83 | // Bar Code Support Configuration |
||
84 | |||
85 | // If the printer supports bar code printing, uncomment the following |
||
86 | // definition. This will provide support for UPC-A, UPC-E, JAN/EAN13, JAN/EAN8, |
||
87 | // CODE39, ITF, and CODABAR bar codes using Format A of the "Print Bar Code" |
||
88 | // command. If only only bar code format is specified, it is Format A. |
||
89 | //#define USB_PRINTER_POS_BARCODE_SUPPORT |
||
90 | |||
91 | // If the printer supports both Format A and Format B of the "Print Bar Code" |
||
92 | // command, also uncomment this definition. In addition to the bar codes listed |
||
93 | // above, CODE93 and CODE128 bar codes will be supported. |
||
94 | //#define USE_PRINTER_POS_EXTENDED_BARCODE_FORMAT |
||
95 | |||
96 | |||
97 | //------------------------------------------------------------------------------ |
||
98 | // Bitmap Image Support Configuration |
||
99 | |||
100 | // If the printer supports 24-dot vertical density image printing, uncomment the |
||
101 | // following definition. |
||
102 | //#define USB_PRINTER_POS_24_DOT_IMAGE_SUPPORT |
||
103 | |||
104 | // If the printer supports 36-dot vertical density image printing, uncomment the |
||
105 | // following definition. This support is not common. Note that 36-dot vertical |
||
106 | // density image printing itself is not supported. However, printers with this |
||
107 | // capability use different parameter values for other image printing, and must |
||
108 | // be configured appropriately. If this is not configured correctly, 24-bit |
||
109 | // vertical density images will not print correctly. |
||
110 | //#define USB_PRINTER_POS_36_DOT_IMAGE_SUPPORT |
||
111 | |||
112 | // Set this label to the line spacing required between bit image lines. Often, |
||
113 | // the value 0 (zero) can be used. If the printer prints all image lines on |
||
114 | // top of each other, set this value to the height of the printed image line. |
||
115 | #define USB_PRINTER_POS_IMAGE_LINE_SPACING 16 |
||
116 | |||
117 | |||
118 | //------------------------------------------------------------------------------ |
||
119 | // Text Printing Support Configuration |
||
120 | |||
121 | // If the printer supports reverse text (white letters on a black background) |
||
122 | // printing, uncomment the following definition. |
||
123 | //#define USB_PRINTER_POS_REVERSE_TEXT_SUPPORT |
||
124 | |||
125 | |||
126 | //------------------------------------------------------------------------------ |
||
127 | // Color Support Configuration |
||
128 | |||
129 | // If the printer supports two color printing, uncomment the following line. |
||
130 | // This is not common. |
||
131 | #define USB_PRINTER_POS_TWO_COLOR_SUPPORT |
||
132 | |||
133 | |||
134 | //------------------------------------------------------------------------------ |
||
135 | // Mechanism Support Configuration |
||
136 | |||
137 | // If the printer has an automatic cutter, uncomment the following line. |
||
138 | #define USB_PRINTER_POS_CUTTER_SUPPORT |
||
139 | |||
140 | #endif |
||
141 |
Powered by WebSVN v2.8.3