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:25:42 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2021-02-16 18:25:42 +0100
commit64ddd1a4dfcefd11f662f5cf4bb05b590d901a97 (patch)
tree4303648095deff998ae20c2393b56db527742ac9 /backend/canon_dr-cmd.h
parent5793a221e112fa49073de0137d6bfa750a61b0a1 (diff)
parentecaaf250cb33ff61f37a7b441f2337584a655350 (diff)
Merge branch 'feature/upstream' into develop
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