USB Component  Version 6.13.6
MDK Middleware for USB Device and Host Communication
 All Data Structures Functions Variables Enumerations Enumerator Groups Pages
Status and Error Codes

Status and Error Codes returned by USB functions. More...

Enumerations

enum  usbdRequestStatus {
  usbdRequestNotProcessed = 0U,
  usbdRequestOK,
  usbdRequestStall,
  usbdRequestNAK
}
 
enum  USBD_HID_REQ_t {
  USBD_HID_REQ_EP_CTRL = 0U,
  USBD_HID_REQ_EP_INT,
  USBD_HID_REQ_PERIOD_UPDATE
}
 
enum  usbStatus {
  usbOK = 0U,
  usbTimeout,
  usbInvalidParameter,
  usbThreadError = 0x10U,
  usbTimerError,
  usbSemaphoreError,
  usbMutexError,
  usbControllerError = 0x20U,
  usbDeviceError,
  usbDriverError,
  usbDriverBusy,
  usbMemoryError,
  usbNotConfigured,
  usbClassErrorADC,
  usbClassErrorCDC,
  usbClassErrorHID,
  usbClassErrorMSC,
  usbClassErrorCustom,
  usbUnsupportedClass,
  usbTransferStall = 0x40U,
  usbTransferError,
  usbUnknownError = 0xFFU
}
 

Description

Status and Error Codes returned by USB functions.

The Status and Error Codes section lists all the return values that the USB Component functions will return.

Enumeration Type Documentation

enum USBD_HID_REQ_t
Enumerator
USBD_HID_REQ_EP_CTRL 

Request from control endpoint.

USBD_HID_REQ_EP_INT 

Request from interrupt endpoint.

USBD_HID_REQ_PERIOD_UPDATE 

Request from periodic update.

enum usbdRequestStatus
Enumerator
usbdRequestNotProcessed 

Request not processed.

usbdRequestOK 

Request processed and OK.

usbdRequestStall 

Request processed but unsupported.

usbdRequestNAK 

Request processed but busy.

enum usbStatus
Enumerator
usbOK 

Function completed with no error.

usbTimeout 

Function completed; time-out occurred.

usbInvalidParameter 

Invalid Parameter error: a mandatory parameter was missing or specified an incorrect object.

usbThreadError 

CMSIS-RTOS Thread creation/termination failed.

usbTimerError 

CMSIS-RTOS Timer creation/deletion failed.

usbSemaphoreError 

CMSIS-RTOS Semaphore creation failed.

usbMutexError 

CMSIS-RTOS Mutex creation failed.

usbControllerError 

Controller does not exist.

usbDeviceError 

Device does not exist.

usbDriverError 

Driver function produced error.

usbDriverBusy 

Driver function is busy.

usbMemoryError 

Memory management function produced error.

usbNotConfigured 

Device is not configured (is connected)

usbClassErrorADC 

Audio Device Class (ADC) error (no device or device produced error)

usbClassErrorCDC 

Communication Device Class (CDC) error (no device or device produced error)

usbClassErrorHID 

Human Interface Device (HID) error (no device or device produced error)

usbClassErrorMSC 

Mass Storage Device (MSC) error (no device or device produced error)

usbClassErrorCustom 

Custom device Class (Class) error (no device or device produced error)

usbUnsupportedClass 

Unsupported Class.

usbTransferStall 

Transfer handshake was stall.

usbTransferError 

Transfer error.

usbUnknownError 

Unspecified USB error.