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

USB Device CDC Function Driver USB Device CDC Result enumeration. 

This enumeration lists the possible USB Device CDC Function Driver operation results. These values are returned by USB Device CDC Library functions.

C
typedef enum {
  USB_DEVICE_CDC_RESULT_OK,
  USB_DEVICE_CDC_RESULT_ERROR_TRANSFER_SIZE_INVALID,
  USB_DEVICE_CDC_RESULT_ERROR_TRANSFER_QUEUE_FULL,
  USB_DEVICE_CDC_RESULT_ERROR_INSTANCE_INVALID,
  USB_DEVICE_CDC_RESULT_ERROR_INSTANCE_NOT_CONFIGURED,
  USB_DEVICE_CDC_RESULT_ERROR_PARAMETER_INVALID,
  USB_DEVICE_CDC_RESULT_ERROR_ENDPOINT_HALTED,
  USB_DEVICE_CDC_RESULT_ERROR_TERMINATED_BY_HOST,
  USB_DEVICE_CDC_RESULT_ERROR
} USB_DEVICE_CDC_RESULT;
Members
Members 
Description 
USB_DEVICE_CDC_RESULT_OK 
The operation was successful 
USB_DEVICE_CDC_RESULT_ERROR_TRANSFER_SIZE_INVALID 
The transfer size is invalid. Refer to the description

  • of the read or write function for more details

 

USB_DEVICE_CDC_RESULT_ERROR_TRANSFER_QUEUE_FULL 
The transfer queue is full and no new transfers can be

  • scheduled

 

USB_DEVICE_CDC_RESULT_ERROR_INSTANCE_INVALID 
The specified instance is not provisioned in the system 
USB_DEVICE_CDC_RESULT_ERROR_INSTANCE_NOT_CONFIGURED 
The specified instance is not configured yet 
USB_DEVICE_CDC_RESULT_ERROR_PARAMETER_INVALID 
The event handler provided is NULL 
USB_DEVICE_CDC_RESULT_ERROR_ENDPOINT_HALTED 
Transfer terminated because host halted the endpoint 
USB_DEVICE_CDC_RESULT_ERROR_TERMINATED_BY_HOST 
Transfer terminated by host because of a stall clear 
USB_DEVICE_CDC_RESULT_ERROR 
General CDC Function driver error 
Remarks

None.