Keil Logo

Technical Support

On-Line Manuals

RL-ARM User's Guide (MDK v4)

RL-RTX RL-FlashFS RL-TCPnet RL-CAN RL-USB RL-USB for USB Device Applications RL-USB Device Library RL-USB Device Features RL-USB Device Software Stack RL-USB Device Functions RL-USB Device Source Files RL-USB Device Configuration Audio Device (ADC) Options Communication Device (CDC) - ACM Options Human Interface Device (HID) Options Mass Storage Device (MSC) Options Create USB Device Applications Create ADC Applications Create CDC ACM Applications Create HID Applications Create MSC Applications Create Composite Applications Test USB Device Applications Compliance Tests Test HID Client Application RL-USB for USB Host Applications RL-USB Host Library RL-USB Host Features RL-USB Host Software Stack RL-USB Host Functions RL-USB Host Source Files RL-USB Host Configuration Host Controller Driver Selection Host Controller Driver Configuration Host Class Driver Selection Create USB Host Applications Create USB Host HID Applications HID_Kbd Example Create USB Host MSC Applications Create USB Host Class Driver RL-USB Host Constants and Structures Error constants Speed constants Transaction Packet Type constants Transaction Error Type constants USB Request Block structure (USBH_URB) Endpoint structure (USBH_EP) Driver Capabilites structure (USBH_HCI_CAP) Device Class Instance structure (USBH_DCI) Host Controller Instance structure (USBH_HCI) Host Controller Driver structure (USBH_HCD) USB Concepts USB Transfer Rates USB Network Basic Communication Model USB Protocol Control Transfer Interrupt Transfer Isochronous Transfer Bulk Transfer Descriptors Device Configuration Device Descriptor Configuration Descriptor Interface Descriptor Endpoint Descriptor Device Qualifier Descriptor Example Programs Library Reference Appendix

Error constants

Error constants represent various USB Host errors specified by a numerical value.

/* Error values that USB Host functions can return                            */
typedef enum {
  ERROR_SUCCESS = 0,                    /* No error                           */
                                        /* Errors                             */
  ERROR_USBH_HCI,                       /* Host Ctrl Instance does not exist  */
  ERROR_USBH_HCD,                       /* Host Ctrl Driver does not exist    */
  ERROR_USBH_DCI,                       /* Device Class Instance does not exst*/
  ERROR_USBH_DCD,                       /* Device Class Driver does not exist */

  ERROR_USBH_MEM_INIT,                  /* Memory initialization failed       */
  ERROR_USBH_MEM_ALLOC,                 /* Memory allocation failed           */
  ERROR_USBH_MEM_DEALLOC,               /* Memory deallocation failed         */

  ERROR_USBH_PINS_CONFIG,               /* Pins not conf/unconfigured         */
  ERROR_USBH_INIT,                      /* Controller not init/uninitialized  */
  ERROR_USBH_PORT_POWER,                /* Port power driving failed          */
  ERROR_USBH_PORT_RESET,                /* Port reset failed                  */

  ERROR_USBH_EP,                        /* Endpoint does not exist            */
  ERROR_USBH_EP_ADD,                    /* Endpoint was not added             */
  ERROR_USBH_EP_CONFIG,                 /* Endpoint was not configured        */
  ERROR_USBH_EP_REMOVE,                 /* Endpoint was not removed           */

  ERROR_USBH_URB,                       /* URB does not exist                 */
  ERROR_USBH_URB_SUBMIT,                /* URB was not submitted              */
  ERROR_USBH_URB_CANCEL,                /* URB was not cancelled              */
  ERROR_USBH_URB_TRANSFER,              /* URB transfered with error          */
  ERROR_USBH_URB_TOUT,                  /* URB has timed-out                  */

  ERROR_USBH_ENUMERATE,                 /* Device enumeration failed          */
  ERROR_USBH_UNINIT_DEVS,               /* Device uninitialization failed     */

  ERROR_USBH_MSC,                       /* MSC Device Instance does not exist */
  ERROR_USBH_MSC_SIG,                   /* MSC Class CSW Signature not correct*/
  ERROR_USBH_MSC_TAG,                   /* MSC Class different tags           */
  ERROR_USBH_MSC_RESID,                 /* MSC Class data residue not 0       */

  ERROR_USBH_HID,                       /* HID Device Instance does not exist */

  ERROR_USBH_CLS,                       /* USB Device Class does not exist    */

  ERROR_USBH_CLS_UNKNOWN,               /* Unknown Class type                 */
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.