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

USB Device Result Enumeration 

This enumeration lists the possible USB Device Endpoint operation results. These values are returned by USB Device Endpoint functions.

C
typedef enum {
  USB_DEVICE_RESULT_ERROR_TRANSFER_QUEUE_FULL,
  USB_DEVICE_RESULT_OK,
  USB_DEVICE_RESULT_ERROR_ENDPOINT_NOT_CONFIGURED,
  USB_DEVICE_RESULT_ERROR_ENDPOINT_INVALID,
  USB_DEVICE_RESULT_ERROR_PARAMETER_INVALID,
  USB_DEVICE_RESULT_ERROR_DEVICE_HANDLE_INVALID,
  USB_DEVICE_RESULT_ERROR_ENDPOINT_HALTED,
  USB_DEVICE_RESULT_ERROR_TERMINATED_BY_HOST,
  USB_DEVICE_RESULT_ERROR
} USB_DEVICE_RESULT;
Members
Members 
Description 
USB_DEVICE_RESULT_ERROR_TRANSFER_QUEUE_FULL 
Queue is full 
USB_DEVICE_RESULT_OK 
No Error 
USB_DEVICE_RESULT_ERROR_ENDPOINT_NOT_CONFIGURED 
Endpoint not configured 
USB_DEVICE_RESULT_ERROR_ENDPOINT_INVALID 
Endpoint not provisioned in the system 
USB_DEVICE_RESULT_ERROR_PARAMETER_INVALID 
One or more parameter/s of the function is invalid 
USB_DEVICE_RESULT_ERROR_DEVICE_HANDLE_INVALID 
Device Handle passed to the function is invalid 
USB_DEVICE_RESULT_ERROR_ENDPOINT_HALTED 
Transfer terminated because host halted the endpoint 
USB_DEVICE_RESULT_ERROR_TERMINATED_BY_HOST 
Transfer terminated by host because of a stall clear 
USB_DEVICE_RESULT_ERROR 
An unspecified error has occurred 
Remarks

None.