2022-08-18 21:41:19 +08:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, sakumisu
|
2022-05-14 21:37:43 +08:00
|
|
|
*
|
2022-08-18 21:41:19 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2022-05-14 21:37:43 +08:00
|
|
|
*/
|
2022-08-18 21:41:19 +08:00
|
|
|
#ifndef USBH_PRINTER_H
|
|
|
|
|
#define USBH_PRINTER_H
|
2022-05-14 21:37:43 +08:00
|
|
|
|
|
|
|
|
#include "usb_printer.h"
|
|
|
|
|
|
|
|
|
|
struct usbh_printer {
|
|
|
|
|
struct usbh_hubport *hport;
|
|
|
|
|
|
|
|
|
|
uint8_t intf; /* interface number */
|
2022-09-04 20:17:32 +08:00
|
|
|
usbh_pipe_t bulkin; /* BULK IN endpoint */
|
|
|
|
|
usbh_pipe_t bulkout; /* BULK OUT endpoint */
|
2022-05-14 21:37:43 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-08-18 21:41:19 +08:00
|
|
|
#endif /* USBH_PRINTER_H */
|