![]() |
CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Format of the status report of QL8xx printers.
Data Fields | |
| uint8_t | print_head_mark |
| uint8_t | size |
| uint8_t | _reserved3 |
| uint16_t | printer_id |
| uint8_t | _reserved6 |
| uint8_t | _reserved7 |
| uint8_t | _reserved8 |
| uint8_t | error_info_1 |
| uint8_t | error_info_2 |
| uint8_t | media_width |
| uint8_t | media_type |
| uint8_t | _reserved13 |
| uint8_t | _reserved14 |
| uint8_t | cassette_id |
| uint8_t | mode |
| uint8_t | _reserved17 |
| uint8_t | media_length |
| uint8_t | status_type |
| uint8_t | phase_type |
| uint16_t | phase_num |
| uint8_t | notification_type |
| uint8_t | _reserved24 |
| uint8_t | _reserved25 [8] |
| uint8_t print_head_mark |
Always 0x80.
| uint8_t size |
size of this structure, always 0x20
| uint8_t _reserved3 |
QL800: 0x42
| uint16_t printer_id |
One of the QL*_ID constants, big endian byte order
| uint8_t _reserved6 |
Always 0x30
| uint8_t _reserved7 |
Always 0x30, reality: 0x00
| uint8_t _reserved8 |
Always 0x00
| uint8_t error_info_1 |
Refer ql_error_info_1.
| uint8_t error_info_2 |
Refer ql_error_info_2.
| uint8_t media_width |
Width of the label [mm]
| uint8_t media_type |
See ql_media_type
| uint8_t _reserved13 |
Always 0x00
| uint8_t _reserved14 |
Always 0x00
| uint8_t cassette_id |
Cassette ID encoded in 5 bits, 0x00 means no casstte inserted
| uint8_t mode |
QL800
| uint8_t _reserved17 |
Always 0x00
| uint8_t media_length |
Length of ready-to-use labels, or zero for continuous labels. [mm]
| uint8_t status_type |
See ql_status_type
| uint8_t phase_type |
See #ql_phase_type
| uint16_t phase_num |
big endian
| uint8_t notification_type |
See #ql_notification_type
| uint8_t _reserved24 |
Always 0x00
| uint8_t _reserved25[8] |