CAPS Universe documentation  1.0.4
All you need to know to be successful
Data Structures | Functions | Variables
hl2-series.h File Reference

Collection of macros and functions shared by all HL2 printer drivers. More...

Go to the source code of this file.

Data Structures

struct  hl2_drv
 

Functions

static struct hl2_drvto_hl2_drv (void *d)
 
struct caps_ppd_basehl20_driver_submodule_init (struct hl2_drv *t1)
 
struct caps_ppd_basehl21_driver_submodule_init (struct hl2_drv *t1)
 

Variables

const struct caps_ppd_media_size hl_group1_printable_media
 
const struct caps_ppd_media_size hl_group2_printable_media
 
const struct caps_ppd_media_margins hl_group1_printable_margins
 
const struct caps_ppd_media_margins hl_group2_printable_margins
 

Detailed Description

Author
Jürgen Borleis
Warning
Use as experimental

Function Documentation

◆ to_hl2_drv()

static struct hl2_drv * to_hl2_drv ( void *  d)
inlinestatic

Convert the anonymous pointer used in libcapsdriver into our HL2 information collection

Parameters
[in]dAnonymous structure pointer
Returns
Pointer to our struct hl2_drv

◆ hl20_driver_submodule_init()

struct caps_ppd_base * hl20_driver_submodule_init ( struct hl2_drv t1)

◆ hl21_driver_submodule_init()

struct caps_ppd_base * hl21_driver_submodule_init ( struct hl2_drv t1)

Variable Documentation

◆ hl_group1_printable_media

const struct caps_ppd_media_size hl_group1_printable_media
extern

Supported media sizes for laser printer group #1

These values are valid for:

  • HL-2000 series laser printers
  • HL-2100 series laser printers

◆ hl_group2_printable_media

const struct caps_ppd_media_size hl_group2_printable_media
extern

Supported media sizes for laser printer group #2

These values are valid for:

  • HL-1030
  • HL-1230
  • HL-1240
  • HL-1250
  • HL-1270N
  • HL-1435
  • HL-1440
  • HL-1450
  • HL-1470
  • HL-1650
  • HL-1670
  • HL-1800 series laser printers
  • HL-1050?
  • HL-1070?
Note
All values in 1/72 inch

◆ hl_group1_printable_margins

const struct caps_ppd_media_margins hl_group1_printable_margins
extern

Hardware margins for laser printer group #1

These values are valid for:

  • HL-2000 series laser printers
  • HL-2100 series laser printers
  • HL-1230
  • HL-1440
  • HL-1450
  • HL-1470N
  • HL-1650
  • HL-1670
Note
All values in 1/72 inch
Experiences show, the HL-2030 can print up to 205 mm in width
Experiences show, the HL-2130 can print up to 210 mm in width
If you report a letter format to the printer you can print to an A4 format to its full width (210 mm). E.g. the printer moves the first printable dot 3 mm to the right, if you report an A4 paper format to the printer.
Experiences show, the really hard limits are: 4 mm at the top of the page, 2.8 mm at the right and left border of the letter format (due to the OLPC drum covers 210 mm and letter is of 216 mm). At least for an HL-2130 printer.

◆ hl_group2_printable_margins

const struct caps_ppd_media_margins hl_group2_printable_margins
extern

Hardware margins for laser printer group #2

These values are valid for:

  • HL-1030
  • HL-1240
  • HL-1250
  • HL-1270N
  • HL-1800 series laser printer
Note
All values in 1/72 inch