Arrow / Mbed OS DAPLink Reset
Embed: (wiki syntax)

« Back to documentation index

Usb_drv

Data Structures

struct  _usb_version
 USB stack version fields. More...

Typedefs

typedef enum _usb_status usb_status_t
 USB error code.
typedef void * usb_host_handle
 USB host handle type define.
typedef void * usb_device_handle
 USB device handle type define. For device stack it is the whole device handle; for host stack it is the attached device instance handle.
typedef void * usb_otg_handle
 USB OTG handle type define.
typedef enum _usb_controller_index usb_controller_index_t
 USB controller ID.
typedef struct _usb_version usb_version_t
 USB stack version fields.

Enumerations

enum  _usb_status {
  kStatus_USB_Success = 0x00U, kStatus_USB_Error, kStatus_USB_Busy, kStatus_USB_InvalidHandle,
  kStatus_USB_InvalidParameter, kStatus_USB_InvalidRequest, kStatus_USB_ControllerNotFound, kStatus_USB_InvalidControllerInterface,
  kStatus_USB_NotSupported, kStatus_USB_Retry, kStatus_USB_TransferStall, kStatus_USB_TransferFailed,
  kStatus_USB_AllocFail, kStatus_USB_LackSwapBuffer, kStatus_USB_TransferCancel, kStatus_USB_BandwidthFail,
  kStatus_USB_MSDStatusFail
}
 

USB error code.

More...
enum  _usb_controller_index { kUSB_ControllerKhci0 = 0U, kUSB_ControllerKhci1, kUSB_ControllerEhci0, kUSB_ControllerEhci1 }
 

USB controller ID.

More...

Typedef Documentation

USB controller ID.

typedef void* usb_device_handle

USB device handle type define. For device stack it is the whole device handle; for host stack it is the attached device instance handle.

Definition at line 87 of file fsl_usb.h.

typedef void* usb_host_handle

USB host handle type define.

Definition at line 83 of file fsl_usb.h.

typedef void* usb_otg_handle

USB OTG handle type define.

Definition at line 90 of file fsl_usb.h.

typedef enum _usb_status usb_status_t

USB error code.

typedef struct _usb_version usb_version_t

USB stack version fields.


Enumeration Type Documentation

USB controller ID.

Enumerator:
kUSB_ControllerKhci0 

KHCI 0U

kUSB_ControllerKhci1 

KHCI 1U, Currently, there are no platforms which have two KHCI IPs, this is reserved to be used in the future.

kUSB_ControllerEhci0 

EHCI 0U

kUSB_ControllerEhci1 

EHCI 1U, Currently, there are no platforms which have two KHCI IPs, this is reserved to be used in the future.

Definition at line 93 of file fsl_usb.h.

USB error code.

Enumerator:
kStatus_USB_Success 

Success

kStatus_USB_Error 

Failed

kStatus_USB_Busy 

Busy

kStatus_USB_InvalidHandle 

Invalid handle

kStatus_USB_InvalidParameter 

Invalid parameter

kStatus_USB_InvalidRequest 

Invalid request

kStatus_USB_ControllerNotFound 

Controller cannot be found

kStatus_USB_InvalidControllerInterface 

Invalid controller interface

kStatus_USB_NotSupported 

Configuration is not supported

kStatus_USB_Retry 

Enumeration get configuration retry

kStatus_USB_TransferStall 

Transfer stalled

kStatus_USB_TransferFailed 

Transfer failed

kStatus_USB_AllocFail 

Allocation failed

kStatus_USB_LackSwapBuffer 

Insufficient swap buffer for KHCI

kStatus_USB_TransferCancel 

The transfer cancelled

kStatus_USB_BandwidthFail 

Allocate bandwidth failed

kStatus_USB_MSDStatusFail 

For MSD, the CSW status means fail

Definition at line 59 of file fsl_usb.h.