1 /* sane - Scanner Access Now Easy. 2 3 Copyright (C) 2000 Mustek. 4 Originally maintained by Tom Wang <tom.wang@mustek.com.tw> 5 6 Copyright (C) 2001, 2002 by Henning Meier-Geinitz. 7 8 This file is part of the SANE package. 9 10 This program is free software; you can redistribute it and/or 11 modify it under the terms of the GNU General Public License as 12 published by the Free Software Foundation; either version 2 of the 13 License, or (at your option) any later version. 14 15 This program is distributed in the hope that it will be useful, but 16 WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 General Public License for more details. 19 20 You should have received a copy of the GNU General Public License 21 along with this program. If not, see <https://www.gnu.org/licenses/>. 22 23 As a special exception, the authors of SANE give permission for 24 additional uses of the libraries contained in this release of SANE. 25 26 The exception is that, if you link a SANE library with other files 27 to produce an executable, this does not by itself cause the 28 resulting executable to be covered by the GNU General Public 29 License. Your use of that executable is in no way restricted on 30 account of linking the SANE library code into it. 31 32 This exception does not, however, invalidate any other reasons why 33 the executable file might be covered by the GNU General Public 34 License. 35 36 If you submit changes to SANE to the maintainers to be included in 37 a subsequent release, you agree by submitting the changes that 38 those changes may be distributed with this exception intact. 39 40 If you write modifications of your own for SANE, it is your choice 41 whether to permit this exception to apply to your modifications. 42 If you do not wish that, delete this exception notice. 43 44 This file implements a SANE backend for Mustek 1200UB and similar 45 USB flatbed scanners. */ 46 47 #ifndef mustek_usb_h 48 #define mustek_usb_h 49 50 #include <sys/types.h> 51 #include "mustek_usb_high.h" 52 53 #define ENABLE(OPTION) s->opt[OPTION].cap &= ~SANE_CAP_INACTIVE 54 #define DISABLE(OPTION) s->opt[OPTION].cap |= SANE_CAP_INACTIVE 55 #define IS_ACTIVE(OPTION) (((s->opt[OPTION].cap) & SANE_CAP_INACTIVE) == 0) 56 57 #define MUSTEK_USB_CONFIG_FILE "mustek_usb.conf" 58 #define SCAN_BUFFER_SIZE (64 * 1024) 59 60 #endif /* mustek_usb_h */ 61