summaryrefslogtreecommitdiff
path: root/backend/canon_dr-cmd.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2021-02-16 18:24:19 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2021-02-16 18:24:19 +0100
commit351b7328520c16730ceb46e5acae16038c42185e (patch)
treefae21fd5c94f3c3ed0202a95c9ada705482e647b /backend/canon_dr-cmd.h
parentad38bc6ecb80ddeb562841b33258dd53659b1da6 (diff)
New upstream version 1.0.32upstream/1.0.32
Diffstat (limited to 'backend/canon_dr-cmd.h')
-rw-r--r--backend/canon_dr-cmd.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/backend/canon_dr-cmd.h b/backend/canon_dr-cmd.h
index 51f2a06..44751fa 100644
--- a/backend/canon_dr-cmd.h
+++ b/backend/canon_dr-cmd.h
@@ -71,6 +71,11 @@ putnbyte (unsigned char *pnt, unsigned int value, unsigned int nbytes)
#define get_ES_length(b) getnbyte(b+0x04, 4)
/* ==================================================================== */
+/* USB packets */
+#define set_USB_CMD_xfer_length(sb, val) putnbyte(sb + 1, val, 3)
+#define set_USB_OUT_xfer_length(sb, val) putnbyte(sb + 1, val, 3)
+
+/* ==================================================================== */
/* SCSI commands */
#define set_SCSI_opcode(out, val) out[0]=val
@@ -287,6 +292,17 @@ putnbyte (unsigned char *pnt, unsigned int value, unsigned int nbytes)
/*counters*/
/*endorser*/
+/*fine calibration*/
+#define set_S_FCAL_datatype(sb, val) sb[0x00] = (unsigned char)val
+/* these are offset, OR with 0x40 to get gain */
+#define S_FCAL_id_f_red 0x00
+#define S_FCAL_id_f_green 0x04
+#define S_FCAL_id_f_blue 0x08
+#define S_FCAL_id_b_red 0x01
+#define S_FCAL_id_b_green 0x05
+#define S_FCAL_id_b_blue 0x09
+
+
/* ==================================================================== */
/* OBJECT_POSITION */
#define OBJECT_POSITION_code 0x31