1
0
mirror of https://git.familie-radermacher.ch/linux/ptouch-print.git synced 2025-11-20 20:32:05 +00:00

add (untested) support for PT-D460BT thanks to ccfreak2k

This commit is contained in:
Dominic Radermacher
2023-10-13 12:30:33 +02:00
parent 8b631a7996
commit f22e844eed
3 changed files with 50 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
/*
ptouch-print - Print labels with images or text on a Brother P-Touch
Copyright (C) 2015-2021 Dominic Radermacher <dominic@familie-radermacher.ch>
Copyright (C) 2015-2023 Dominic Radermacher <dominic@familie-radermacher.ch>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 3 as
@@ -32,6 +32,8 @@ struct _pt_tape_info {
#define FLAG_PLITE (1 << 2)
#define FLAG_P700_INIT (1 << 3)
#define FLAG_USE_INFO_CMD (1 << 4)
#define FLAG_HAS_PRECUT (1 << 5)
#define FLAG_D460BT_MAGIC (1 << 6)
typedef enum _pt_page_flags {
FEED_NONE = 0x0,
@@ -102,8 +104,10 @@ int ptouch_page_flags(ptouch_dev ptdev, uint8_t page_flags);
int ptouch_eject(ptouch_dev ptdev);
int ptouch_getstatus(ptouch_dev ptdev);
int ptouch_getmaxwidth(ptouch_dev ptdev);
int ptouch_send_d460bt_magic(ptouch_dev ptdev);
int ptouch_enable_packbits(ptouch_dev ptdev);
int ptouch_info_cmd(ptouch_dev ptdev, int size_x);
int ptouch_send_precut_cmd(ptouch_dev ptdev, int precut);
int ptouch_rasterstart(ptouch_dev ptdev);
int ptouch_sendraster(ptouch_dev ptdev, uint8_t *data, size_t len);
void ptouch_rawstatus(uint8_t raw[32]);