summaryrefslogtreecommitdiff
path: root/class/printer/usb_printer.h
blob: c8105c9fcf16a8097896e361fb2d8c67854aefee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 2022, sakumisu
 *
 * SPDX-License-Identifier: Apache-2.0
 */
#ifndef USB_PRINTER_H
#define USB_PRINTER_H

#define PRINTER_SUBCLASS 0x01U

#define PRINTER_REQUEST_GET_DEVICE_ID   0x00U
#define PRINTER_REQUEST_GET_PORT_SATTUS 0x01U
#define PRINTER_REQUEST_SOFT_RESET      0x02U

#define PRINTER_STATUS_NO_ERROR    0x00U
#define PRINTER_STATUS_SELECTED    0x08U
#define PRINTER_STATUS_PAPER_EMPTY 0x10U

#endif /* USB_PRINTER_H */