• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 /* ------------------------------------------------------------------------- */
3 
4 /* umax-uc1200se.c: inquiry for UMAX scanner uc1200se
5 
6    (C) 1998-2002 Oliver Rauch
7 
8    This program is free software; you can redistribute it and/or
9    modify it under the terms of the GNU General Public License as
10    published by the Free Software Foundation; either version 2 of the
11    License, or (at your option) any later version.
12 
13    This program is distributed in the hope that it will be useful, but
14    WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16    General Public License for more details.
17 
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 
21    As a special exception, the authors of SANE give permission for
22    additional uses of the libraries contained in this release of SANE.
23 
24    The exception is that, if you link a SANE library with other files
25    to produce an executable, this does not by itself cause the
26    resulting executable to be covered by the GNU General Public
27    License.  Your use of that executable is in no way restricted on
28    account of linking the SANE library code into it.
29 
30    This exception does not, however, invalidate any other reasons why
31    the executable file might be covered by the GNU General Public
32    License.
33 
34    If you submit changes to SANE to the maintainers to be included in
35    a subsequent release, you agree by submitting the changes that
36    those changes may be distributed with this exception intact.
37 
38    If you write modifications of your own for SANE, it is your choice
39    whether to permit this exception to apply to your modifications.
40    If you do not wish that, delete this exception notice.
41 
42  */
43 
44 /* ------------------------------------------------------------------------- */
45 #include "umax-scanner.h"
46 /* ------------------------------------------------------------------------- */
47 
48 static unsigned char UC1200SE_INQUIRY[] =
49 {
50 #define UC1200SE_INQUIRY_LEN 0x9d
51 /* 24 F/W support function */
52 	0x03,
53 
54 /* 25 -27 exposure-times */
55 	0x00, 0x00, 0x00,
56 
57 /* 28 - 29 reserved */
58 	0x00, 0x00,
59 
60 /* 2a - 35 exposure times */
61 	0x00, 0x00,
62 	0x00, 0x00, 0x00, 0x00,
63 	0x00, 0x00, 0x00, 0x00,
64 	0x00, 0x00,
65 
66 /* 36 - 37 reserved */
67 	0x00, 0x00,
68 
69 /* 38 - 5f scsi reserved */
70 	00, 00, 00, 00, 00, 00, 00, 00,
71 	00, 00, 00, 00, 00, 00, 00, 00,
72 	00, 00, 00, 00, 00, 00, 00, 00,
73 	00, 00, 00, 00, 00, 00, 00, 00,
74 	00, 00, 00, 00, 00, 00, 00, 00,
75 
76 /* 60 -62 scanner capability*/
77 	0x3e,
78 	0x0c,
79 	0x03,
80 
81 /* 63 reserved */
82 	0x00,
83 
84 /* 64 gamma */
85 	0x83,
86 
87 /* 65 reserved */
88 	0x00,
89 
90 /* 66 GIB */
91 	0x04,
92 
93 /* 67 reserved */
94 	0x00,
95 
96 /* 68 GOB */
97 	0x01,
98 
99 /* 69 - 6a halftone */
100 	0x00, 0x2f,
101 
102 /* 6b - 6c reserved */
103 	0x00, 0x00,
104 
105 /* 6d color sequence */
106 	0xe1, /* 0xe8, 0xe9 or 0xe1 ? */
107 
108 /* 6e - 71 video memory */
109 	0x00, 0x20, 0x00, 0x00,
110 
111 /* 72 reserved */
112 	0x00,
113 
114 /* 73 max optical res in 100 dpi */
115 	0x06,
116 
117 /* 74 max x_res in 100 dpi */
118 	0x06,
119 
120 /* 75 max y_res in 100 dpi */
121 	0x0c,
122 
123 /* 76-77 fb max scan width in 0.01 inch */
124 	0x03, 0x20,
125 
126 /* 78-79 fb max scan length in 0.01 inch */
127 	0x04, 0x4c,
128 
129 /* 7a-7b uta x original point, may be 0x05, 0x89 */
130 	0x00, 0x76,
131 
132 /* 7c-7d uta y original point, may be 0x06, 0x75 */
133 	0x00, 0x89,
134 
135 /* 7e-7f uta max scan width in 0.01 inch */
136 	0x02, 0x4e,
137 
138 /* 80-81 uta max scan length in 0.01 inch */
139 	0x03, 0x65,
140 
141 /* 82-85 reserved */
142 	00, 00, 00, 00,
143 
144 /* 86-87 dor x original point */
145 	0x00, 0x00,
146 
147 /* 88-89 dor x original point */
148 	0x00, 0x00,
149 
150 /* 8a-8b dor max scan width in 0.01 inch */
151 	0x00, 0x00,
152 
153 /* 8c-8d dor max scan length in 0.01 inch */
154 	0x00, 0x00,
155 
156 /* 8e reserved */
157 	0x00,
158 
159 /* 8f last calibration lamp density */
160 	0x00,
161 
162 /* 90 reserved */
163 	0x00,
164 
165 /* 91 lamp warmup max time */
166 	0x00,
167 
168 /* 92-93 window descriptor block length */
169 	0x00, 0x31,
170 
171 /* 94 optical resolution residue (1dpi) */
172 	0x00,
173 
174 /* 95 x_resolution residue (1dpi) */
175 	0x00,
176 
177 /* 96 y_resolution residue (1dpi) */
178 	0x00,
179 
180 /* 97 analog gamma table */
181 	0x00,
182 
183 /* 98-99 reserved */
184 	0x00, 0x00,
185 
186 /* 9a max calibration data lines */
187 	0x00,
188 
189 /* 9b fb/uta colour-sequnce-mode */
190 	0x01,
191 
192 /* 9c adf colour-sequnce-mode */
193 	0x01,
194 
195 /* 9d line-distance of ccd */
196 	0x08
197 };
198 
199 static inquiry_blk inquiry_uc1200se =
200 {
201   "UC1200SE ",UC1200SE_INQUIRY, UC1200SE_INQUIRY_LEN
202 };
203