CAPS Universe documentation  1.0.4
All you need to know to be successful
Functions | Variables
hl-economode.c File Reference

Definition of the supported economy modes. More...

Functions

void hl_print_econo_mode (struct hl_drv *t, struct ppd_feature_add *fl)
 

Variables

static const struct caps_ppd_selection_entry hl_econo_mode_selections []
 
static struct caps_ppd_selection hl_econo_mode_selection
 

Detailed Description

The printers seems to be able to setup different economy modes. What is means ist currently not clear, but the supported values are already know.

This list is at least shared by HL-20 and HL-21 printers.

Note
This file is intended to be included into the printer driver files.

Function Documentation

◆ hl_print_econo_mode()

void hl_print_econo_mode ( struct hl_drv *  t,
struct ppd_feature_add *  fl 
)

Variable Documentation

◆ hl_econo_mode_selections

const struct caps_ppd_selection_entry hl_econo_mode_selections[]
static
Initial value:
= {
{ .option = "OFF", .description = ( "Off" ), },
{ .option = "0", .description = ( "Value 0" ), },
{ .option = "1", .description = ( "Value 1" ), },
{ .option = "2", .description = ( "Value 2" ), },
{ .option = "3", .description = ( "Value 3" ), },
}
Todo:
What do the numbers mean?

◆ hl_econo_mode_selection

struct caps_ppd_selection hl_econo_mode_selection
static
Initial value:
= {
.option_type = LIBCAPS_OT_PICKONE,
.option = "EconoMode",
.description = ( "Toner Save Mode" ),
.entry_count = (sizeof( hl_econo_mode_selections )/sizeof( hl_econo_mode_selections [0])),
.default_entry = 0,
}
@ LIBCAPS_OT_PICKONE
Definition: libcapsppd.h:282
static const struct caps_ppd_selection_entry hl_econo_mode_selections[]
Definition: hl-economode.c:33

Handled in the printer's firmware via PJL command

This value is used in the "@PJL SET ECONOMODE = <Value>" instruction.

The default is "Off" if not otherwise set in the INI file.