Macros

group group_usb_dev_macros

Defines

CY_USB_DEV_MW_VERSION_MAJOR

USB Device Middleware major version.

CY_USB_DEV_MW_VERSION_MINOR

USB Device Middleware minor version.

CY_USB_DEV_ID

USB Device Middleware identifier.

CY_USB_DEV_NUM_INTERFACES_MAX

Maximum number of interfaces (this equals to the maximum number of hardware endpoints where each interface has at least one endpoint).

CY_USB_DEV_EP0_PACKET_SIZE

USBFS Device endpoint 0 packet size.

CY_USB_DEV_SN_STRING_LENGTH

Length of serial string number generated from silicon ID.

CY_USB_DEV_SN_STRING_DESR_LENGTH

Length of serial string number.

CY_USB_DEV_WAIT_FOREVER

Timeout value that defines wait forever.

CY_USB_DEV_ALLOC_ENDPOINT_BUFFER(buf, size)

Allocates static buffer for data endpoint.

The size parameter must be a constant. The allocated buffer is aligned on a 2 byte boundary. An odd buffer size is converted to even consuming 1 extra byte. The application must discard this extra byte. This manipulation is needed to support different 8-bit and 16-bit hardware buffer access types in the driver (See Hardware Buffer Access section of the USBFS driver for more information).

CY_USB_DEV_DIR_HOST_TO_DEVICE

Transfer direction from Host to Device (setup packet)

CY_USB_DEV_DIR_DEVICE_TO_HOST

Transfer direction from Device to Host (setup packet)

CY_USB_DEV_STANDARD_TYPE

Standard request type (setup packet)

CY_USB_DEV_CLASS_TYPE

Class-specific request type (setup packet)

CY_USB_DEV_VENDOR_TYPE

Vendor-specific request type (setup packet)

CY_USB_DEV_RESERVED_TYPE

Reserved request type (setup packet)

CY_USB_DEV_RECIPIENT_DEVICE

Request recipient device (setup packet)

CY_USB_DEV_RECIPIENT_INTERFACE

Request recipient interface (setup packet)

CY_USB_DEV_RECIPIENT_ENDPOINT

Request recipient endpoint (setup packet)

CY_USB_DEV_RECIPIENT_OTHER

Request recipient other (setup packet)

CY_USB_DEV_RQST_GET_STATUS

GET_STATUS standard request.

CY_USB_DEV_RQST_CLEAR_FEATURE

CLEAR_FEATURE standard request.

CY_USB_DEV_RQST_SET_FEATURE

SET_FEATURE standard request.

CY_USB_DEV_RQST_SET_ADDRESS

SET_ADDRESS standard request.

CY_USB_DEV_RQST_GET_DESCRIPTOR

GET_DESCRIPTOR standard request.

CY_USB_DEV_RQST_SET_DESCRIPTOR

SET_DESCRIPTOR standard request.

CY_USB_DEV_RQST_GET_CONFIGURATION

GET_CONFIGURATION standard request.

CY_USB_DEV_RQST_SET_CONFIGURATION

SET_CONFIGURATION standard request.

CY_USB_DEV_RQST_GET_INTERFACE

GET_INTERFACE standard request.

CY_USB_DEV_RQST_SET_INTERFACE

SET_INTERFACE standard request.

CY_USB_DEV_RQST_SYNCH_FRAME

SYNCH_FRAME standard request.

CY_USB_DEV_DEVICE_REMOTE_WAKEUP

REMOTE_WAKEUP feature selector.

CY_USB_DEV_ENDPOINT_HALT

ENDPOINT_HALT feature selector.

CY_USB_DEV_ENDPOINT_STATUS_HALT

ENDPOINT_STATUS_HALT feature selector.

CY_USB_DEV_TEST_MODE

TEST_MODE feature selector.