1/* sane - Scanner Access Now Easy. 2 Copyright (C) 1997 Geoffrey T. Dairiki 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 This file is part of a SANE backend for HP Scanners supporting 40 HP Scanner Control Language (SCL). 41*/ 42 43#ifndef HP_SCSI_INCLUDED 44#define HP_SCSI_INCLUDED 45 46#define HP_SCSI_MAX_WRITE (2048) 47SANE_Status sanei_hp_nonscsi_new (HpScsi * newp, const char * devname, 48 HpConnect connect); 49SANE_Status sanei_hp_scsi_new (HpScsi * newp, const char * devname); 50void sanei_hp_scsi_destroy (HpScsi this,int completely); 51 52hp_byte_t * sanei_hp_scsi_inq (HpScsi this); 53const char *sanei_hp_scsi_model (HpScsi this); 54const char *sanei_hp_scsi_vendor (HpScsi this); 55const char *sanei_hp_scsi_devicename (HpScsi this); 56 57SANE_Status sanei_hp_scsi_pipeout (HpScsi this, int outfd, 58 HpProcessData *pdescr); 59 60SANE_Status sanei_hp_scl_calibrate (HpScsi scsi); 61SANE_Status sanei_hp_scl_startScan (HpScsi scsi, HpScl scl); 62SANE_Status sanei_hp_scl_reset (HpScsi scsi); 63SANE_Status sanei_hp_scl_clearErrors (HpScsi scsi); 64SANE_Status sanei_hp_scl_errcheck (HpScsi scsi); 65 66SANE_Status sanei_hp_scl_upload_binary (HpScsi scsi, HpScl scl, 67 size_t *lengthhp, char **bufhp); 68SANE_Status sanei_hp_scl_set (HpScsi scsi, HpScl scl, int val); 69SANE_Status sanei_hp_scl_inquire(HpScsi scsi, HpScl scl, 70 int * valp, int * minp, int * maxp); 71SANE_Status sanei_hp_scl_upload (HpScsi scsi, HpScl scl, 72 void * buf, size_t sz); 73SANE_Status sanei_hp_scl_download (HpScsi scsi, HpScl scl, 74 const void * buf, size_t sz); 75 76#endif /* HP_SCSI_INCLUDED */ 77