Files
libgphoto2/camlibs/mustek/io.h
Marcus Meissner 261e2b4d07 * Forward ported the Mustek MDC800 driver from gphoto 0.4.3.
(Not working due to USB interrupt problems.)


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4348 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-03-25 13:54:02 +00:00

31 lines
837 B
C

#ifndef _IO_H
#define _IO_H
/* Maximum Number of tries, before a command is given up */
#define MDC800_DEFAULT_COMMAND_RETRY 4
/* There is a little delay for the next sending (ms) */
#define MDC800_DEFAULT_COMMAND_RETRY_DELAY 300
/* Default Timeout */
#define MDC800_DEFAULT_TIMEOUT 250
/* Prevent Overruns ( ms) ?? */
#define MDC800_DEFAULT_COMMAND_DELAY 50
/* Long Timeout for Functions that needs time (Take Photo, delete..) */
#define MDC800_LONG_TIMEOUT 5000
/* 20sec Timeout for Flashlight */
#define MDC800_TAKE_PICTURE_TIMEOUT 20000
int mdc800_io_sendCommand_with_retry(GPPort *, char*, char* , int, int,int);
/* The API to the upper Layer */
int mdc800_io_sendCommand(GPPort *, char ,char,char,char,char *,int );
/* Helper Function for rs232 and usb */
int mdc800_io_getCommandTimeout(char);
#endif