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

USB Device Printer Function Driver Initialization Data Structure 

This data structure must be defined for a Printer function driver. This is passed to the Printer function driver, by the Device Layer, at the time of initialization. This structure contains the IEEE Standard 1284 string parameters required by the Devide ID.

C
typedef struct {
  size_t queueSizeRead;
  size_t queueSizeWrite;
  uint16_t length;
  uint8_t deviceID_String[USB_DEVICE_PRINTER_DEVICE_ID_STRING_LENGTH];
} USB_DEVICE_PRINTER_INIT;
Members
Members 
Description 
size_t queueSizeRead; 
Size of the read queue for this instance

  • of the Printer function driver

 

size_t queueSizeWrite; 
Size of the write queue for this instance

  • of the Printer function driver

 

uint16_t length; 
IEEE 1284 device ID string (including length in the first two bytes in big endian format). 
Remarks

This structure must be configured by the user at compile time.