From cbdf14a00d116f3bb83dcb8b4ced505001527aa2 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 19 Sep 2019 18:40:10 -0400 Subject: [PATCH] kodak: Document the parameters that EK7000 and EK8810 respond to. --- backend_kodak605.c | 17 ++++++++++++++++- backend_shinkos6245.c | 20 ++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/backend_kodak605.c b/backend_kodak605.c index d749607..9349f43 100644 --- a/backend_kodak605.c +++ b/backend_kodak605.c @@ -94,7 +94,22 @@ struct kodak605_status { /*@76*/ uint8_t null_3[1]; /* EK7000 only */ } __attribute__((packed)); -#define CMDBUF_LEN 4 +/* Parameter IDs recognized on EK7000: + + No idea what any of these are yet! + + 01 + 11 12 13 14 + 21 22 23 24 25 + 2f + 41 42 43 44 45 46 47 48 + 81 82 83 84 + 91 92 93 94 + a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 + c1 c2 c3 c4 + f1 f2 f3 f4 + +*/ /* Private data structure */ struct kodak605_ctx { diff --git a/backend_shinkos6245.c b/backend_shinkos6245.c index ec59686..73a475d 100644 --- a/backend_shinkos6245.c +++ b/backend_shinkos6245.c @@ -67,6 +67,26 @@ struct s6245_print_cmd { uint8_t reserved2; } __attribute__((packed)); + +/* Parameter IDs recognized on EK8810 + + No idea what any of these are yet! + + 01 + 11 12 13 14 + 21 22 23 24 25 + 2f + 41 42 43 44 45 46 47 48 + 61 62 63 64 + 81 82 83 84 + 8a 8b 8c 8d + 91 92 93 + a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 + c1 c2 c3 c4 + f1 f2 f3 f4 + +*/ + #define PARAM_DRIVER_MODE 0x3e #define PARAM_PAPER_MODE 0x3f #define PARAM_SLEEP_TIME 0x54