CAPS Universe documentation
1.0.4
All you need to know to be successful
|
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 |
Define this macro to add visible/readable header marker. The generated printer data is for visual check via a hexeditor.
Note the big endian notation of multibyte members.
uint8_t record |
record type, always "0", e.g. PAGE_HEADER_RECORD
uint8_t yres |
Y resolution in 1/100, e.g. 600 DPI -> 6
uint16_t copies |
Number of copies of this page (big endian)
uint8_t ptype |
Medium type refer enum format_type
uint16_t pwidth |
Medium width in dots, if ptype is SPL_CUSTOM_TYPE (big endian). Else it is ignored
uint16_t plength |
Medium length in lines, if ptype is SPL_CUSTOM_TYPE (big endian). Else it is ignored
uint8_t pfeed |
Medium feeder, always "1" refer paper_feed
uint8_t dummy1 |
Always "0"
uint8_t duplex |
"0" or "1" FIXME why "1" in my case ML1640?
uint8_t tumble |
"0"
uint8_t dummy2 |
Always "0"
uint8_t ver |
QPDL version, always "2"
uint8_t dummy3 |
Always "1" FIXME QPDL version, e.g. 2?
uint8_t xres |
X resolution in 1/100, e.g. 600 DPI -> 6