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

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

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

C
Members
Members 
Description 
USB_DEVICE_CDC_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_CDC_RESULT status; 
Completion status of the transfer 
Remarks

None.