USB Libraries Help > USB Device Libraries > USB Device Printer Library > Library Interface > b) Data Types and Constants > USB_PRINTER_COMMAND Enumeration
MPLAB Harmony USB Stack
USB_PRINTER_COMMAND Enumeration

USB Printer Command. 

Identified the USB Printer Commands used by the stack.

C
typedef enum {
  USB_PRINTER_GET_DEVICE_ID = 0x0,
  USB_PRINTER_GET_PORT_STATUS = 0x1,
  USB_PRINTER_SOFT_RESET = 0x2
} USB_PRINTER_COMMAND;
Members
Members 
Description 
USB_PRINTER_GET_DEVICE_ID = 0x0 
class-specific request returns a device ID string that is compatible with

  • IEEE 1284

 

USB_PRINTER_GET_PORT_STATUS = 0x1 
class-specific request returns the printer?s current status 
USB_PRINTER_SOFT_RESET = 0x2 
class-specific request flushes all buffers and resets the Bulk endpoints

  • to their default states

 

Remarks

None.