summaryrefslogtreecommitdiff
path: root/camlibs/mustek/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'camlibs/mustek/io.h')
-rw-r--r--camlibs/mustek/io.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/camlibs/mustek/io.h b/camlibs/mustek/io.h
new file mode 100644
index 000000000..efa22d183
--- /dev/null
+++ b/camlibs/mustek/io.h
@@ -0,0 +1,30 @@
+#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