Enumerated Types¶
-
group
group_usbfs_dev_drv_enums
Enums
-
enum
cy_en_usbfs_dev_drv_status_t
cy_en_usbfs_dev_drv_status_t: USBFS Device Driver return codes.
Values:
-
enumerator
CY_USBFS_DEV_DRV_SUCCESS
Operation completed successfully.
-
enumerator
CY_USBFS_DEV_DRV_BAD_PARAM
One or more input parameters are invalid.
-
enumerator
CY_USBFS_DEV_DRV_BUF_ALLOC_FAILED
There is not enough space in the buffer to be allocated for the endpoint (hardware or RAM)
-
enumerator
CY_USBFS_DEV_DRV_DMA_CFG_FAILED
Failure during DMA configuration.
-
enumerator
CY_USBFS_DEV_DRV_EP_DYN_RECONFIG_TIMEOUT
Timeout during dynamic reconfiguration.
-
enumerator
CY_USBFS_DEV_DRV_EP_DMA_READ_TIMEOUT
Timeout during execution of the DMA read request for the OUT endpoint (only applicable in Manual DMA mode (Mode 2))
-
enumerator
CY_USBFS_DEV_DRV_EP_DMA_WRITE_TIMEOUT
Timeout during execution of the DMA read request for the OUT endpoint (only applicable in Manual DMA mode (Mode 2))
-
enumerator
-
enum
cy_en_usbfs_dev_drv_ep_management_mode_t
cy_en_usbfs_dev_drv_ep_management_mode_t: Data Endpoints Buffer Management Mode.
Values:
-
enumerator
CY_USBFS_DEV_DRV_EP_MANAGEMENT_CPU
CPU manages a data transfer between the hardware endpoints buffer and the user SRAM.
-
enumerator
CY_USBFS_DEV_DRV_EP_MANAGEMENT_DMA
DMA manages data transfer between the hardware endpoints buffer and the user SRAM.
-
enumerator
CY_USBFS_DEV_DRV_EP_MANAGEMENT_DMA_AUTO
The DMA automatically manages a data transfer between the hardware endpoints FIFO buffer and the user SRAM.
-
enumerator
-
enum
cy_en_usbfs_dev_ep_access_t
cy_en_usbfs_dev_ep_access_t: Data Endpoint Register Access Type.
Values:
-
enumerator
CY_USBFS_DEV_DRV_USE_8_BITS_DR
Use 8-bits registers to access the data endpoints.
-
enumerator
CY_USBFS_DEV_DRV_USE_16_BITS_DR
Use 16-bits registers to access the data endpoints.
-
enumerator
-
enum
cy_en_usb_dev_service_cb_t
cy_en_usb_dev_service_cb_t: Service Callback Events (this enumerated type is used by middleware)
Values:
-
enumerator
CY_USB_DEV_BUS_RESET
Callback hooked to the bus reset interrupt.
-
enumerator
CY_USB_DEV_EP0_SETUP
Callback hooked to the endpoint 0 SETUP packet interrupt.
-
enumerator
CY_USB_DEV_EP0_IN
Callback hooked to the endpoint 0 IN packet interrupt.
-
enumerator
CY_USB_DEV_EP0_OUT
Callback hooked to the endpoint 0 OUT packet interrupt.
-
enumerator
-
enum
cy_en_usbfs_dev_drv_cb_source_t
cy_en_usbfs_dev_drv_cb_source_t: Callback Sources.
Values:
-
enumerator
CY_USBFS_DEV_DRV_EP1
Callback hooked to the Data Endpoint 1 completion interrupt.
-
enumerator
CY_USBFS_DEV_DRV_EP2
Callback hooked to the Data Endpoint 2 completion interrupt.
-
enumerator
CY_USBFS_DEV_DRV_EP3
Callback hooked to the Data Endpoint 3 completion interrupt.
-
enumerator
CY_USBFS_DEV_DRV_EP4
Callback hooked to the Data Endpoint 4 completion interrupt.
-
enumerator
CY_USBFS_DEV_DRV_EP5
Callback hooked to the Data Endpoint 5 completion interrupt.
-
enumerator
CY_USBFS_DEV_DRV_EP6
Callback hooked to the Data Endpoint 6 completion interrupt.
-
enumerator
CY_USBFS_DEV_DRV_EP7
Callback hooked to the Data Endpoint 7 completion interrupt.
-
enumerator
CY_USBFS_DEV_DRV_EP8
Callback hooked to the Data Endpoint 8 completion interrupt.
-
enumerator
CY_USBFS_DEV_DRV_SOF
Callback hooked to the SOF packet received interrupt.
-
enumerator
CY_USBFS_DEV_DRV_LPM
Callback hooked to the LPM request received interrupt.
-
enumerator
-
enum
cy_en_usb_dev_ep_state_t
cy_en_usb_dev_ep_state_t: Data Endpoint States (this enumerated type is used by middleware)
Values:
-
enumerator
CY_USB_DEV_EP_IDLE
The endpoint is in an idle state after the configuration is set.
-
enumerator
CY_USB_DEV_EP_PENDING
The transfer targeted at an endpoint is in progress.
-
enumerator
CY_USB_DEV_EP_COMPLETED
The transfer targeted at an endpoint is completed.
-
enumerator
CY_USB_DEV_EP_STALLED
The endpoint is stalled.
-
enumerator
CY_USB_DEV_EP_DISABLED
The endpoint is disabled (not used in this configuration)
-
enumerator
CY_USB_DEV_EP_INVALID
The endpoint is not supported by the hardware.
-
enumerator
-
enum
cy_en_usbfs_dev_drv_force_bus_state_t
cy_en_usbfs_dev_drv_force_bus_state_t: USB Lines Control.
Values:
-
enumerator
CY_USBFS_DEV_DRV_FORCE_STATE_J
Force a J State onto the USB lines.
-
enumerator
CY_USBFS_DEV_DRV_FORCE_STATE_K
Force a K State onto the USB lines.
-
enumerator
CY_USBFS_DEV_DRV_FORCE_STATE_SE0
Force a Single Ended 0 onto the USB lines.
-
enumerator
CY_USBFS_DEV_DRV_FORCE_STATE_NONE
Return the bus to the SIE control.
-
enumerator
-
enum
cy_en_usbfs_dev_drv_lpm_req_t
cy_en_usbfs_dev_drv_lpm_req_t: LPM (Link Power Management) Responses.
Values:
-
enumerator
CY_USBFS_DEV_DRV_LPM_REQ_NACK
The next LPM request will be responded with NACK.
-
enumerator
CY_USBFS_DEV_DRV_LPM_REQ_ACK
The next LPM request will be responded with ACK.
-
enumerator
-
enum
cy_en_usbfs_dev_drv_ep0_ctrl_state_t
cy_en_usbfs_dev_drv_ep0_ctrl_state_t: USB Control EP0 transfer state.
Values:
-
enumerator
CY_USBFS_DEV_DRV_EP0_CTRL_STATE_IDLE
-
enumerator
CY_USBFS_DEV_DRV_EP0_CTRL_STATE_SETUP
-
enumerator
CY_USBFS_DEV_DRV_EP0_CTRL_STATE_DATA
-
enumerator
CY_USBFS_DEV_DRV_EP0_CTRL_STATE_STATUS_IN
-
enumerator
CY_USBFS_DEV_DRV_EP0_CTRL_STATE_STATUS_OUT
-
enumerator
-
enum