USB Device Middleware Library 2.10
Enumerated Types

General Description

Enumerations

enum  cy_en_usb_dev_status_t {
  CY_USB_DEV_SUCCESS = 0U,
  CY_USB_DEV_BAD_PARAM = (CY_USB_DEV_ID | CY_PDL_STATUS_ERROR | 1U),
  CY_USB_DEV_REQUEST_NOT_HANDLED = (CY_USB_DEV_ID | CY_PDL_STATUS_ERROR | 2U),
  CY_USB_DEV_TIMEOUT = (CY_USB_DEV_ID | CY_PDL_STATUS_ERROR | 3U),
  CY_USB_DEV_DRV_HW_BUSY = (CY_USB_DEV_ID | CY_PDL_STATUS_ERROR | 4U),
  CY_USB_DEV_DRV_HW_DISABLED = (CY_USB_DEV_ID | CY_PDL_STATUS_ERROR | 5U),
  CY_USB_DEV_DRV_HW_ERROR = (CY_USB_DEV_ID | CY_PDL_STATUS_ERROR | 6U)
}
 USBFS Device return codes. More...
 
enum  cy_en_usb_dev_state_t {
  CY_USB_DEV_DISABLED,
  CY_USB_DEV_ATTACHED,
  CY_USB_DEV_POWERED,
  CY_USB_DEV_DEFAULT,
  CY_USB_DEV_ADDRESSED,
  CY_USB_DEV_CONFIGURED
}
 Device states. More...
 
enum  cy_en_usb_dev_power_status_t {
  CY_USB_DEV_STATUS_BUS_POWERED,
  CY_USB_DEV_STATUS_SELF_POWERED
}
 Power Status. More...
 
enum  cy_en_usb_dev_callback_events_t {
  CY_USB_DEV_EVENT_BUS_RESET,
  CY_USB_DEV_EVENT_SET_CONFIG,
  CY_USB_DEV_EVENT_SET_INTERFACE
}
 Callback events. More...
 

Enumeration Type Documentation

◆ cy_en_usb_dev_status_t

USBFS Device return codes.

Enumerator
CY_USB_DEV_SUCCESS 

Operation completed successfully.

CY_USB_DEV_BAD_PARAM 

One or more input parameters are invalid.

CY_USB_DEV_REQUEST_NOT_HANDLED 

The request is not handled.

CY_USB_DEV_TIMEOUT 

Timeout occurred for the operation.

CY_USB_DEV_DRV_HW_BUSY 

The hardware is busy executing previous operation.

CY_USB_DEV_DRV_HW_DISABLED 

The hardware is disabled.

CY_USB_DEV_DRV_HW_ERROR 

The hardware error occurred during operation.

◆ cy_en_usb_dev_state_t

Device states.

Enumerator
CY_USB_DEV_DISABLED 

Device is disabled.

CY_USB_DEV_ATTACHED 

Device is attached.

CY_USB_DEV_POWERED 

Device is powered.

CY_USB_DEV_DEFAULT 

Device is in default state (after bus reset)

CY_USB_DEV_ADDRESSED 

Device set address (device is ready to communicate using this address)

CY_USB_DEV_CONFIGURED 

Device is configured (device is ready to communicate using data endpoints)

◆ cy_en_usb_dev_power_status_t

Power Status.

Enumerator
CY_USB_DEV_STATUS_BUS_POWERED 

Device is bus powered.

CY_USB_DEV_STATUS_SELF_POWERED 

Device is self powered.

◆ cy_en_usb_dev_callback_events_t

Callback events.

Enumerator
CY_USB_DEV_EVENT_BUS_RESET 

Bus Reset detected.

CY_USB_DEV_EVENT_SET_CONFIG 

SET_CONFIGURATION request received.

CY_USB_DEV_EVENT_SET_INTERFACE 

SET_INTERFACE request received.