4.4.2.3.1 RETURN_CODE_enum

enum RETURN_CODE_enum

Describes the different function return reserved codes used by the USB stack.

UNSUPPORTED

Action not supported by the USB Device Stack

UNINITIALIZED

Status unchanged since initialization

SUCCESS

Action successfully executed

ENDPOINT_SIZE_ERROR

Error related to the wMaxPacketSize in the endpoint configuration

ENDPOINT_ADDRESS_ERROR

Error related to the address byte of bEndpointAddress in the endpoint configuration

ENDPOINT_DIRECTION_ERROR

Error related to the direction byte of bEndpointAddress in the endpoint configuration

ENDPOINT_TYPE_ERROR

Error related to the type bitmask of bmAttributes in the endpoint configuration

ENDPOINT_AZLP_ERROR

Error related to the Auto Zero Length Packet (AZLP) setting in the endpoint configuration

ENDPOINT_ALIGN_ERROR

Error related to unaligned OUT transactions when using multipacket

PIPE_BUSY_ERROR

Error triggered by the pipe being busy while attempting a read or write transaction

PIPE_TRANSFER_ERROR

Error triggered by a failed pipe transaction

CONTROL_SIZE_ERROR

Error related to the size of the control endpoint transaction packet

CONTROL_TRANSACTION_STATUS_ERROR

Error triggered by a failed transaction on the control endpoint

CONTROL_SETUP_CALLBACK_ERROR

Error triggered by a failed control setup

CONTROL_SETUP_DIRECTION_ERROR

Error triggerd by a control setup IN request not requesting any data

DESCRIPTOR_POINTER_ERROR

Error triggered by an invalid descriptor pointer

DESCRIPTOR_CONFIGURATIONS_ERROR

Error triggered by an invalid configuration descriptor pointer

DESCRIPTOR_INTERFACE_ERROR

Error triggered by an invalid interface descriptor pointer

DESCRIPTOR_ENDPOINT_ERROR

Error triggered by an invalid endpoint descriptor pointer

DESCRIPTOR_REQUEST_ERROR

Error triggered by a failed attempt at retrieving a descriptor pointer

DESCRIPTOR_SEARCH_ERROR

Error triggered by an incorrect descriptor structure

INTERFACE_SET_ERROR

Error triggered by a failure to set an interface

INTERFACE_GET_ERROR

Error triggered by a failure to retrieve an interface

USB_CONNECTION_ERROR

Error triggered by a failure during setup device request

USB_CLASS_ERROR

Error triggered by an invalid class code