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

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

Enumerations

enum  usbStatus {
  usbOK = 0,
  usbTimeout,
  usbInvalidParameter,
  usbThreadError = 0x10,
  usbTimerError,
  usbMutexError,
  usbControllerError = 0x20,
  usbDeviceError,
  usbDriverError,
  usbMemoryError,
  usbNotConfigured,
  usbClassErrorADC,
  usbClassErrorCDC,
  usbClassErrorHID,
  usbClassErrorMSC,
  usbClassErrorCustom,
  usbUnsupportedClass,
  usbUnknownError = 0xFF
}
 

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 usbStatus
Enumerator:
usbOK 

Function completed with no error.

usbTimeout 

Function completed; timeout 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.

usbMutexError 

CMSIS-RTOS Mutex creation failed.

usbControllerError 

Controller does not exist.

usbDeviceError 

Device does not exist.

usbDriverError 

Driver function produced error.

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.

usbUnknownError 

Unspecified USB error.