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

USB Device Printer Function Driver Read and Write Complete Event Data. 

This data type defines the data structure returned by the driver along with USB_DEVICE_PRINTER_EVENT_DATA_WRITE_COMPLETE and USB_DEVICE_PRINTER_EVENT_DATA_WRITE_COMPLETE events.

C
typedef struct {
  USB_DEVICE_PRINTER_TRANSFER_HANDLE handle;
  size_t length;
  USB_DEVICE_PRINTER_RESULT status;
} USB_DEVICE_PRINTER_EVENT_DATA_READ_COMPLETE, USB_DEVICE_PRINTER_EVENT_DATA_WRITE_COMPLETE;
Members
Members 
Description 
USB_DEVICE_PRINTER_TRANSFER_HANDLE handle; 
Transfer handle associated with this

  • read or write request

 

size_t length; 
Indicates the amount of data (in bytes) that was

  • read or written

 

USB_DEVICE_PRINTER_RESULT status; 
Completion status of the transfer 
Remarks

None.