2.9.4 Library Interface

Functions

Name Description
USB_DEVICE_PRINTER_EventHandlerSet This function registers a event handler for the specified PRINTER function driver instance.
USB_DEVICE_PRINTER_Read This function requests a data read from the USB Device Printer Function Driver Layer.
USB_DEVICE_PRINTER_Write This function requests a data write to the USB Device PRINTER Function Driver Layer.

Data Types and Constants

Name Description
USB_DEVICE_PRINTER_EVENT USB Device Printer Function Driver Events.
USB_DEVICE_PRINTER_EVENT_DATA_READ_COMPLETE USB Device Printer Function Driver Read and Write Complete Event Data.
USB_DEVICE_PRINTER_EVENT_DATA_WRITE_COMPLETE USB Device Printer Function Driver Read and Write Complete Event Data.
USB_DEVICE_PRINTER_EVENT_HANDLER USB Device Printer Event Handler Function Pointer Type.
USB_DEVICE_PRINTER_EVENT_RESPONSE USB Device Printer Function Driver Event Callback Response Type.
USB_DEVICE_PRINTER_INDEX USB Device Printer Function Driver Index.
USB_DEVICE_PRINTER_INIT This structure contains required parameters for Printer function driver initialization.
USB_DEVICE_PRINTER_PORT_STATUS Printer status required by class-specific request.
USB_DEVICE_PRINTER_RESULT USB Device Printer Function Driver USB Device Printer Result enumeration.
USB_DEVICE_PRINTER_TRANSFER_FLAGS USB Device Printer Function Driver Transfer Flags.
USB_DEVICE_PRINTER_TRANSFER_HANDLE USB Device Printer Function Driver Transfer Handle Definition.
USB_PRINTER_COMMAND Identified the USB Printer Commands used by the stack.
USB_PRINTER_INTERFACE_CLASS_CODE Base class for printers Do not modify this value.
USB_PRINTER_INTERFACE_PROTOCOL Printer Interface Type
  • 0x01 - Unidirectional interface
  • 0x02 - Bi-directional interface
  • 0x03 - 1284.4 compatible bi-directional interface

USB_PRINTER_INTERFACE_SUBCLASS_CODE Subclass codes for Printer devices Do not modify this value.
USB_PRINTER_REQUEST_CLASS_SPECIFIC bmRequestType for Printer class specific request.
USB_DEVICE_PRINTER_EVENT_RESPONSE_NONE USB Device Printer Function Driver Event Handler Response Type None.
USB_DEVICE_PRINTER_FUNCTION_DRIVER USB Device Printer Function Driver Function pointer.
USB_DEVICE_PRINTER_INDEX_0 Use this to specify Printer Function Driver Instance 0.
USB_DEVICE_PRINTER_TRANSFER_HANDLE_INVALID USB Device Printer Function Driver Invalid Transfer Handle Definition.