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

The HL21 Monochrome Laser Printer model comes is some variants: HL-2040 and HL2170. More...

Functions

struct caps_ppd_basehl21_driver_submodule_init (struct hl2_drv *t1)
 

Variables

static struct caps_ppd_selectionhl21_features_selections [3]
 
static struct caps_ppd_option hl21_dynamic_options [3]
 
static const struct caps_ppd_selection_entry hl21_media_type_selections []
 
static struct caps_ppd_base hl21_description
 

Detailed Description

Author
Juergen Borleis

This driver creates wire data in the format PCL6 and should work on all of these variants:

These variants have one paper tray and a manual feed. This driver supports the USB interface only.

Function Documentation

◆ hl21_driver_submodule_init()

struct caps_ppd_base * hl21_driver_submodule_init ( struct hl2_drv t1)

Variable Documentation

◆ hl21_features_selections

struct caps_ppd_selection* hl21_features_selections[3]
static

◆ hl21_dynamic_options

struct caps_ppd_option hl21_dynamic_options[3]
static

◆ hl21_media_type_selections

const struct caps_ppd_selection_entry hl21_media_type_selections[]
static
Initial value:
= {
{ .option = "REGULAR", .description = NLS_("Regular"), },
{ .option = "THICK", .description = NLS_("Thick 90g...105g"), },
{ .option = "THICK2", .description = NLS_("Thicker 105g...161g"), },
{ .option = "TRANSPARENCY", .description = NLS_("Transparency"), },
{ .option = "THIN", .description = NLS_("Thin 60g...70g"), },
{ .option = "BOND", .description = NLS_("Bond"), },
{ .option = "ENVELOPES", .description = NLS_("Envelope"), },
{ .option = "ENVTHICK", .description = NLS_("Thick envelope"), },
{ .option = "ENVTHIN", .description = NLS_("Thin envelope"), },
{ .option = "RECYCLED", .description = NLS_("Used"), },
}
#define NLS_(string)
National Language Support related.
Definition: libcapsbase-local.h:61

The printer can handle some various media differently. This list contains the known media types the printer firmware supports.

These are the names the printer "accepts" for the "\@PJL SET MEDIATYPE = <name>" command:

"REGULAR", "THICK", "THICK2", "TRANSPARENCY", "THIN", "BOND", "ENVELOPES", "ENVTHICK", "ENVTHIN", "RECYCLED"

These names are reported by the printer itself via '@PJL INFO VARIABLES' command.

Note
Checked with the HL-2140 printers only.
Attention
The "Regular" entry must be the first one in the list!

◆ hl21_description

struct caps_ppd_base hl21_description
static
Initial value:
= {
.domain_name = PACKAGE,
.paper_type = LIBCAPS_PT_SINGLE,
.supported_color_formats = LIBCAPS_CT_MONOCHROME,
.default_color_format = LIBCAPS_CT_MONOCHROME,
.options_count = 0,
.selection_count = 0,
.selections = (const struct caps_ppd_selection **)hl21_features_selections,
.default_paper_name = NULL,
}
static struct caps_ppd_option hl21_dynamic_options[3]
Definition: brother-hl21.c:128
static struct caps_ppd_selection * hl21_features_selections[3]
Definition: brother-hl21.c:127
static const struct caps_ppd_media_size media_coverage
Definition: caps-printing-test-provider.c:61
static const struct caps_ppd_media_margins media_margins
Definition: caps-printing-test-provider.c:53
@ LIBCAPS_CT_MONOCHROME
Definition: libcapsppd.h:202
@ LIBCAPS_GA_MANUAL_FEED
Definition: libcapsppd.h:216
@ LIBCAPS_GA_SINGLE_TRAY
Definition: libcapsppd.h:215
@ LIBCAPS_PT_SINGLE
Definition: libcapsppd.h:37
const struct caps_ppd_media_margins hl_group1_printable_margins
Definition: hl-margins.c:89
const struct caps_ppd_media_size hl_group1_printable_media
Definition: hl-margins.c:30
Description of an OpenUI/CloseUI PPD selection.
Definition: libcapsppd.h:303