diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2021-02-16 18:24:46 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2021-02-16 18:24:46 +0100 |
commit | ecaaf250cb33ff61f37a7b441f2337584a655350 (patch) | |
tree | 4303648095deff998ae20c2393b56db527742ac9 /backend/canon_dr-cmd.h | |
parent | 5793a221e112fa49073de0137d6bfa750a61b0a1 (diff) | |
parent | 351b7328520c16730ceb46e5acae16038c42185e (diff) |
Update upstream source from tag 'upstream/1.0.32'
Update to upstream version '1.0.32'
with Debian dir 2c1111c59d9d68bcbf479a4a4de7697fe2de127f
Diffstat (limited to 'backend/canon_dr-cmd.h')
-rw-r--r-- | backend/canon_dr-cmd.h | 16 |
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 |