mirror of
https://github.com/ArteryTek/AT32F413_Firmware_Library.git
synced 2026-05-21 09:22:02 +00:00
update version to v2.0.3
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file printer_desc.h
|
||||
* @version v2.0.2
|
||||
* @date 2021-12-31
|
||||
* @version v2.0.3
|
||||
* @date 2022-02-11
|
||||
* @brief usb printer descriptor header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
@@ -47,33 +47,30 @@ extern "C" {
|
||||
* @{
|
||||
*/
|
||||
|
||||
#define BCD_NUM 0x0110
|
||||
#define PRINTER_BCD_NUM 0x0110
|
||||
|
||||
#define USBD_VENDOR_ID 0x2E3C
|
||||
#define USBD_PRODUCT_ID 0x57FF
|
||||
#define USBD_PRINTER_VENDOR_ID 0x2E3C
|
||||
#define USBD_PRINTER_PRODUCT_ID 0x57FF
|
||||
|
||||
#define USBD_CONFIG_DESC_SIZE 32
|
||||
#define USBD_SIZ_STRING_LANGID 4
|
||||
#define USBD_SIZ_STRING_SERIAL 0x1A
|
||||
#define USBD_PRINTER_CONFIG_DESC_SIZE 32
|
||||
#define USBD_PRINTER_SIZ_STRING_LANGID 4
|
||||
#define USBD_PRINTER_SIZ_STRING_SERIAL 0x1A
|
||||
|
||||
#define USBD_DESC_MANUFACTURER_STRING "Artery"
|
||||
#define USBD_DESC_PRODUCT_STRING "AT32 Printer"
|
||||
#define USBD_DESC_CONFIGURATION_STRING "Printer Config"
|
||||
#define USBD_DESC_INTERFACE_STRING "Printer Interface"
|
||||
#define USBD_PRINTER_DESC_MANUFACTURER_STRING "Artery"
|
||||
#define USBD_PRINTER_DESC_PRODUCT_STRING "AT32 Printer"
|
||||
#define USBD_PRINTER_DESC_CONFIGURATION_STRING "Printer Config"
|
||||
#define USBD_PRINTER_DESC_INTERFACE_STRING "Printer Interface"
|
||||
|
||||
#define PRINTER_PROTOCOL_UNIDIRECTIONAL 0x01
|
||||
#define PRINTER_PROTOCOL_BI_DIRECTIONAL 0x02
|
||||
#define PRINTER_PROTOCOL_1284_4 0x03
|
||||
#define PRINTER_PROTOCOL_VENDOR_SPECIFIC 0xFF
|
||||
|
||||
#define HID_BINTERVAL_TIME 0xFF
|
||||
|
||||
#define MCU_ID1 (0x1FFFF7E8)
|
||||
#define MCU_ID2 (0x1FFFF7EC)
|
||||
#define MCU_ID3 (0x1FFFF7F0)
|
||||
|
||||
extern uint8_t g_usbd_descriptor[USB_DEVICE_DESC_LEN];
|
||||
extern uint8_t g_usbd_configuration[USBD_CONFIG_DESC_SIZE];
|
||||
|
||||
extern usbd_desc_handler printer_desc_handler;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user