Align raster protocol bytes and print-end sequencing by printer family, add safer status polling/retry behavior, and document the changes with regression coverage to prevent protocol regressions. Made-with: Cursor
14 lines
418 B
C
14 lines
418 B
C
#ifndef LIBPTOUCH_PROTOCOL_H
|
|
#define LIBPTOUCH_PROTOCOL_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
size_t ptouch_line_payload_bytes(unsigned head_dots);
|
|
void ptouch_fill_gf_header(uint8_t out[3], size_t line_payload_bytes);
|
|
void ptouch_fill_esc_iz(uint8_t out[13], uint8_t media_kind, uint8_t media_width,
|
|
uint32_t raster_lines);
|
|
uint8_t ptouch_esc_ik_value(unsigned head_dots);
|
|
|
|
#endif /* LIBPTOUCH_PROTOCOL_H */
|