- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Functions | Variables
csl_usb.c File Reference

USB MUSB functional layer API source file. More...

`#include "csl_usb.h"`
`#include "csl_usbAux.h"`

## Functions
CSL_Status | USB_init (CSL_UsbConfig *usbConfig)
CSL_Status | USB_resetDev (CSL_UsbDevNum devNum)
CSL_Status | USB_initEndptObj (CSL_UsbDevNum devNum, pUsbEpHandle hEp, CSL_UsbEpNum epNum, CSL_UsbXferType xferType, Uint16 maxPktSize, Uint16 evMask, CSL_USB_EVENT_ISR fxn)
CSL_UsbEventMask | USB_getEvents (pUsbEpHandle hEp, CSL_Status *status)
CSL_UsbEventMask | USB_peekEvents (pUsbEpHandle hEp, CSL_Status *status)
CSL_Status | USB_getSetupPacket (CSL_UsbDevNum devNum, CSL_UsbSetupStruct *usbSetup, Bool readFromFifo)
CSL_Status | USB_postTransaction (pUsbEpHandle hEp, Uint16 byteCnt, void *data, CSL_UsbIoFlags flags)
CSL_UsbBoolean | USB_isTransactionDone (pUsbEpHandle hEp, CSL_Status *status)
CSL_UsbByteCount | USB_bytesRemaining (pUsbEpHandle hEp, CSL_Status *status)
CSL_Status | USB_stallEndpt (pUsbEpHandle hEp)
CSL_Status | USB_clearEndptStall (pUsbEpHandle hEp)
CSL_UsbBoolean | USB_getEndptStall (pUsbEpHandle hEp, CSL_Status *status)
pUsbEpHandle | USB_epNumToHandle (CSL_UsbDevNum devNum, Uint16 endpt)
CSL_Status | USB_abortTransaction (pUsbEpHandle hEp)
CSL_Status | USB_abortAllTransaction (CSL_UsbDevNum devNum)
CSL_Status | USB_connectDev (CSL_UsbDevNum devNum)
CSL_Status | USB_disconnectDev (CSL_UsbDevNum devNum)
CSL_Status | USB_setRemoteWakeup (CSL_UsbDevNum devNum, CSL_UsbBoolean rmtWkpStat)
CSL_UsbBoolean | USB_getRemoteWakeupStat (CSL_UsbDevNum devNum)
CSL_Status | USB_issueRemoteWakeup (CSL_UsbDevNum devNum, Bool resumeBitVal)
CSL_Status | USB_setDevAddr (CSL_UsbDevNum devNum, Uint16 addr)
CSL_UsbFrameNum | USB_getFrameNo (CSL_UsbDevNum devNum)
CSL_Status | USB_suspendDevice (CSL_UsbDevNum devNum)
CSL_Status | USB_selfwakeup (CSL_UsbDevNum devNum, Uint32 wakeupDelay)
void | USB_initPLL (void)
CSL_Status | USB_setParams (CSL_UsbDevNum devNum, pUsbEpHandle hEpObj[], Uint16 pSofTmrCnt)
WORD | USB_getMaxPower (CSL_UsbDevNum devNum)
void | USB_setFullSpeedMode (Uint16 ep0DataSize)
Uint16 | USB_getDataCountReadFromFifo (pUsbEpHandle hEp)
Uint16 | USB_findFifoSize (Uint16 maxPktSize, CSL_UsbXferType xferType)
CSL_Status | USB_coreEventProcessEp0 (pUsbContext pContext)
## Variables
CSL_UsbRegsOvly | usbRegisters
CSL_SysRegsOvly | sysCtrlRegs
CSL_UsbContext | gUsbContext
CSL_UsbTransfer | gCtrlTransfer
CSL_UsbTransfer | gBulkInTransfer
CSL_UsbTransfer | gBulkOutTransfer
CSL_UsbTransfer | gIsoInTransfer
CSL_UsbTransfer | gIsoOutTransfer
CSL_UsbTransfer | gIntInTransfer
CSL_UsbEpStatus | gEpStatus [CSL_USB_ENDPOINT_COUNT]
pUsbEpHandle | gUsbEpHandle [CSL_USB_ENDPOINT_COUNT]

## Detailed Description

USB MUSB functional layer API source file.

Path: \(CSLPATH)

## Variable Documentation

CSL_SysRegsOvly sysCtrlRegs

CPU System control register overlay structure pointer

Referenced by USB_init(), and USB_initPLL().