CAPS Universe documentation  1.0.4
All you need to know to be successful
Data Fields
page_header_record Struct Reference

This header record must lead each page to print. More...

Data Fields

uint8_t record
 
uint8_t yres
 
uint16_t copies
 
uint8_t ptype
 
uint16_t pwidth
 
uint16_t plength
 
uint8_t pfeed
 
uint8_t dummy1
 
uint8_t duplex
 
uint8_t tumble
 
uint8_t dummy2
 
uint8_t ver
 
uint8_t dummy3
 
uint8_t xres
 

Detailed Description

Define this macro to add visible/readable header marker. The generated printer data is for visual check via a hexeditor.

Note
When enabled, the result cannot be used for printing!

Note the big endian notation of multibyte members.

Field Documentation

◆ record

uint8_t record

record type, always "0", e.g. PAGE_HEADER_RECORD

◆ yres

uint8_t yres

Y resolution in 1/100, e.g. 600 DPI -> 6

◆ copies

uint16_t copies

Number of copies of this page (big endian)

Note
Seems not used at the printer

◆ ptype

uint8_t ptype

Medium type refer enum format_type

◆ pwidth

uint16_t pwidth

Medium width in dots, if ptype is SPL_CUSTOM_TYPE (big endian). Else it is ignored

◆ plength

uint16_t plength

Medium length in lines, if ptype is SPL_CUSTOM_TYPE (big endian). Else it is ignored

◆ pfeed

uint8_t pfeed

Medium feeder, always "1" refer paper_feed

◆ dummy1

uint8_t dummy1

Always "0"

◆ duplex

uint8_t duplex

"0" or "1" FIXME why "1" in my case ML1640?

◆ tumble

uint8_t tumble

"0"

◆ dummy2

uint8_t dummy2

Always "0"

◆ ver

uint8_t ver

QPDL version, always "2"

◆ dummy3

uint8_t dummy3

Always "1" FIXME QPDL version, e.g. 2?

◆ xres

uint8_t xres

X resolution in 1/100, e.g. 600 DPI -> 6


The documentation for this struct was generated from the following file: