Line 0
Link Here
|
|
|
1 |
/* sane - Scanner Access Now Easy. |
2 |
Copyright (C) 2003 Johannes Hub (JohannesHub@t-online.de) |
3 |
|
4 |
This file was initially copied from the hp3300 backend. |
5 |
This file is part of the SANE package. |
6 |
|
7 |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License |
9 |
as published by the Free Software Foundation; either version 2 |
10 |
of the License, or (at your option) any later version. |
11 |
|
12 |
This program is distributed in the hope that it will be useful, |
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
GNU General Public License for more details. |
16 |
|
17 |
You should have received a copy of the GNU General Public License |
18 |
along with this program; if not, write to the Free Software |
19 |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
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 exutable, 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 |
Concept for a backend for scanners based on the RTS88xx chipset, |
45 |
such as HP4400C, HP4470C. |
46 |
Parts of this source were inspired by other backends. |
47 |
|
48 |
History: |
49 |
|
50 |
Version 0.18 21.11.04 13.alpha, |
51 |
- source sorted, |
52 |
- now only SANEI_USB_SUPPORT for a better overview(xfermodules removed) |
53 |
- read and verify the MainBoardID |
54 |
Version 0.17p 02.11.04 12.alpha, source sorted, little fixes, SANEI_USB_SUPPORT implemented |
55 |
Version 0.17p 02.11.04 12.alpha, source sourted, little fixes, SANEI_USB_SUPPORT implemented |
56 |
Version 0.17b 30.03.04 10.alpha, little fixes and libusb implemented |
57 |
Version 0.17 09.03.04 9. alpha, HP3500 included |
58 |
Version 0.16 06.02.04 8. alpha, wait counting on LCD |
59 |
Version 0.15a 29.01.04 7. alpha, CCD switch moved to config file |
60 |
Version 0.15 11.01.04 6. alpha, a second CCD implemented |
61 |
Version 0.13a 21.11.04 4. alpha, an little fix included |
62 |
Version 0.12 22.10.03 third alpha, Backend name changed to HP_RTS88xx |
63 |
Version 0.11 30.08.03 second alpha |
64 |
Version 0.10 19.07.03 first alpha |
65 |
*/ |
66 |
|
67 |
/* |
68 |
Core HP44x0c functions. |
69 |
*/ |
70 |
|
71 |
|
72 |
#ifndef _HP_RTS_HP44x0C_H_ |
73 |
#define _HP_RTS_HP44x0C_H_ |
74 |
|
75 |
#include <unistd.h> |
76 |
|
77 |
#define XFER_BUF_SIZE 0xFF00 |
78 |
|
79 |
|
80 |
#define HW_PIXELS 2000 /* number of pixels supported by hardware */ |
81 |
#define HW_DPI 300 /* horizontal resolution of hardware */ |
82 |
#define HW_LPI 300 /* vertical resolution of hardware */ |
83 |
|
84 |
/* thise rts8891 registers are known */ |
85 |
#define LEDSTATUS 0x10 |
86 |
#define LIGHT_SOURCE 0x11 |
87 |
#define TAP 0x14 |
88 |
#define LCD_CONTROL1 0x20 |
89 |
#define LCD_CONTROL2 0x21 |
90 |
#define LCD_CONTROL3 0x22 |
91 |
#define BUTTON_1 0x25 |
92 |
#define BUTTON_2 0x1a |
93 |
#define MICROSWITCH 0x1d |
94 |
#define MOVEMENT_DIRECTION 0x36 |
95 |
#define SCAN_OR_QUICK_MOVE 0x3a |
96 |
#define CHECK_SCANNER_LINKED 0xb0 |
97 |
#define MAINBOARD_ID 0xb1 |
98 |
#define MOVEMENT_REG_1 0xb2 |
99 |
#define MOVE_START_STOP 0xb3 |
100 |
#define LAMPREG 0xd9 |
101 |
#define LAMP_INTENSITY 0xda |
102 |
#define STEP_SIZE 0xe1 |
103 |
|
104 |
struct Hp44x0c_resolution_parameters |
105 |
{ |
106 |
SANE_Int resolution; |
107 |
SANE_Byte reg_10_value; |
108 |
SANE_Byte reg_11_value; |
109 |
SANE_Byte reg_32_value; |
110 |
SANE_Byte reg_33_value; |
111 |
SANE_Byte reg_35_value; |
112 |
SANE_Byte reg_36_value; |
113 |
SANE_Byte reg_3A_value; |
114 |
SANE_Byte reg_72_value; |
115 |
SANE_Byte reg_73_value; |
116 |
SANE_Byte reg_74_value; |
117 |
SANE_Byte reg_BF_value; |
118 |
SANE_Byte reg_C0_value; |
119 |
SANE_Byte reg_C1_value; |
120 |
SANE_Byte reg_C4_value; |
121 |
SANE_Byte reg_C5_value; |
122 |
SANE_Byte reg_CC_value; |
123 |
SANE_Byte reg_CD_value; |
124 |
SANE_Byte reg_CE_value; |
125 |
SANE_Byte reg_CF_value; |
126 |
SANE_Byte reg_D0_value; |
127 |
SANE_Byte reg_D1_value; |
128 |
SANE_Byte reg_D2_value; |
129 |
SANE_Byte reg_D3_value; |
130 |
SANE_Byte reg_D5_value; |
131 |
SANE_Byte reg_D7_value; |
132 |
SANE_Byte step_size; |
133 |
SANE_Byte reg_E4_value; |
134 |
SANE_Byte reg_E5_value; |
135 |
}; |
136 |
|
137 |
static struct Hp44x0c_resolution_parameters Hp44x0c_resparms[] = |
138 |
{ |
139 |
/*res. 10 11 32 33 35 36 3a 72 73 74 bf c0 c1 c5 cb cc cd ce cf d0 d1 d2 d3 d5 d7 Step e4 e5*/ |
140 |
/* 0x00,0x03,0x45, 0x43 */ |
141 |
{600,0x28,0x3b,0x80,0x82,0x1b,0x2C,0x1b,0x3a,0x15,0x62,0x00,0xff,0x0f,0xf8,0x07,0x80,0xff,0xf2,0xf4,0xe7,0x08,0x0e,0x10,0x0f,0x52,0x01,0x56,0x01}, |
142 |
{300,0x20,0x3b,0x80,0x82,0x0e,0x22,0x0e,0xe1,0x14,0x18,0xff,0x0f,0xf0,0x00,0x00,0xf0,0xff,0xf5,0xf7,0xea,0x0b,0x03,0x05,0xab,0xf6,0x01,0x56,0x01}, |
143 |
{200,0x20,0x3b,0x00,0x03,0x0e,0x22,0x0e,0xe1,0x14,0x18,0xff,0x0f,0xf0,0x00,0x00,0xf0,0xff,0xf5,0xf7,0xea,0x0b,0x03,0x05,0xab,0xf6,0x01,0xbd,0x0a}, |
144 |
{150,0x20,0x3f,0x80,0x81,0x1b,0x29,0x1b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x01}, |
145 |
{0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00} |
146 |
}; |
147 |
|
148 |
|
149 |
|
150 |
SANE_Byte Hp44x0_switch_on_regs[] = { |
151 |
/*0 1 2 3 4 5 6 7 8 9 a b c d e f*/ |
152 |
0xe5,0x41,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x0a,0x0a,0x0a,0x70,0x00,0x00,0x00,0x00, |
153 |
/*10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f*/ |
154 |
0x28,0x28,0xff,0x20,0xf8,0x28,0x07,0x00,0xff,0x00,0x00,0x00,0x00,0x20,0x00,0x00, |
155 |
/*20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f*/ |
156 |
0x3a,0xf2,0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
157 |
/*30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f*/ |
158 |
0x00,0x00,0x00,0x00,0x10,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
159 |
/*40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f*/ |
160 |
0x20,0x00,0x00,0x00,0x8c,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
161 |
/*50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f*/ |
162 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
163 |
/*60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f*/ |
164 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
165 |
/*70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f*/ |
166 |
0x00,0x00,0xe1,0x14,0x18,0x15,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
167 |
/*80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f*/ |
168 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x3f,0x80,0x68,0x00, |
169 |
/*90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f*/ |
170 |
0x00,0x00,0x00,0x01,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
171 |
/*a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af*/ |
172 |
0x00,0x00,0x00,0xcc,0x27,0x64,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
173 |
/*b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf*/ |
174 |
0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff, |
175 |
/*c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf*/ |
176 |
0x0f,0x00,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x0e,0x00,0x00,0xf0,0xff,0xf5,0xf7, |
177 |
/*d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df*/ |
178 |
0xea,0x0b,0x03,0x05,0x86,0x1b,0x30,0xf6,0xad,0x27,0x00,0x00,0x00,0x00,0x00,0x00, |
179 |
/*e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef*/ |
180 |
0x00,0x01,0x00,0x00,0x14,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
181 |
/*f0 f1 f2*/ |
182 |
0x00,0x00,0x00}; |
183 |
|
184 |
SANE_Byte Hp44x0_move_back[] = { |
185 |
0xf5,0x41,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x10,0x10,0x10,0x70,0x00,0x00,0x00,0x00, |
186 |
0x20,0x28,0xff,0x20,0xf8,0x28,0x07,0x00,0xff,0x00,0x00,0x00,0x00,0x20,0x00,0x00, |
187 |
0x3a,0xf2,0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
188 |
0x00,0x00,0x80,0x81,0x10,0x10,0x24,0x00,0x00,0x02,0x0e,0x00,0x00,0x00,0x00,0x00, |
189 |
0x20,0x00,0x00,0x00,0x8c,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
190 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
191 |
0x40,0x1f,0x41,0x1f,0x01,0x20,0x64,0x00,0x00,0x00,0x00,0x00,0xc8,0x00,0x00,0x00, |
192 |
0x00,0x00,0xe1,0x14,0x18,0x15,0x00,0x00,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x00, |
193 |
0x32,0x00,0x33,0x00,0x00,0x00,0x06,0x00,0x06,0x34,0x00,0xff,0x3f,0x80,0x68,0x00, |
194 |
0x1c,0x00,0x00,0x01,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
195 |
0x00,0x00,0x00,0xcc,0x27,0x64,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
196 |
0x00,0x00,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
197 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
198 |
0x00,0x00,0x00,0x00,0x86,0x6b,0x00,0x00,0x80,0x27,0x00,0x00,0x00,0x00,0x00,0x00, |
199 |
0x00,0x17,0x0d,0x06,0xf9,0x00,0x53,0x02,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
200 |
0x00,0x00,0x00}; |
201 |
|
202 |
SANE_Byte Hp44x0_init_1[] = { |
203 |
0xe5,0x41,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x0a,0x0a,0x0a,0x70,0x00,0x00,0x00,0x00, |
204 |
0x60,0x3b,0x00,0x20,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00, |
205 |
0x3a,0xf2,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
206 |
0x00,0x00,0x00,0x00,0x10,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
207 |
0x20,0x00,0x00,0x00,0x8c,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
208 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
209 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
210 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
211 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x68,0x00, |
212 |
0x00,0x00,0x00,0x02,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
213 |
0x00,0x00,0x00,0xcc,0x27,0x64,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
214 |
0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
215 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
216 |
0x00,0x00,0x00,0x00,0x86,0x1b,0x00,0xff,0x00,0x27,0x00,0x00,0x00,0x00,0x00,0x00, |
217 |
0x00,0x01,0x00,0x00,0x14,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
218 |
0x00,0x00,0x00}; |
219 |
|
220 |
SANE_Byte Hp44x0_init_5[] = { |
221 |
0xe5,0x41,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x0a,0x0a,0x0a,0x70,0x00,0x00,0x00,0x00, |
222 |
0x28,0x28,0xff,0x20,0xf8,0x28,0x07,0x00,0xff,0x00,0x00,0x00,0x00,0x20,0x00,0x00, |
223 |
0x3a,0xf2,0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
224 |
0x00,0x00,0x00,0x00,0x10,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
225 |
0x20,0x00,0x00,0x00,0x8c,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
226 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
227 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
228 |
0x00,0x00,0xe1,0x14,0x18,0x15,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
229 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x68,0x00, |
230 |
0x00,0x00,0x00,0x01,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
231 |
0x00,0x00,0x00,0xcc,0x27,0x64,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
232 |
0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff, |
233 |
0x0f,0x00,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x0e,0x00,0x00,0xf0,0xff,0xf5,0xf7, |
234 |
0xea,0x0b,0x03,0x05,0x86,0x1b,0x30,0xf6,0x80,0x27,0x00,0x00,0x00,0x00,0x00,0x00, |
235 |
0x00,0x01,0x00,0x00,0x14,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
236 |
0x00,0x00,0x00}; |
237 |
|
238 |
SANE_Byte Hp44x0_myinit33[] = { |
239 |
/*0 1 2 3 4 5 6 7 8 9 a b c d e f*/ |
240 |
0xe5,0x41,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x10,0x10,0x10,0x70,0x00,0x00,0x00,0x00, |
241 |
/*10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f*/ |
242 |
0x20,0x3f,0xff,0x20,0xf8,0x28,0x07,0x00,0xff,0x00,0x00,0x00,0x00,0x20,0x00,0x00, |
243 |
/*20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f*/ |
244 |
0x3a,0xf2,0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
245 |
/*30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f*/ |
246 |
0x00,0x00,0x80,0x81,0x10,0x1b,0x29,0x00,0x00,0x02,0x1b,0x00,0x00,0x00,0x00,0x00, |
247 |
/*40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f*/ |
248 |
0x20,0x00,0x00,0x00,0x8c,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
249 |
/*50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f*/ |
250 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
251 |
/*60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f*/ |
252 |
0x12,0x00,0xc6,0x00,0x01,0x20,0x2c,0x01,0x00,0x00,0x00,0x00,0xdc,0x05,0x00,0x00, |
253 |
/*70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f*/ |
254 |
0x00,0x00,0xe1,0x14,0x18,0x15,0x00,0x00,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x00, |
255 |
/*80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f*/ |
256 |
0x32,0x00,0x33,0x00,0x00,0x00,0x06,0x00,0x06,0x34,0x00,0xff,0x3f,0x80,0x68,0x00, |
257 |
/*90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f*/ |
258 |
0x1c,0x00,0x00,0x01,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
259 |
/*a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af*/ |
260 |
0x00,0x00,0x00,0xcc,0x27,0x64,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
261 |
/*b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf*/ |
262 |
0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff, |
263 |
/*c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf*/ |
264 |
0x0f,0x00,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x0e,0x00,0x00,0xf0,0xff,0xf5,0xf7, |
265 |
/*d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df*/ |
266 |
0xea,0x0b,0x03,0x05,0x86,0xab,0x30,0xf6,0xad,0xa7,0x00,0x00,0x00,0x00,0x00,0x00, |
267 |
/*e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef*/ |
268 |
0x00,0x01,0x00,0x00,0x1c,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
269 |
/*f0 f1 f2*/ |
270 |
0x00,0x00,0x00}; |
271 |
|
272 |
SANE_Byte Hp44x0_300_true_1_3[] = { |
273 |
0xe5,0x41,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x10,0x10,0x10,0x70,0x00,0x00,0x00,0x00, |
274 |
0x20,0x3b,0xff,0x20,0xf8,0x28,0x07,0x00,0xff,0x00,0x00,0x00,0x00,0x20,0x00,0x00, |
275 |
0x3a,0xf2,0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
276 |
0x00,0x00,0x80,0x81,0x10,0x1b,0x29,0x00,0x00,0x02,0x1b,0x00,0x00,0x00,0x00,0x00, |
277 |
0x20,0x00,0x00,0x00,0x8c,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
278 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
279 |
0x12,0x00,0xc6,0x00,0x01,0x20,0x2c,0x01,0x00,0x00,0x00,0x00,0xdc,0x05,0x00,0x00, |
280 |
0x00,0x00,0xe1,0x14,0x18,0x15,0x00,0x00,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x00, |
281 |
0x2b,0x02,0x2c,0x02,0x00,0x18,0x1b,0x30,0x30,0x2d,0x02,0xff,0x3f,0x21,0x60,0x00, |
282 |
0x1c,0x00,0x00,0x01,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
283 |
0x00,0x00,0x00,0xcc,0x27,0x64,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
284 |
0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff, |
285 |
0x0f,0x00,0x00,0xf0,0xff,0xff,0x0f,0x00,0xff,0xf1,0xff,0x00,0xf0,0xff,0xf5,0xf7, |
286 |
0xea,0x0b,0x03,0x05,0x86,0xab,0x10,0xf6,0xad,0xa7,0x00,0x00,0x00,0x00,0x00,0x00, |
287 |
0x00,0x01,0x00,0x00,0x1c,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
288 |
0x00,0x00,0x00}; |
289 |
|
290 |
SANE_Byte Hp44x0_300_BW_1[] = { |
291 |
/*0 1 2 3 4 5 6 7 8 9 a b c d e f*/ |
292 |
0xe5,0x41,0x82,0x86,0x81,0x82,0x86,0x81,0x07,0x05,0x0f,0x70,0x00,0x00,0x00,0x00, |
293 |
/*10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f*/ |
294 |
0x20,0x3f,0xff,0x20,0xf8,0x28,0x07,0x00,0xff,0x00,0x00,0x00,0x00,0x20,0x00,0x00, |
295 |
/*20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f*/ |
296 |
0x3a,0xf2,0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
297 |
/*30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f*/ |
298 |
0x00,0x00,0x80,0x81,0x10,0x1b,0x29,0x00,0x00,0x02,0x1b,0x00,0x00,0x00,0x00,0x00, |
299 |
/*0x00,0x00,0x20,0x83,0x10,0x0e,0x2c,0x00,0x00,0x02,0x0e,0x00,0x00,0x00,0x00,0x00,*/ |
300 |
/*40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f*/ |
301 |
0x20,0x00,0x00,0x00,0x8c,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
302 |
/*50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f*/ |
303 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
304 |
/*60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f*/ |
305 |
0x01,0x00,0x43,0x00,0x01,0x20,0x5e,0x00,0x00,0x00,0x00,0x00,0x54,0x0a,0x00,0x00, |
306 |
/*70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f*/ |
307 |
0x00,0x00,0xe1,0x14,0x18,0x15,0x00,0x00,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x00, |
308 |
/*80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f*/ |
309 |
0x32,0x00,0x33,0x00,0x00,0x00,0x06,0x00,0x06,0x34,0x00,0xff,0x3f,0x00,0x60,0x00, |
310 |
/*90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f*/ |
311 |
0x1c,0x00,0x00,0x01,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
312 |
/*a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af*/ |
313 |
0x00,0x00,0x00,0xcc,0x27,0x64,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
314 |
/*b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf*/ |
315 |
0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff, |
316 |
/*c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf*/ |
317 |
0x0f,0x00,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x0e,0x00,0x00,0xf0,0xff,0xf5,0xf7, |
318 |
/*d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df*/ |
319 |
0xea,0x0b,0x17,0x01,0x86,0x0f,0x30,0x52,0xad,0xa7,0x00,0x00,0x00,0x00,0x00,0x00, |
320 |
/*e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef*/ |
321 |
0x00,0x05,0x00,0x00,0xc9,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
322 |
/*f0 f1 f2*/ |
323 |
0x00,0x00,0x00}; |
324 |
|
325 |
SANE_Byte Hp44x0_200_BW_1[] = { |
326 |
0xe5,0x41,0x82,0x86,0x81,0x82,0x86,0x81,0x07,0x05,0x0f,0x70,0x00,0x00,0x00,0x00, |
327 |
0x20,0x3f,0xff,0x20,0xf8,0x28,0x01,0x00,0xff,0x00,0x00,0x00,0x00,0x20,0x00,0x00, |
328 |
0x3a,0xf2,0x00,0x80,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
329 |
0x00,0x00,0x20,0x83,0x10,0x0e,0x2c,0x00,0x00,0x02,0x0e,0x00,0x00,0x00,0x00,0x00, |
330 |
0x2c,0x00,0x00,0x00,0x8c,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
331 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
332 |
0x2d,0x00,0xef,0x0d,0x01,0x20,0x5e,0x00,0x00,0x00,0x00,0x00,0x54,0x0a,0x00,0x00, |
333 |
0x00,0x00,0xe1,0x14,0x18,0x15,0x00,0x00,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x00, |
334 |
0x2b,0x02,0x2c,0x02,0x00,0x18,0x1b,0x30,0x30,0x2d,0x02,0xff,0x3f,0xef,0x60,0x00, |
335 |
0x18,0x00,0x00,0x01,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
336 |
0x00,0x00,0x00,0xcc,0x27,0x64,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
337 |
0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff, |
338 |
0x0f,0x00,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x0e,0x00,0x00,0xf0,0xff,0xf5,0xf7, |
339 |
0xea,0x0b,0x17,0x01,0x86,0x0f,0x30,0x52,0xad,0xa7,0x00,0x00,0x00,0x00,0x00,0x00, |
340 |
0x00,0x07,0x00,0x00,0x56,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
341 |
0x00,0x00,0x00}; |
342 |
|
343 |
SANE_Byte Hp44x0_200_BW_2[] = { |
344 |
0xe5,0x41,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x00, |
345 |
0x20,0x3f,0xff,0x20,0xf8,0x28,0x07,0x00,0xff,0x00,0x00,0x00,0x00,0x20,0x00,0x00, |
346 |
0x3a,0xf2,0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
347 |
0x00,0x00,0x00,0x03,0x10,0x0e,0x22,0x00,0x00,0x02,0x0e,0x00,0x00,0x00,0x00,0x00, |
348 |
0x20,0x00,0x00,0x00,0x8c,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
349 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
350 |
0x01,0x00,0x02,0x00,0x01,0x20,0x0d,0x00,0x00,0x00,0x00,0x00,0xfb,0x02,0x00,0x00, |
351 |
0x00,0x00,0xe1,0x14,0x18,0x15,0x00,0x00,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x00, |
352 |
0x32,0x00,0x33,0x00,0x00,0x00,0x06,0x00,0x06,0x34,0x00,0xff,0x3f,0x00,0x60,0x00, |
353 |
0x1c,0x00,0x00,0x01,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
354 |
0x00,0x00,0x00,0xcc,0x27,0x64,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
355 |
0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff, |
356 |
0x0f,0x00,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x0e,0x00,0x00,0xf0,0xff,0xf5,0xf7, |
357 |
0xea,0x0b,0x17,0x01,0x86,0x0f,0x30,0x52,0xad,0xa7,0x00,0x00,0x00,0x00,0x00,0x00, |
358 |
0x00,0x07,0x00,0x00,0x56,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
359 |
0x00,0x00}; |
360 |
|
361 |
SANE_Byte Hp44x0_200_TRUE_1[] = { |
362 |
/*0 1 2 3 4 5 6 7 8 9 a b c d e f*/ |
363 |
0xe5,0x41,0xfa,0xfa,0xfa,0xfa,0xfa,0xfa,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x00, |
364 |
/*10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f*/ |
365 |
0x20,0x3b,0xff,0x20,0xf8,0x28,0x07,0x00,0xff,0x00,0x00,0x00,0x00,0x20,0x00,0x00, |
366 |
/*20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f*/ |
367 |
0x3a,0xf2,0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
368 |
/*30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f*/ |
369 |
0x00,0x00,0x00,0x03,0x10,0x0e,0x22,0x00,0x00,0x02,0x0e,0x00,0x00,0x00,0x00,0x00, |
370 |
0x20,0x00,0x00,0x00,0x8c,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
371 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
372 |
0x01,0x00,0x02,0x00,0x01,0x20,0x15,0x00,0x00,0x00,0x00,0x00,0x03,0x03,0x00,0x00, |
373 |
0x00,0x00,0xe1,0x14,0x18,0x15,0x00,0x00,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x00, |
374 |
0x2b,0x02,0x2c,0x02,0x00,0x18,0x1b,0x30,0x30,0x2d,0x02,0xff,0x3f,0x21,0x60,0x00, |
375 |
0x1c,0x00,0x00,0x01,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
376 |
0x00,0x00,0x00,0xcc,0x27,0x64,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
377 |
0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
378 |
0xff,0x0f,0xff,0x00,0xf0,0x00,0xff,0x0f,0xff,0xff,0xf1,0xff,0x00,0xf0,0xed,0xef, |
379 |
0xe2,0x03,0x17,0x01,0x86,0x0f,0x10,0x52,0xad,0xa7,0x00,0x00,0x00,0x00,0x00,0x00, |
380 |
0x00,0x07,0x00,0x00,0x56,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
381 |
0x00,0x00}; |
382 |
|
383 |
SANE_Byte Hp44x0_300_TRUE_1[] = { |
384 |
/*0 1 2 3 4 5 6 7 8 9 a b c d e f*/ |
385 |
0xe5,0x41,0xbb,0x7d,0x3e,0xbb,0x7d,0x3e,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x00, |
386 |
/*10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f*/ |
387 |
0x20,0x3b,0xff,0x20,0xf8,0x28,0x07,0x00,0xff,0x00,0x00,0x00,0x00,0x20,0x00,0x00, |
388 |
/*20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f*/ |
389 |
0x3a,0xf2,0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
390 |
/*30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f*/ |
391 |
0x00,0x00,0x00,0x03,0x10,0x0e,0x22,0x00,0x00,0x02,0x0e,0x00,0x00,0x00,0x00,0x00, |
392 |
0x20,0x00,0x00,0x00,0x8c,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
393 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
394 |
0x01,0x00,0x02,0x00,0x01,0x20,0x15,0x00,0x00,0x00,0x00,0x00,0x03,0x03,0x00,0x00, |
395 |
0x00,0x00,0xe1,0x14,0x18,0x15,0x00,0x00,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x00, |
396 |
0x2b,0x02,0x2c,0x02,0x00,0x18,0x1b,0x30,0x30,0x2d,0x02,0xff,0x3f,0x21,0x60,0x00, |
397 |
0x1c,0x00,0x00,0x01,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
398 |
0x00,0x00,0x00,0xcc,0x27,0x64,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
399 |
/*b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf*/ |
400 |
0x00,0x00,0x02, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
401 |
/*c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf*/ |
402 |
0x00,0xff,0x0f,0xff,0x00,0xf0,0x00,0xff,0x0f,0xff,0xff,0xf1,0xff,0x00,0xf0,0xed, |
403 |
/*d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df*/ |
404 |
0xef,0xe2,0x03,0x17,0x01,0x86,0x0f,0x10,0x52,0xad,0xa7,0x00,0x00,0x00,0x00,0x00, |
405 |
/*e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef*/ |
406 |
0x00,0x00,0x07,0x00,0x00,0x56,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
407 |
/*f0 f1 f2*/ |
408 |
0x00,0x00,0x00}; |
409 |
|
410 |
/* CCD CHANGES to CCD1 80,81,82,83,85,86,87,88,89,8a,8d,8e,c2,c3,c6,c7,c8,c9,ca,d6 */ |
411 |
|
412 |
|
413 |
SANE_Byte Hp44x0_patch_2[] = { |
414 |
0x12,0x8,0x16,0x8,0x1d,0x20,0xb0,0x0,0xce,0xe0,0xd4,0x86, |
415 |
0xd5,0x1b,0xd6,0x0,0xd7,0xff,0xd8,0x0,0xd9,0x27,0xda,0x0, |
416 |
0xe1,0x1,0xe2,0x0,0xe4,0x14,0xe5,0x0,0xf4,0x0,0xf5,0x0, |
417 |
0xf6,0x0,0xf7,0x0,0xf8,0x0,0xf9,0x0,0xfa,0x0,0xfb,0x0, |
418 |
0xfc,0x0,0xfd,0x0,0xfe,0x0,0x0,0x0}; |
419 |
|
420 |
SANE_Byte Hp44x0_patch_3[] = { |
421 |
0x1d,0x20,0xb0,0x0,0xd4,0x86,0xd5,0x1b,0xd6,0x0,0xd7,0xff, |
422 |
0xd8,0x0,0xd9,0x27,0xda,0x0,0xe1,0x1,0xe2,0x0,0xe4,0x14, |
423 |
0xe5,0x0,0xf4,0x0,0xf7,0x0,0xf8,0x0,0xf9,0x0,0xfa,0x0, |
424 |
0xfb,0x0,0xfc,0x0,0xfd,0x0,0xfe,0x0,0x0,0x0}; |
425 |
|
426 |
SANE_Byte Hp44x0_patch_4[] = { |
427 |
0x10,0x28,0x11,0x28,0x12,0xff,0x14,0xf8,0x15,0x28,0x16,0x7, |
428 |
0x18,0xff,0x1a,0x0,0x1d,0x20,0x23,0xff,0x24,0xff,0x72,0xe1, |
429 |
0x73,0x14,0x74,0x18,0x75,0x15,0xb0,0x0,0xbf,0xff,0xc0,0xf, |
430 |
0xc2,0xff,0xc3,0xff,0xc4,0xff,0xc5,0xff,0xc6,0xff,0xc7,0xff, |
431 |
0xc9,0xe,0xcc,0xf0,0xcd,0xff,0xce,0xf5,0xcf,0xf7,0xd0,0xea, |
432 |
0xd1,0xb,0xd2,0x3,0xd3,0x5,0xd4,0x86,0xd5,0x1b,0xd6,0x30, |
433 |
0xd7,0xf6,0xd8,0x80,0xd9,0x27,0xda,0x0,0xe1,0x1,0xe2,0x0, |
434 |
0xe4,0x14,0xe5,0x0,0xf7,0x0,0xf8,0x0,0xf9,0x0,0xfa,0x0, |
435 |
0xfb,0x0,0xfc,0x0,0xfd,0x0,0xfe,0x0,0x0,0x0}; |
436 |
|
437 |
SANE_Byte Hp44x0_patch_600[] = { |
438 |
0x10,0x28, 0x11,0x3b, 0x36,0x2c, |
439 |
0xe4,0xbd, 0xe5,0x0a, |
440 |
|
441 |
0x72,0x3a, 0x73,0x15, 0x74,0x62, |
442 |
0xbf,0xf8, 0xc0,0x7f, |
443 |
0xc4,0x00, 0xc5,0xf8, |
444 |
0xcb,0x07, 0xcc,0x80, 0xce,0xf2, |
445 |
0xcf,0xf4, 0xd0,0xe7, 0xd1,0x08, 0xd2,0x0e, 0xd3,0x10, |
446 |
0xd5,0x0f, 0xd7,0x52, |
447 |
0x60,0x01, 0x62,0x02, 0x66,0x2b, 0x67,0x00, 0x6c,0x19, 0x6d,0x03 |
448 |
}; |
449 |
|
450 |
SANE_Byte callibration_buffer[0x818+4]; |
451 |
SANE_Byte registers[0xff]; |
452 |
SANE_Byte read_buffer[0xff]; |
453 |
|
454 |
SANE_Bool Hp44x0_Wakeup(THWParams *pHWParams,TScanParams *pParams); |
455 |
SANE_Bool Hp44x0_Down(SANE_Int iHandle); |
456 |
|
457 |
SANE_Bool Hp44x0_patch_and_send_values (SANE_Int iHandle, SANE_Byte *my_values); |
458 |
void Hp44x0_patch_regs (THWParams *pHWParams,SANE_Byte *my_values); |
459 |
SANE_Bool Hp44x0_set_display ( SANE_Int iHandle, SANE_Byte val ); |
460 |
|
461 |
SANE_Bool Hp44x0_write_cal_bytes (THWParams *pHWParams, SANE_Byte b ); |
462 |
SANE_Bool Hp44x0_cal_scanner (THWParams *pHWParams, TScanParams *pParams); |
463 |
SANE_Int Hp44x0_park_to_home (THWParams *pHWParams,TScanParams *pParams); |
464 |
|
465 |
SANE_Int Hp44x0_move_to_pos (THWParams *pHWParams, TScanParams *pParams); |
466 |
SANE_Int Hp44x0_wait_for_WarmUp (SANE_Int iHandle, THWParams *pHWParams); |
467 |
SANE_Bool Hp44x0_start_scan (THWParams *pHWParams,TScanParams *pParams, |
468 |
TDataPipe *pDataPipe); |
469 |
SANE_Bool Hp44x0_init_scan (THWParams *pHWParams, TScanParams *pParams, |
470 |
TDataPipe *pDataPipe); |
471 |
SANE_Bool Hp44x0_GetLamp (SANE_Int iHandle, SANE_Bool *pfLampIsOn); |
472 |
SANE_Bool Hp44x0_SetLamp (SANE_Int iHandle, SANE_Bool fLampOn); |
473 |
|
474 |
SANE_Int Hp44x0c_nvram_enable_controller(SANE_Int iHandle,SANE_Int enable); |
475 |
|
476 |
|
477 |
#if 0 |
478 |
void _UnscrambleLine (SANE_Handle h,SANE_Byte *pabLine, |
479 |
SANE_Byte *pabRed, SANE_Byte *pabGrn, SANE_Byte *pabBlu, |
480 |
SANE_Int iWidth, SANE_Bool iReversedHead); |
481 |
|
482 |
#endif |
483 |
|
484 |
#endif /* NO _HP_RTS__H_ */ |
485 |
|