sinfonia: Common overcoat mode.

This commit is contained in:
Solomon Peachy 2019-05-25 22:04:43 -04:00
parent d72a4702c6
commit 45668d5218
5 changed files with 22 additions and 42 deletions

View file

@ -71,6 +71,7 @@ static int print_counts (uint8_t v) {
}
}
#if 0
#define PRINT_MODE_DEFAULT 0x01
#define PRINT_MODE_STD_GLOSSY 0x02
#define PRINT_MODE_FINE_GLOSSY 0x03
@ -79,12 +80,11 @@ static int print_counts (uint8_t v) {
#define PRINT_MODE_STD_EGLOSSY 0x06
#define PRINT_MODE_FINE_EGLOSSY 0x07
#if 0
static char *print_modes(uint8_t v) {
static char *s2145_print_modes(uint8_t v) {
switch (v) {
case PRINT_MODE_DEFAULT:
return "Default";
s case PRINT_MODE_STD_GLOSSY:
case PRINT_MODE_STD_GLOSSY:
return "Std Glossy";
case PRINT_MODE_FINE_GLOSSY:
return "Fine Glossy";

View file

@ -237,25 +237,6 @@ struct s6145_print_cmd {
uint8_t image_avg;
} __attribute__((packed));
#define PRINT_MODE_NO_OC 0x01
#define PRINT_MODE_GLOSSY 0x02
#define PRINT_MODE_MATTE 0x03
#if 0
static char *print_modes(uint8_t v) {
switch (v) {
case PRINT_MODE_NO_OC:
return "No Overcoat";
case PRINT_MODE_GLOSSY:
return "Glossy";
case PRINT_MODE_MATTE:
return "Matte";
default:
return "Unknown";
}
}
#endif
#define PARAM_OC_PRINT 0x20
#define PARAM_PAPER_PRESV 0x3d
#define PARAM_DRIVER_MODE 0x3e

View file

@ -65,25 +65,6 @@ struct s6245_print_cmd {
uint8_t reserved2;
} __attribute__((packed));
#define PRINT_MODE_NO_OC 0x01
#define PRINT_MODE_GLOSSY 0x02
#define PRINT_MODE_MATTE 0x03
#if 0
static char *print_modes(uint8_t v) {
switch (v) {
case PRINT_MODE_NO_OC:
return "No Overcoat";
case PRINT_MODE_GLOSSY:
return "Glossy";
case PRINT_MODE_MATTE:
return "Matte";
default:
return "Unknown";
}
}
#endif
#define PARAM_DRIVER_MODE 0x3e
#define PARAM_PAPER_MODE 0x3f
#define PARAM_SLEEP_TIME 0x54

View file

@ -707,6 +707,19 @@ const char *sinfonia_print_methods (uint8_t v) {
}
}
const char *sinfonia_print_modes(uint8_t v) {
switch (v) {
case PRINT_MODE_NO_OC:
return "No Overcoat";
case PRINT_MODE_GLOSSY:
return "Glossy";
case PRINT_MODE_MATTE:
return "Matte";
default:
return "Unknown";
}
}
const char *sinfonia_fwinfo_targets (uint8_t v) {
switch (v) {
case FWINFO_TARGET_MAIN_BOOT:

View file

@ -27,7 +27,7 @@
*
*/
#define LIBSINFONIA_VER "0.03"
#define LIBSINFONIA_VER "0.04"
#define SINFONIA_HDR1_LEN 0x10
#define SINFONIA_HDR2_LEN 0x64
@ -136,6 +136,11 @@ enum {
const char *sinfonia_media_types(uint8_t v);
#define PRINT_MODE_NO_OC 0x01
#define PRINT_MODE_GLOSSY 0x02
#define PRINT_MODE_MATTE 0x03
const char *sinfonia_print_modes(uint8_t v);
#define PRINT_METHOD_STD 0x00
#define PRINT_METHOD_COMBO_2 0x02
#define PRINT_METHOD_COMBO_3 0x03 // S6245 only