Jump to main content

##

# 2.9.4.10 USB_DEVICE_PRINTER_INIT Structure

## 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;

## Summary

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 Device ID.

## 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.