USB Component  
MDK Middleware for USB Device and Host Communication
 
Loading...
Searching...
No Matches
Status and Error Codes

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

Enumerations

enum  usbdRequestStatus {
  usbdRequestNotProcessed = 0U ,
  usbdRequestOK ,
  usbdRequestStall ,
  usbdRequestNAK
}
 USB Device Custom Class API enumerated constants. More...
 
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
}
 Status code values returned by USB library functions. More...
 

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

◆ usbdRequestStatus

enum enum usbdRequestStatus

USB Device Custom Class API enumerated constants.

Enumerator
usbdRequestNotProcessed 

Request not processed.

usbdRequestOK 

Request processed and OK.

usbdRequestStall 

Request processed but unsupported.

usbdRequestNAK 

Request processed but busy.

◆ usbStatus

enum enum usbStatus

Status code values returned by USB library functions.

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 or transfer aborted.

usbUnknownError 

Unspecified USB error.