| NUC472_NUC442_BSP V3.03.003 The Board Support Package for NUC472/NUC442

Modules | Macros
USBH Exported Constants
NUC472/NUC442 Device Driver » USBH Driver
Collaboration diagram for USBH Exported Constants:

## Modules
| USBH Exported Structures

## Macros
#define | DEV_MAX_NUM
#define | URB_MAX_NUM
#define | ED_MAX_NUM
#define | TD_MAX_NUM
#define | MAX_ENDPOINTS
#define | MAX_DRIVER_PER_DEV
#define | MAX_TD_PER_OHCI_URB
#define | MAX_HUB_DEVICE
#define | ISO_FRAME_COUNT
#define | OHCI_ISO_DELAY
#define | SUPPORT_HUB_CLASS
#define | USB_OK
#define | USB_ERR_NOENT
#define | USB_ERR_IO
#define | USB_ERR_AGAIN
#define | USB_ERR_NOMEM
#define | USB_ERR_BUSY
#define | USB_ERR_XDEV
#define | USB_ERR_NODEV
#define | USB_ERR_INVAL
#define | USB_ERR_PIPE
#define | EWOULDBLOCK
#define | USB_ERR_NOLINK
#define | USB_ERR_CONNRESET
#define | USB_ERR_SHUTDOWN
#define | USB_ERR_TIMEOUT
#define | USB_ERR_INPROGRESS
#define | USB_ERR_URB_PENDING
#define | CC_ERR_CRC
#define | CC_ERR_BITSTUFF
#define | CC_ERR_DATA_TOGGLE
#define | CC_ERR_STALL
#define | CC_ERR_NORESPONSE
#define | CC_ERR_PID_CHECK
#define | CC_ERR_INVALID_PID
#define | CC_ERR_DATAOVERRUN
#define | CC_ERR_DATAUNDERRUN
#define | CC_ERR_NOT_DEFINED
#define | CC_ERR_BUFFEROVERRUN
#define | CC_ERR_BUFFERUNDERRUN
#define | CC_ERR_NOT_ACCESS

## Detailed Description

## Macro Definition Documentation

## ◆ CC_ERR_BITSTUFF

#define CC_ERR_BITSTUFF

OHCI CC - Bit Stuff

Definition at line 36 of file usbh_err_code.h.

## ◆ CC_ERR_BUFFEROVERRUN

#define CC_ERR_BUFFEROVERRUN

OHCI CC - Buffer Overrun

Definition at line 45 of file usbh_err_code.h.

## ◆ CC_ERR_BUFFERUNDERRUN

#define CC_ERR_BUFFERUNDERRUN

OHCI CC - Buffer Underrun

Definition at line 46 of file usbh_err_code.h.

## ◆ CC_ERR_CRC

#define CC_ERR_CRC

OHCI CC - CRC Error

Definition at line 35 of file usbh_err_code.h.

## ◆ CC_ERR_DATA_TOGGLE

#define CC_ERR_DATA_TOGGLE

OHCI CC - Data Togg

Definition at line 37 of file usbh_err_code.h.

## ◆ CC_ERR_DATAOVERRUN

#define CC_ERR_DATAOVERRUN

OHCI CC - Data Overrun

Definition at line 42 of file usbh_err_code.h.

## ◆ CC_ERR_DATAUNDERRUN

#define CC_ERR_DATAUNDERRUN

OHCI CC - Data Underrun

Definition at line 43 of file usbh_err_code.h.

## ◆ CC_ERR_INVALID_PID

#define CC_ERR_INVALID_PID

OHCI CC - Invalid PID

Definition at line 41 of file usbh_err_code.h.

## ◆ CC_ERR_NORESPONSE

#define CC_ERR_NORESPONSE

OHCI CC - Device Not Responding

Definition at line 39 of file usbh_err_code.h.

## ◆ CC_ERR_NOT_ACCESS

#define CC_ERR_NOT_ACCESS

OHCI CC - Not Access

Definition at line 47 of file usbh_err_code.h.

## ◆ CC_ERR_NOT_DEFINED

#define CC_ERR_NOT_DEFINED

Not defined in OHCIcspec.

Definition at line 44 of file usbh_err_code.h.

## ◆ CC_ERR_PID_CHECK

#define CC_ERR_PID_CHECK

OHCI CC - PID Check Failure

Definition at line 40 of file usbh_err_code.h.

## ◆ CC_ERR_STALL

#define CC_ERR_STALL

OHCI CC - Stall

Definition at line 38 of file usbh_err_code.h.

## ◆ DEV_MAX_NUM

#define DEV_MAX_NUM

Maximum number of connected devices

Definition at line 48 of file usbh_config.h.

## ◆ ED_MAX_NUM

#define ED_MAX_NUM

Maximum number of OHCI EDs in memory pool

Definition at line 50 of file usbh_config.h.

## ◆ EWOULDBLOCK

#define EWOULDBLOCK

Operation would block

Definition at line 26 of file usbh_err_code.h.

## ◆ ISO_FRAME_COUNT

#define ISO_FRAME_COUNT

Transfer frames per Isohronous TD. (Must be 1 for isochronous out.)

Definition at line 59 of file usbh_config.h.

## ◆ MAX_DRIVER_PER_DEV

#define MAX_DRIVER_PER_DEV

Maximum number of drivers for a device

Definition at line 54 of file usbh_config.h.

## ◆ MAX_ENDPOINTS

#define MAX_ENDPOINTS

Maximum number of endpoints per device

Definition at line 53 of file usbh_config.h.

## ◆ MAX_HUB_DEVICE

#define MAX_HUB_DEVICE

Maximum number of connected Hub devices

Definition at line 56 of file usbh_config.h.

## ◆ MAX_TD_PER_OHCI_URB

#define MAX_TD_PER_OHCI_URB

Maximum number of OHCI TDs per URB

Definition at line 55 of file usbh_config.h.

## ◆ OHCI_ISO_DELAY

#define OHCI_ISO_DELAY

Delay isochronous transfer frame time

Definition at line 60 of file usbh_config.h.

## ◆ SUPPORT_HUB_CLASS

#define SUPPORT_HUB_CLASS

Support Hub driver

Definition at line 65 of file usbh_config.h.

## ◆ TD_MAX_NUM

#define TD_MAX_NUM

Maximum number of OHCI TDs in memory pool

Definition at line 51 of file usbh_config.h.

## ◆ URB_MAX_NUM

#define URB_MAX_NUM

Maximum number of URBs in memory pool

Definition at line 49 of file usbh_config.h.

## ◆ USB_ERR_AGAIN

#define USB_ERR_AGAIN

Try again

Definition at line 19 of file usbh_err_code.h.

## ◆ USB_ERR_BUSY

#define USB_ERR_BUSY

Device or resource busy

Definition at line 21 of file usbh_err_code.h.

## ◆ USB_ERR_CONNRESET

#define USB_ERR_CONNRESET

Connection reset by peer

Definition at line 28 of file usbh_err_code.h.

## ◆ USB_ERR_INPROGRESS

#define USB_ERR_INPROGRESS

Operation now in progress

Definition at line 31 of file usbh_err_code.h.

## ◆ USB_ERR_INVAL

#define USB_ERR_INVAL

Invalid argument

Definition at line 24 of file usbh_err_code.h.

## ◆ USB_ERR_IO

#define USB_ERR_IO

I/O error

Definition at line 18 of file usbh_err_code.h.

## ◆ USB_ERR_NODEV

#define USB_ERR_NODEV

No such device

Definition at line 23 of file usbh_err_code.h.

## ◆ USB_ERR_NOENT

#define USB_ERR_NOENT

No such file or directory

Definition at line 17 of file usbh_err_code.h.

## ◆ USB_ERR_NOLINK

#define USB_ERR_NOLINK

Link has been severed

Definition at line 27 of file usbh_err_code.h.

## ◆ USB_ERR_NOMEM

#define USB_ERR_NOMEM

Out of memory

Definition at line 20 of file usbh_err_code.h.

## ◆ USB_ERR_PIPE

#define USB_ERR_PIPE

Broken pipe

Definition at line 25 of file usbh_err_code.h.

## ◆ USB_ERR_SHUTDOWN

#define USB_ERR_SHUTDOWN

Cannot send after transport endpoint shutdown

Definition at line 29 of file usbh_err_code.h.

## ◆ USB_ERR_TIMEOUT

#define USB_ERR_TIMEOUT

Connection timed out

Definition at line 30 of file usbh_err_code.h.

## ◆ USB_ERR_URB_PENDING

#define USB_ERR_URB_PENDING

URB transfer is still not completed

Definition at line 33 of file usbh_err_code.h.

## ◆ USB_ERR_XDEV

#define USB_ERR_XDEV

Cross-device link

Definition at line 22 of file usbh_err_code.h.

## ◆ USB_OK

#define USB_OK

No errors

Definition at line 16 of file usbh_err_code.h.