1/* sane - Scanner Access Now Easy.
2   Copyright (C) 2001-2002 Matthew C. Duggan and Simon Krix
3   This file is part of the SANE package.
4
5   This program is free software; you can redistribute it and/or
6   modify it under the terms of the GNU General Public License as
7   published by the Free Software Foundation; either version 2 of the
8   License, or (at your option) any later version.
9
10   This program is distributed in the hope that it will be useful, but
11   WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   General Public License for more details.
14
15   You should have received a copy of the GNU General Public License
16   along with this program.  If not, see <https://www.gnu.org/licenses/>.
17
18   As a special exception, the authors of SANE give permission for
19   additional uses of the libraries contained in this release of SANE.
20
21   The exception is that, if you link a SANE library with other files
22   to produce an executable, this does not by itself cause the
23   resulting executable to be covered by the GNU General Public
24   License.  Your use of that executable is in no way restricted on
25   account of linking the SANE library code into it.
26
27   This exception does not, however, invalidate any other reasons why
28   the executable file might be covered by the GNU General Public
29   License.
30
31   If you submit changes to SANE to the maintainers to be included in
32   a subsequent release, you agree by submitting the changes that
33   those changes may be distributed with this exception intact.
34
35   If you write modifications of your own for SANE, it is your choice
36   whether to permit this exception to apply to your modifications.
37   If you do not wish that, delete this exception notice.
38
39   -----
40
41   This file is part of the canon_pp backend, supporting Canon FBX30P
42   and NX40P scanners and also distributed as part of the stand-alone
43   driver.
44
45   Low-level scanner interface
46   */
47
48#ifndef CANON_PP_IO_H
49#define CANON_PP_IO_H
50
51/* Actual Interface */
52void sanei_canon_pp_set_ieee1284_mode(int m);
53int sanei_canon_pp_wake_scanner(struct parport *port, int mode);
54int sanei_canon_pp_write(struct parport *port, int length,
55		unsigned char *data);
56int sanei_canon_pp_read(struct parport *port, int length,
57		unsigned char *data);
58int sanei_canon_pp_check_status(struct parport *port);
59int sanei_canon_pp_scanner_init(struct parport *port);
60
61#endif
62