00001 /* sane - Scanner Access Now Easy. 00002 Copyright (C) 2000-2003 Jochen Eisinger <jochen.eisinger@gmx.net> 00003 This file is part of the SANE package. 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public License as 00007 published by the Free Software Foundation; either version 2 of the 00008 License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, but 00011 WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 00018 MA 02111-1307, USA. 00019 00020 As a special exception, the authors of SANE give permission for 00021 additional uses of the libraries contained in this release of SANE. 00022 00023 The exception is that, if you link a SANE library with other files 00024 to produce an executable, this does not by itself cause the 00025 resulting executable to be covered by the GNU General Public 00026 License. Your use of that executable is in no way restricted on 00027 account of linking the SANE library code into it. 00028 00029 This exception does not, however, invalidate any other reasons why 00030 the executable file might be covered by the GNU General Public 00031 License. 00032 00033 If you submit changes to SANE to the maintainers to be included in 00034 a subsequent release, you agree by submitting the changes that 00035 those changes may be distributed with this exception intact. 00036 00037 If you write modifications of your own for SANE, it is your choice 00038 whether to permit this exception to apply to your modifications. 00039 If you do not wish that, delete this exception notice. 00040 */ 00041 00048 #ifndef sanei_pa4s2_h 00049 #define sanei_pa4s2_h 00050 00051 #include <sys/types.h> 00052 #include <sane/sane.h> 00053 00055 /* @{ */ 00056 #define SANEI_PA4S2_OPT_DEFAULT 0 /* normal mode */ 00057 #define SANEI_PA4S2_OPT_TRY_MODE_UNI 1 /* enable UNI protocoll */ 00058 #define SANEI_PA4S2_OPT_ALT_LOCK 2 /* use alternative lock cmd */ 00059 #define SANEI_PA4S2_OPT_NO_EPP 4 /* do not try to use EPP */ 00060 /* @} */ 00061 00073 extern const char ** sanei_pa4s2_devices(void); 00074 00089 extern SANE_Status sanei_pa4s2_open (const char *dev, int *fd); 00090 00105 extern SANE_Status sanei_pa4s2_scsi_pp_open (const char *dev, int *fd); 00106 00111 extern void sanei_pa4s2_close (int fd); 00112 00124 extern SANE_Status sanei_pa4s2_options (u_int * options, int set); 00125 00138 extern SANE_Status sanei_pa4s2_enable (int fd, int enable); 00139 00154 extern SANE_Status sanei_pa4s2_readbegin (int fd, u_char reg); 00155 00165 extern SANE_Status sanei_pa4s2_scsi_pp_get_status (int fd, u_char *status); 00166 00176 extern SANE_Status sanei_pa4s2_scsi_pp_reg_select (int fd, int reg); 00177 00192 extern SANE_Status sanei_pa4s2_readbyte (int fd, u_char * val); 00193 00206 extern SANE_Status sanei_pa4s2_readend (int fd); 00207 00218 extern SANE_Status sanei_pa4s2_writebyte (int fd, u_char reg, u_char val); 00219 00220 #endif
1.5.1