summaryrefslogtreecommitdiff
path: root/backend/epsonds-io.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-10-08 12:33:06 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-10-08 12:33:06 +0200
commit24feb9f37f302c006ba51502da817325200e74d0 (patch)
treed4451782449e5fcbae9cbe3778c51a8c6cb3c36d /backend/epsonds-io.h
parent76b69ebb381d40458339c9940135740797cbd2d4 (diff)
parentcfd27ef2ad8b005fd47ab41ef29b71d9e3d48201 (diff)
Merge tag 'upstream/1.0.25'
Upstream version 1.0.25
Diffstat (limited to 'backend/epsonds-io.h')
-rw-r--r--backend/epsonds-io.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/backend/epsonds-io.h b/backend/epsonds-io.h
new file mode 100644
index 0000000..1a1b2b7
--- /dev/null
+++ b/backend/epsonds-io.h
@@ -0,0 +1,33 @@
+/*
+ * epsonds-io.h - Epson ESC/I-2 driver, low level I/O.
+ *
+ * Copyright (C) 2015 Tower Technologies
+ * Author: Alessandro Zummo <a.zummo@towertech.it>
+ *
+ * This file is part of the SANE package.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, version 2.
+ */
+
+#ifndef epsonds_io_h
+#define epsonds_io_h
+
+#define USB_TIMEOUT (6 * 1000)
+#define USB_SHORT_TIMEOUT (1 * 800)
+
+size_t eds_send(epsonds_scanner *s, void *buf, size_t length, SANE_Status *status);
+size_t eds_recv(epsonds_scanner *s, void *buf, size_t length, SANE_Status *status);
+
+SANE_Status eds_txrx(epsonds_scanner *s, char *txbuf, size_t txlen,
+ char *rxbuf, size_t rxlen);
+
+SANE_Status eds_control(epsonds_scanner *s, void *buf, size_t buf_size);
+
+SANE_Status eds_fsy(epsonds_scanner *s);
+SANE_Status eds_fsx(epsonds_scanner *s);
+SANE_Status eds_lock(epsonds_scanner *s);
+
+#endif
+