• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* sane - Scanner Access Now Easy.
2 
3    Copyright (C) 2002 Sergey Vlasov <vsu@altlinux.ru>
4    GT6801 support by Andreas Nowack <nowack.andreas@gmx.de>
5 
6    This file is part of the SANE package.
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 #ifndef GT68XX_GT6801_H
44 #define GT68XX_GT6801_H
45 
46 static SANE_Status
47 gt6801_check_firmware (GT68xx_Device * dev, SANE_Bool * loaded);
48 
49 static SANE_Status
50 gt6801_check_plustek_firmware (GT68xx_Device * dev, SANE_Bool * loaded);
51 
52 static SANE_Status
53 gt6801_download_firmware (GT68xx_Device * dev,
54 			  SANE_Byte * data, SANE_Word size);
55 
56 static SANE_Status
57 gt6801_get_power_status (GT68xx_Device * dev, SANE_Bool * power_ok);
58 
59 static SANE_Status
60 gt6801_lamp_control (GT68xx_Device * dev, SANE_Bool fb_lamp,
61 		     SANE_Bool ta_lamp);
62 
63 static SANE_Status gt6801_is_moving (GT68xx_Device * dev, SANE_Bool * moving);
64 
65 static SANE_Status gt6801_carriage_home (GT68xx_Device * dev);
66 
67 static SANE_Status gt6801_stop_scan (GT68xx_Device * dev);
68 
69 #endif /* not GT68XX_GT6801_H */
70