sanei_lm983x.h

Go to the documentation of this file.
00001 /* sane - Scanner Access Now Easy.
00002 
00003    based on sources acquired from Plustek Inc.
00004    Copyright (C) 2002-2003 Gerhard Jaeger <gerhard@gjaeger.de>
00005 
00006    This file is part of the SANE package.
00007  
00008    This program is free software; you can redistribute it and/or
00009    modify it under the terms of the GNU General Public License as
00010    published by the Free Software Foundation; either version 2 of the
00011    License, or (at your option) any later version.
00012 
00013    This program is distributed in the hope that it will be useful, but
00014    WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016    General Public License for more details.
00017 
00018    You should have received a copy of the GNU General Public License
00019    along with this program; if not, write to the Free Software
00020    Foundation, Inc., 59 Temple Place - Suite 330, Boston,
00021    MA 02111-1307, USA.
00022 
00023    As a special exception, the authors of SANE give permission for
00024    additional uses of the libraries contained in this release of SANE.
00025 
00026    The exception is that, if you link a SANE library with other files
00027    to produce an executable, this does not by itself cause the
00028    resulting executable to be covered by the GNU General Public
00029    License.  Your use of that executable is in no way restricted on
00030    account of linking the SANE library code into it.
00031 
00032    This exception does not, however, invalidate any other reasons why
00033    the executable file might be covered by the GNU General Public
00034    License.
00035 
00036    If you submit changes to SANE to the maintainers to be included in
00037    a subsequent release, you agree by submitting the changes that
00038    those changes may be distributed with this exception intact.
00039 
00040    If you write modifications of your own for SANE, it is your choice
00041    whether to permit this exception to apply to your modifications.
00042    If you do not wish that, delete this exception notice.
00043 
00044 */
00045 
00055 #ifndef sanei_lm983x_h
00056 #define sanei_lm983x_h
00057 
00058 #include "../include/sane/config.h"
00059 #include "../include/sane/sane.h"
00060 
00073 #define sanei_lm983x_read_byte(fd, reg, value) \
00074           sanei_lm983x_read (fd, reg, value, 1, 0)
00075 
00081 extern void sanei_lm983x_init( void );
00082 
00095 extern SANE_Status sanei_lm983x_write_byte( SANE_Int fd,
00096                                             SANE_Byte reg, SANE_Byte value );
00097 
00114 extern SANE_Status sanei_lm983x_write( SANE_Int fd, SANE_Byte reg,
00115                                        SANE_Byte *buffer, SANE_Word len,
00116                                                          SANE_Bool increment );
00117 
00135 extern SANE_Status sanei_lm983x_read( SANE_Int fd, SANE_Byte reg,
00136                                       SANE_Byte *buffer, SANE_Word len,
00137                                                          SANE_Bool increment );
00138 
00147 extern SANE_Bool sanei_lm983x_reset( SANE_Int fd );
00148 
00149 #endif /* sanei_lm983x_h */
00150 

Generated on Sat Jul 26 05:45:27 2008 for SANEI by  doxygen 1.5.1