- Main Page
- Modules
- Data Structures
- Files

Enumerations
USB MUSB Enumerated Data Types
USB

## Enumerations
enum | CSL_UsbEpNum { CSL_USB_OUT_EP0 = 0x00, CSL_USB_OUT_EP1 = 0x01, CSL_USB_OUT_EP2 = 0x02, CSL_USB_OUT_EP3 = 0x03, CSL_USB_OUT_EP4 = 0x04, CSL_USB_OUT_EP5 = 0x05, CSL_USB_OUT_EP6 = 0x06, CSL_USB_OUT_EP7 = 0x07, CSL_USB_IN_EP0 = 0x08, CSL_USB_IN_EP1 = 0x09, CSL_USB_IN_EP2 = 0x0A, CSL_USB_IN_EP3 = 0x0B, CSL_USB_IN_EP4 = 0x0C, CSL_USB_IN_EP5 = 0x0D, CSL_USB_IN_EP6 = 0x0E, CSL_USB_IN_EP7 = 0x0F }
| This enum defines Ep Input output numbers. More...
enum | CSL_UsbEp0State { CSL_USB_EP0_IDLE = 0, CSL_USB_EP0_STATUS_IN, CSL_USB_EP0_TX, CSL_USB_EP0_RX }
| This enum defines the various EP states. More...
enum | CSL_UsbDeviceEvent { CSL_USB_DEVICE_DETACH = 0, CSL_USB_DEVICE_ATTACH }
| This enum defines USB Device Events. More...
enum | CSL_UsbBusSpeed { CSL_USB_BS_UNKNOWN_SPEED = 0, CSL_USB_BS_FULL_SPEED = (1 << 1), CSL_USB_BS_HIGH_SPEED = (1 << 2) }
| This enum defines USB Bus Speeds. More...
enum | CSL_UsbMscMsg { CSL_USB_MSG_MSC_CTL = 0, CSL_USB_MSG_MSC_BULK_IN, CSL_USB_MSG_MSC_BULK_OUT, CSL_USB_MSG_ISO_OUT, CSL_USB_MSG_ISO_IN, CSL_USB_MSG_HID_INT_IN, CSL_USB_MSG_MSC_TASK_EXIT }
| This enum defines the messages for MSC Task. More...
enum | CSL_UsbUiMsg { CSL_USB_MSG_USBUI_HOSTFEATURE = 0, CSL_USB_MSG_USBUI_USBERROR, CSL_USB_MSG_USBUI_TASK_EXIT }
| This enum defines the messages for USBUI Task. More...
enum | CSL_UsbMainMsg { CSL_USB_MSG_DATA = 0, CSL_USB_MSG_USB_INT, CSL_USB_MSG_RESET_DEVICE, CSL_USB_MSG_CONNECT_DEVICE, CSL_USB_MSG_DISCONNECT_DEVICE, CSL_USB_MSG_STALL_ENDPOINT, CSL_USB_MSG_CLEAR_ENDPOINT_STALL, CSL_USB_MSG_ABORT_TRANSFER, CSL_USB_MSG_SEND_HAND_SHAKE, CSL_USB_MSG_MAIN_TASK_EXIT }
| This enum defines the messages for USB Main Task. More...
enum | CSL_UsbXferType { CSL_USB_CTRL = 0x00, CSL_USB_BULK = 0x01, CSL_USB_INTR = 0x02, CSL_USB_ISO = 0x03, CSL_USB_HPORT = 0x04 }
| This enum defines the USB Transfer Types. More...
enum | CSL_UsbDevNum { CSL_USB0 = 0x00, CSL_USB1 = 0x01, CSL_USB2 = 0x02 }
| This enum defines the USB device number.
enum | CSL_UsbEp0DataDir { CSL_USB_EP0_DATA_OUT = 0x00, CSL_USB_EP0_DATA_IN = 0x01 }
| This enum defines the USB EP0 data dir type.
enum | CSL_UsbBoolean { CSL_USB_FALSE = 0, CSL_USB_TRUE }
| This enum defines status return values of USB.
enum | CSL_UsbOpMode { CSL_USB_OPMODE_POLLED = 0, CSL_USB_OPMODE_DMA, CSL_USB_OPMODE_DMA_TXONLY }
| This enum is used to select the operating mode of the USB. More...

## Enumeration Type Documentation

enum CSL_UsbBusSpeed

This enum defines USB Bus Speeds.

Enumerator:

  CSL_USB_BS_UNKNOWN_SPEED | USB bus speed unknown
  CSL_USB_BS_FULL_SPEED | USB full speed device
  CSL_USB_BS_HIGH_SPEED | USB high speed device

enum CSL_UsbDeviceEvent

This enum defines USB Device Events.

Enumerator:

  CSL_USB_DEVICE_DETACH | USB device detach event
  CSL_USB_DEVICE_ATTACH | USB device attach event

enum CSL_UsbEp0State

This enum defines the various EP states.

Enumerator:

  CSL_USB_EP0_IDLE | USB End point0 Idle state
  CSL_USB_EP0_STATUS_IN | USB End point0 input state
  CSL_USB_EP0_TX | USB End point0 transmit state
  CSL_USB_EP0_RX | USB End point0 receive state

enum CSL_UsbEpNum

This enum defines Ep Input output numbers.

These values are use by the CSL GUI or the USB API to initialize the USB Endpoint Objects

Enumerator:

  CSL_USB_OUT_EP0 | OUT ENDPOINTS. Out Endpoint 0 - Control Out Endpoint
  CSL_USB_OUT_EP1 | Out Endpoint 1
  CSL_USB_OUT_EP2 | Out Endpoint 2
  CSL_USB_OUT_EP3 | Out Endpoint 3
  CSL_USB_OUT_EP4 | Out Endpoint 4
  CSL_USB_OUT_EP5 | Out Endpoint 5
  CSL_USB_OUT_EP6 | Out Endpoint 6
  CSL_USB_OUT_EP7 | Out Endpoint 7
  CSL_USB_IN_EP0 | IN ENDPOINTS. In Endpoint 0 - Control In Endpoint
  CSL_USB_IN_EP1 | In Endpoint 1
  CSL_USB_IN_EP2 | In Endpoint 2
  CSL_USB_IN_EP3 | In Endpoint 3
  CSL_USB_IN_EP4 | In Endpoint 4
  CSL_USB_IN_EP5 | In Endpoint 5
  CSL_USB_IN_EP6 | In Endpoint 6
  CSL_USB_IN_EP7 | In Endpoint 7

enum CSL_UsbMainMsg

This enum defines the messages for USB Main Task.

Enumerator:

  CSL_USB_MSG_DATA | Data transfer message
  CSL_USB_MSG_USB_INT | Interrupt message
  CSL_USB_MSG_RESET_DEVICE | Device reset message
  CSL_USB_MSG_CONNECT_DEVICE | Device connect message
  CSL_USB_MSG_DISCONNECT_DEVICE | Device disconnect message
  CSL_USB_MSG_STALL_ENDPOINT | Stall end point message
  CSL_USB_MSG_CLEAR_ENDPOINT_STALL | Clear end point stall message
  CSL_USB_MSG_ABORT_TRANSFER | Abort data transfer message
  CSL_USB_MSG_SEND_HAND_SHAKE | Send hand shake message
  CSL_USB_MSG_MAIN_TASK_EXIT | Main task exit message

enum CSL_UsbMscMsg

This enum defines the messages for MSC Task.

Enumerator:

  CSL_USB_MSG_MSC_CTL | Sends control message to MSC task
  CSL_USB_MSG_MSC_BULK_IN | Sends bulk in message to MSC task
  CSL_USB_MSG_MSC_BULK_OUT | Sends bulk out message to MSC task
  CSL_USB_MSG_ISO_OUT | Sends Iso OUT message
  CSL_USB_MSG_ISO_IN | Sends Iso IN message
  CSL_USB_MSG_HID_INT_IN | Sends HID interrupt IN report
  CSL_USB_MSG_MSC_TASK_EXIT | Sends task exit message to MSC task

enum CSL_UsbOpMode

This enum is used to select the operating mode of the USB.

This opMode decides how the data is transferred(Using CPU or DMA) to and from the USB FIFO. Even when operating in DMA mode, USB module uses CPU to access the FIFO data which is of length less than 512 bytes.

enum CSL_UsbUiMsg

This enum defines the messages for USBUI Task.

Enumerator:

  CSL_USB_MSG_USBUI_HOSTFEATURE | Sends host feature message to USBUI task
  CSL_USB_MSG_USBUI_USBERROR | Sends error message to USBUI task
  CSL_USB_MSG_USBUI_TASK_EXIT | Sends task exit message to USBUI task

enum CSL_UsbXferType

This enum defines the USB Transfer Types.

Enumerator:

  CSL_USB_CTRL | Endpoint functions as control endpoint
  CSL_USB_BULK | Endpoint functions as bulk endpoint
  CSL_USB_INTR | Endpoint functions as interrupt endpoint
  CSL_USB_ISO | Endpoint functions as isochronous endpoint
  CSL_USB_HPORT | Endpoint functions as Host Port-special feature not part of USB spec