USB Libraries Help > USB Device Libraries > USB Device Layer Library > Library Interface > g) Data Types and Constants > USB_DEVICE_EVENT_DATA_ENDPOINT_WRITE_COMPLETE Structure
MPLAB Harmony USB Stack
USB_DEVICE_EVENT_DATA_ENDPOINT_WRITE_COMPLETE Structure

USB Device Layer Endpoint Read and Write Complete Event Data type. 

This data type defines the type of data that is returned by the Device Layer along with the USB_DEVICE_EVENT_ENDPOINT_WRITE_COMPLETE and USB_DEVICE_EVENT_ENDPOINT_READ_COMPLETE events.

C
typedef struct {
  USB_DEVICE_TRANSFER_HANDLE transferHandle;
  size_t length;
  USB_DEVICE_RESULT status;
} USB_DEVICE_EVENT_DATA_ENDPOINT_READ_COMPLETE, USB_DEVICE_EVENT_DATA_ENDPOINT_WRITE_COMPLETE;
Members
Members 
Description 
USB_DEVICE_TRANSFER_HANDLE transferHandle; 
Transfer Handle 
size_t length; 
Size of transferred data 
USB_DEVICE_RESULT status; 
Completion status of the transfer 
Remarks

None.