Macros | Functions
usb.h File Reference
#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Macros

#define USB_INTCTRL_ALL   0x000003FF
 
#define USB_INTCTRL_STATUS   0x000000FF
 
#define USB_INTCTRL_VBUS_ERR   0x00000080
 
#define USB_INTCTRL_SESSION   0x00000040
 
#define USB_INTCTRL_SESSION_END   0x00000040
 
#define USB_INTCTRL_DISCONNECT   0x00000020
 
#define USB_INTCTRL_CONNECT   0x00000010
 
#define USB_INTCTRL_SOF   0x00000008
 
#define USB_INTCTRL_BABBLE   0x00000004
 
#define USB_INTCTRL_RESET   0x00000004
 
#define USB_INTCTRL_RESUME   0x00000002
 
#define USB_INTCTRL_SUSPEND   0x00000001
 
#define USB_INTCTRL_MODE_DETECT   0x00000200
 
#define USB_INTCTRL_POWER_FAULT   0x00000100
 
#define USB_INTEP_ALL   0xFFFFFFFF
 
#define USB_INTEP_HOST_IN   0xFFFE0000
 
#define USB_INTEP_HOST_IN_15   0x80000000
 
#define USB_INTEP_HOST_IN_14   0x40000000
 
#define USB_INTEP_HOST_IN_13   0x20000000
 
#define USB_INTEP_HOST_IN_12   0x10000000
 
#define USB_INTEP_HOST_IN_11   0x08000000
 
#define USB_INTEP_HOST_IN_10   0x04000000
 
#define USB_INTEP_HOST_IN_9   0x02000000
 
#define USB_INTEP_HOST_IN_8   0x01000000
 
#define USB_INTEP_HOST_IN_7   0x00800000
 
#define USB_INTEP_HOST_IN_6   0x00400000
 
#define USB_INTEP_HOST_IN_5   0x00200000
 
#define USB_INTEP_HOST_IN_4   0x00100000
 
#define USB_INTEP_HOST_IN_3   0x00080000
 
#define USB_INTEP_HOST_IN_2   0x00040000
 
#define USB_INTEP_HOST_IN_1   0x00020000
 
#define USB_INTEP_DEV_OUT   0xFFFE0000
 
#define USB_INTEP_DEV_OUT_15   0x80000000
 
#define USB_INTEP_DEV_OUT_14   0x40000000
 
#define USB_INTEP_DEV_OUT_13   0x20000000
 
#define USB_INTEP_DEV_OUT_12   0x10000000
 
#define USB_INTEP_DEV_OUT_11   0x08000000
 
#define USB_INTEP_DEV_OUT_10   0x04000000
 
#define USB_INTEP_DEV_OUT_9   0x02000000
 
#define USB_INTEP_DEV_OUT_8   0x01000000
 
#define USB_INTEP_DEV_OUT_7   0x00800000
 
#define USB_INTEP_DEV_OUT_6   0x00400000
 
#define USB_INTEP_DEV_OUT_5   0x00200000
 
#define USB_INTEP_DEV_OUT_4   0x00100000
 
#define USB_INTEP_DEV_OUT_3   0x00080000
 
#define USB_INTEP_DEV_OUT_2   0x00040000
 
#define USB_INTEP_DEV_OUT_1   0x00020000
 
#define USB_INTEP_HOST_OUT   0x0000FFFE
 
#define USB_INTEP_HOST_OUT_15   0x00008000
 
#define USB_INTEP_HOST_OUT_14   0x00004000
 
#define USB_INTEP_HOST_OUT_13   0x00002000
 
#define USB_INTEP_HOST_OUT_12   0x00001000
 
#define USB_INTEP_HOST_OUT_11   0x00000800
 
#define USB_INTEP_HOST_OUT_10   0x00000400
 
#define USB_INTEP_HOST_OUT_9   0x00000200
 
#define USB_INTEP_HOST_OUT_8   0x00000100
 
#define USB_INTEP_HOST_OUT_7   0x00000080
 
#define USB_INTEP_HOST_OUT_6   0x00000040
 
#define USB_INTEP_HOST_OUT_5   0x00000020
 
#define USB_INTEP_HOST_OUT_4   0x00000010
 
#define USB_INTEP_HOST_OUT_3   0x00000008
 
#define USB_INTEP_HOST_OUT_2   0x00000004
 
#define USB_INTEP_HOST_OUT_1   0x00000002
 
#define USB_INTEP_DEV_IN   0x0000FFFE
 
#define USB_INTEP_DEV_IN_15   0x00008000
 
#define USB_INTEP_DEV_IN_14   0x00004000
 
#define USB_INTEP_DEV_IN_13   0x00002000
 
#define USB_INTEP_DEV_IN_12   0x00001000
 
#define USB_INTEP_DEV_IN_11   0x00000800
 
#define USB_INTEP_DEV_IN_10   0x00000400
 
#define USB_INTEP_DEV_IN_9   0x00000200
 
#define USB_INTEP_DEV_IN_8   0x00000100
 
#define USB_INTEP_DEV_IN_7   0x00000080
 
#define USB_INTEP_DEV_IN_6   0x00000040
 
#define USB_INTEP_DEV_IN_5   0x00000020
 
#define USB_INTEP_DEV_IN_4   0x00000010
 
#define USB_INTEP_DEV_IN_3   0x00000008
 
#define USB_INTEP_DEV_IN_2   0x00000004
 
#define USB_INTEP_DEV_IN_1   0x00000002
 
#define USB_INTEP_0   0x00000001
 
#define USB_UNDEF_SPEED   0x80000000
 
#define USB_HIGH_SPEED   0x00000002
 
#define USB_FULL_SPEED   0x00000001
 
#define USB_LOW_SPEED   0x00000000
 
#define USB_HOST_IN_STATUS   0x114F0000
 
#define USB_HOST_IN_PID_ERROR   0x10000000
 
#define USB_HOST_IN_NOT_COMP   0x01000000
 
#define USB_HOST_IN_STALL   0x00400000
 
#define USB_HOST_IN_DATA_ERROR   0x00080000
 
#define USB_HOST_IN_NAK_TO   0x00080000
 
#define USB_HOST_IN_ERROR   0x00040000
 
#define USB_HOST_IN_FIFO_FULL   0x00020000
 
#define USB_HOST_IN_PKTRDY   0x00010000
 
#define USB_HOST_OUT_STATUS   0x000000A7
 
#define USB_HOST_OUT_NAK_TO   0x00000080
 
#define USB_HOST_OUT_NOT_COMP   0x00000080
 
#define USB_HOST_OUT_STALL   0x00000020
 
#define USB_HOST_OUT_ERROR   0x00000004
 
#define USB_HOST_OUT_FIFO_NE   0x00000002
 
#define USB_HOST_OUT_PKTPEND   0x00000001
 
#define USB_HOST_EP0_NAK_TO   0x00000080
 
#define USB_HOST_EP0_STATUS   0x00000040
 
#define USB_HOST_EP0_ERROR   0x00000010
 
#define USB_HOST_EP0_RX_STALL   0x00000004
 
#define USB_HOST_EP0_RXPKTRDY   0x00000001
 
#define USB_DEV_RX_PID_ERROR   0x01000000
 
#define USB_DEV_RX_SENT_STALL   0x00400000
 
#define USB_DEV_RX_DATA_ERROR   0x00080000
 
#define USB_DEV_RX_OVERRUN   0x00040000
 
#define USB_DEV_RX_FIFO_FULL   0x00020000
 
#define USB_DEV_RX_PKT_RDY   0x00010000
 
#define USB_DEV_TX_NOT_COMP   0x00000080
 
#define USB_DEV_TX_SENT_STALL   0x00000020
 
#define USB_DEV_TX_UNDERRUN   0x00000004
 
#define USB_DEV_TX_FIFO_NE   0x00000002
 
#define USB_DEV_TX_TXPKTRDY   0x00000001
 
#define USB_DEV_EP0_SETUP_END   0x00000010
 
#define USB_DEV_EP0_SENT_STALL   0x00000004
 
#define USB_DEV_EP0_IN_PKTPEND   0x00000002
 
#define USB_DEV_EP0_OUT_PKTRDY   0x00000001
 
#define USB_EP_AUTO_SET   0x00000001
 
#define USB_EP_AUTO_REQUEST   0x00000002
 
#define USB_EP_AUTO_CLEAR   0x00000004
 
#define USB_EP_DMA_MODE_0   0x00000008
 
#define USB_EP_DMA_MODE_1   0x00000010
 
#define USB_EP_DIS_NYET   0x00000020
 
#define USB_EP_MODE_ISOC   0x00000000
 
#define USB_EP_MODE_BULK   0x00000100
 
#define USB_EP_MODE_INT   0x00000200
 
#define USB_EP_MODE_CTRL   0x00000300
 
#define USB_EP_MODE_MASK   0x00000300
 
#define USB_EP_SPEED_LOW   0x00000000
 
#define USB_EP_SPEED_FULL   0x00001000
 
#define USB_EP_SPEED_HIGH   0x00004000
 
#define USB_EP_HOST_IN   0x00000000
 
#define USB_EP_HOST_OUT   0x00002000
 
#define USB_EP_DEV_IN   0x00002000
 
#define USB_EP_DEV_OUT   0x00000000
 
#define USB_HOST_PWRFLT_LOW   0x00000010
 
#define USB_HOST_PWRFLT_HIGH   0x00000030
 
#define USB_HOST_PWRFLT_EP_NONE   0x00000000
 
#define USB_HOST_PWRFLT_EP_TRI   0x00000140
 
#define USB_HOST_PWRFLT_EP_LOW   0x00000240
 
#define USB_HOST_PWRFLT_EP_HIGH   0x00000340
 
#define USB_HOST_PWREN_MAN_LOW   0x00000000
 
#define USB_HOST_PWREN_MAN_HIGH   0x00000001
 
#define USB_HOST_PWREN_AUTOLOW   0x00000002
 
#define USB_HOST_PWREN_AUTOHIGH   0x00000003
 
#define USB_HOST_PWREN_FILTER   0x00010000
 
#define USB_HOST_LPM_RMTWAKE   0x00000100
 
#define USB_HOST_LPM_L1   0x00000001
 
#define USB_DEV_LPM_NAK   0x00000010
 
#define USB_DEV_LPM_NONE   0x00000000
 
#define USB_DEV_LPM_EN   0x0000000c
 
#define USB_DEV_LPM_EXTONLY   0x00000004
 
#define USB_DEV_LPM_LS_RMTWAKE   0x00000100
 
#define USB_DEV_LPM_LS_L1   0x00000001
 
#define USB_INTLPM_ERROR   0x00000020
 
#define USB_INTLPM_RESUME   0x00000010
 
#define USB_INTLPM_INCOMPLETE   0x00000008
 
#define USB_INTLPM_ACK   0x00000004
 
#define USB_INTLPM_NYET   0x00000002
 
#define USB_INTLPM_STALL   0x00000001
 
#define USB_CLOCK_INTERNAL   0x00000200
 
#define USB_CLOCK_EXTERNAL   0x00000300
 
#define USB_ULPI_EXTVBUS   0x00000001
 
#define USB_ULPI_EXTVBUS_IND   0x00000002
 
#define MAX_NAK_LIMIT   31
 
#define DISABLE_NAK_LIMIT   0
 
#define MAX_PACKET_SIZE_EP0   64
 
#define USB_EP_0   0x00000000
 
#define USB_EP_1   0x00000010
 
#define USB_EP_2   0x00000020
 
#define USB_EP_3   0x00000030
 
#define USB_EP_4   0x00000040
 
#define USB_EP_5   0x00000050
 
#define USB_EP_6   0x00000060
 
#define USB_EP_7   0x00000070
 
#define NUM_USB_EP   8
 
#define IndexToUSBEP(x)   ((x) << 4)
 
#define USBEPToIndex(x)   ((x) >> 4)
 
#define USB_FIFO_SZ_8   0x00000000
 
#define USB_FIFO_SZ_16   0x00000001
 
#define USB_FIFO_SZ_32   0x00000002
 
#define USB_FIFO_SZ_64   0x00000003
 
#define USB_FIFO_SZ_128   0x00000004
 
#define USB_FIFO_SZ_256   0x00000005
 
#define USB_FIFO_SZ_512   0x00000006
 
#define USB_FIFO_SZ_1024   0x00000007
 
#define USB_FIFO_SZ_2048   0x00000008
 
#define USBFIFOSizeToBytes(x)   (8 << (x))
 
#define USB_TRANS_OUT   0x00000102
 
#define USB_TRANS_IN   0x00000102
 
#define USB_TRANS_IN_LAST   0x0000010a
 
#define USB_TRANS_SETUP   0x0000110a
 
#define USB_TRANS_STATUS   0x00000142
 
#define USB_DUAL_MODE_HOST   0x00000001
 
#define USB_DUAL_MODE_DEVICE   0x00000081
 
#define USB_DUAL_MODE_NONE   0x00000080
 
#define USB_OTG_MODE_ASIDE_HOST   0x0000001d
 
#define USB_OTG_MODE_ASIDE_NPWR   0x00000001
 
#define USB_OTG_MODE_ASIDE_SESS   0x00000009
 
#define USB_OTG_MODE_ASIDE_AVAL   0x00000011
 
#define USB_OTG_MODE_ASIDE_DEV   0x00000019
 
#define USB_OTG_MODE_BSIDE_HOST   0x0000009d
 
#define USB_OTG_MODE_BSIDE_DEV   0x00000099
 
#define USB_OTG_MODE_BSIDE_NPWR   0x00000081
 
#define USB_OTG_MODE_NONE   0x00000080
 
#define USB_DMA_INT_CH8   0x00000080
 
#define USB_DMA_INT_CH7   0x00000040
 
#define USB_DMA_INT_CH6   0x00000020
 
#define USB_DMA_INT_CH5   0x00000010
 
#define USB_DMA_INT_CH4   0x00000008
 
#define USB_DMA_INT_CH3   0x00000004
 
#define USB_DMA_INT_CH2   0x00000002
 
#define USB_DMA_INT_CH1   0x00000001
 
#define USB_DMA_STATUS_ERROR   0x00000100
 
#define USB_DMA_CFG_BURST_NONE   0x00000000
 
#define USB_DMA_CFG_BURST_4   0x00000200
 
#define USB_DMA_CFG_BURST_8   0x00000400
 
#define USB_DMA_CFG_BURST_16   0x00000600
 
#define USB_DMA_CFG_INT_EN   0x00000008
 
#define USB_DMA_CFG_MODE_0   0x00000000
 
#define USB_DMA_CFG_MODE_1   0x00000004
 
#define USB_DMA_CFG_DIR_RX   0x00000000
 
#define USB_DMA_CFG_DIR_TX   0x00000002
 
#define USB_DMA_CFG_EN   0x00000001
 
#define USB_MODE_HOST_VBUS   0x00000004
 
#define USB_MODE_HOST   0x00000002
 
#define USB_MODE_DEV_VBUS   0x00000005
 
#define USB_MODE_DEV   0x00000003
 
#define USB_MODE_OTG   0x00000000
 

Functions

uint32_t USBDevAddrGet (uint32_t ui32Base)
 
void USBDevAddrSet (uint32_t ui32Base, uint32_t ui32Address)
 
void USBDevConnect (uint32_t ui32Base)
 
void USBDevDisconnect (uint32_t ui32Base)
 
void USBDevEndpointConfigSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32MaxPacketSize, uint32_t ui32Flags)
 
void USBDevEndpointConfigGet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t *pui32MaxPacketSize, uint32_t *pui32Flags)
 
void USBDevEndpointDataAck (uint32_t ui32Base, uint32_t ui32Endpoint, bool bIsLastPacket)
 
void USBDevEndpointStall (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
 
void USBDevEndpointStallClear (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
 
void USBDevEndpointStatusClear (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
 
uint32_t USBEndpointDataAvail (uint32_t ui32Base, uint32_t ui32Endpoint)
 
void USBEndpointDMAEnable (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
 
void USBEndpointDMADisable (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
 
void USBEndpointDMAConfigSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Config)
 
int32_t USBEndpointDataGet (uint32_t ui32Base, uint32_t ui32Endpoint, uint8_t *pui8Data, uint32_t *pui32Size)
 
int32_t USBEndpointDataPut (uint32_t ui32Base, uint32_t ui32Endpoint, uint8_t *pui8Data, uint32_t ui32Size)
 
int32_t USBEndpointDataSend (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32TransType)
 
void USBEndpointDataToggleClear (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
 
void USBEndpointPacketCountSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Count)
 
uint32_t USBEndpointStatus (uint32_t ui32Base, uint32_t ui32Endpoint)
 
uint32_t USBFIFOAddrGet (uint32_t ui32Base, uint32_t ui32Endpoint)
 
void USBFIFOConfigGet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t *pui32FIFOAddress, uint32_t *pui32FIFOSize, uint32_t ui32Flags)
 
void USBFIFOConfigSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32FIFOAddress, uint32_t ui32FIFOSize, uint32_t ui32Flags)
 
void USBFIFOFlush (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
 
uint32_t USBFrameNumberGet (uint32_t ui32Base)
 
uint32_t USBHostAddrGet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
 
void USBHostAddrSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Addr, uint32_t ui32Flags)
 
void USBHostEndpointConfig (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32MaxPacketSize, uint32_t ui32NAKPollInterval, uint32_t ui32TargetEndpoint, uint32_t ui32Flags)
 
void USBHostEndpointDataAck (uint32_t ui32Base, uint32_t ui32Endpoint)
 
void USBHostEndpointDataToggle (uint32_t ui32Base, uint32_t ui32Endpoint, bool bDataToggle, uint32_t ui32Flags)
 
void USBHostEndpointStatusClear (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
 
uint32_t USBHostHubAddrGet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
 
void USBHostHubAddrSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Addr, uint32_t ui32Flags)
 
void USBHostPwrDisable (uint32_t ui32Base)
 
void USBHostPwrEnable (uint32_t ui32Base)
 
void USBHostPwrConfig (uint32_t ui32Base, uint32_t ui32Flags)
 
void USBHostPwrFaultDisable (uint32_t ui32Base)
 
void USBHostPwrFaultEnable (uint32_t ui32Base)
 
void USBHostRequestIN (uint32_t ui32Base, uint32_t ui32Endpoint)
 
void USBHostRequestINClear (uint32_t ui32Base, uint32_t ui32Endpoint)
 
void USBHostRequestStatus (uint32_t ui32Base)
 
void USBHostReset (uint32_t ui32Base, bool bStart)
 
void USBHostResume (uint32_t ui32Base, bool bStart)
 
uint32_t USBHostSpeedGet (uint32_t ui32Base)
 
void USBHostSuspend (uint32_t ui32Base)
 
void USBIntDisableControl (uint32_t ui32Base, uint32_t ui32IntFlags)
 
void USBIntEnableControl (uint32_t ui32Base, uint32_t ui32IntFlags)
 
uint32_t USBIntStatusControl (uint32_t ui32Base)
 
void USBIntDisableEndpoint (uint32_t ui32Base, uint32_t ui32IntFlags)
 
void USBIntEnableEndpoint (uint32_t ui32Base, uint32_t ui32IntFlags)
 
uint32_t USBIntStatusEndpoint (uint32_t ui32Base)
 
void USBIntRegister (uint32_t ui32Base, void(*pfnHandler)(void))
 
void USBIntUnregister (uint32_t ui32Base)
 
void USBOTGSessionRequest (uint32_t ui32Base, bool bStart)
 
uint32_t USBModeGet (uint32_t ui32Base)
 
uint32_t USBDMAChannelIntStatus (uint32_t ui32Base)
 
void USBDMAChannelConfigSet (uint32_t ui32Base, uint32_t ui32Channel, uint32_t ui32Endpoint, uint32_t ui32Config)
 
void USBDMAChannelAddressSet (uint32_t ui32Base, uint32_t ui32Channel, void *pvAddress)
 
void * USBDMAChannelAddressGet (uint32_t ui32Base, uint32_t ui32Channel)
 
void USBDMAChannelCountSet (uint32_t ui32Base, uint32_t ui32Count, uint32_t ui32Channel)
 
uint32_t USBDMAChannelCountGet (uint32_t ui32Base, uint32_t ui32Channel)
 
uint32_t USBDMANumChannels (uint32_t ui32Base)
 
void USBDMAChannelAssign (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Channel, uint32_t ui32Flags)
 
void USBDMAChannelIntEnable (uint32_t ui32Base, uint32_t ui32Channel)
 
void USBDMAChannelIntDisable (uint32_t ui32Base, uint32_t ui32Channel)
 
void USBDMAChannelEnable (uint32_t ui32Base, uint32_t ui32Channel)
 
void USBDMAChannelDisable (uint32_t ui32Base, uint32_t ui32Channel)
 
uint32_t USBDMAChannelStatus (uint32_t ui32Base, uint32_t ui32Channel)
 
void USBDMAChannelStatusClear (uint32_t ui32Base, uint32_t ui32Channel, uint32_t ui32Status)
 
void USBHostEndpointSpeed (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
 
void USBHostEndpointPing (uint32_t ui32Base, uint32_t ui32Endpoint, bool bEnable)
 
void USBHostLPMSend (uint32_t ui32Base, uint32_t ui32Address, uint32_t uiEndpoint)
 
void USBHostLPMConfig (uint32_t ui32Base, uint32_t ui32ResumeTime, uint32_t ui32Config)
 
bool USBLPMRemoteWakeEnabled (uint32_t ui32Base)
 
void USBHostLPMResume (uint32_t ui32Base)
 
void USBDevLPMRemoteWake (uint32_t ui32Base)
 
void USBDevLPMConfig (uint32_t ui32Base, uint32_t ui32Config)
 
void USBDevLPMEnable (uint32_t ui32Base)
 
void USBDevLPMDisable (uint32_t ui32Base)
 
uint32_t USBLPMLinkStateGet (uint32_t ui32Base)
 
uint32_t USBLPMEndpointGet (uint32_t ui32Base)
 
uint32_t USBLPMIntStatus (uint32_t ui32Base)
 
void USBLPMIntDisable (uint32_t ui32Base, uint32_t ui32Ints)
 
void USBLPMIntEnable (uint32_t ui32Base, uint32_t ui32Ints)
 
void USBHighSpeed (uint32_t ui32Base, bool bEnable)
 
uint32_t USBDevSpeedGet (uint32_t ui32Base)
 
void USBClockEnable (uint32_t ui32Base, uint32_t ui32Div, uint32_t ui32Flags)
 
void USBClockDisable (uint32_t ui32Base)
 
void USBULPIConfig (uint32_t ui32Base, uint32_t ui32Config)
 
void USBULPIEnable (uint32_t ui32Base)
 
void USBULPIDisable (uint32_t ui32Base)
 
uint8_t USBULPIRegRead (uint32_t ui32Base, uint8_t ui8Reg)
 
void USBULPIRegWrite (uint32_t ui32Base, uint8_t ui8Reg, uint8_t ui8Data)
 
void USBHostMode (uint32_t ui32Base)
 
void USBDevMode (uint32_t ui32Base)
 
void USBOTGMode (uint32_t ui32Base)
 
void USBModeConfig (uint32_t ui32Base, uint32_t ui32Mode)
 
void USBPHYPowerOff (uint32_t ui32Base)
 
void USBPHYPowerOn (uint32_t ui32Base)
 
uint32_t USBNumEndpointsGet (uint32_t ui32Base)
 

Macro Definition Documentation

§ USB_INTCTRL_ALL

#define USB_INTCTRL_ALL   0x000003FF

§ USB_INTCTRL_STATUS

#define USB_INTCTRL_STATUS   0x000000FF

§ USB_INTCTRL_VBUS_ERR

#define USB_INTCTRL_VBUS_ERR   0x00000080

§ USB_INTCTRL_SESSION

#define USB_INTCTRL_SESSION   0x00000040

§ USB_INTCTRL_SESSION_END

#define USB_INTCTRL_SESSION_END   0x00000040

§ USB_INTCTRL_DISCONNECT

#define USB_INTCTRL_DISCONNECT   0x00000020

§ USB_INTCTRL_CONNECT

#define USB_INTCTRL_CONNECT   0x00000010

§ USB_INTCTRL_SOF

#define USB_INTCTRL_SOF   0x00000008

§ USB_INTCTRL_BABBLE

#define USB_INTCTRL_BABBLE   0x00000004

§ USB_INTCTRL_RESET

#define USB_INTCTRL_RESET   0x00000004

§ USB_INTCTRL_RESUME

#define USB_INTCTRL_RESUME   0x00000002

§ USB_INTCTRL_SUSPEND

#define USB_INTCTRL_SUSPEND   0x00000001

§ USB_INTCTRL_MODE_DETECT

#define USB_INTCTRL_MODE_DETECT   0x00000200

§ USB_INTCTRL_POWER_FAULT

#define USB_INTCTRL_POWER_FAULT   0x00000100

§ USB_INTEP_ALL

#define USB_INTEP_ALL   0xFFFFFFFF

§ USB_INTEP_HOST_IN

#define USB_INTEP_HOST_IN   0xFFFE0000

§ USB_INTEP_HOST_IN_15

#define USB_INTEP_HOST_IN_15   0x80000000

§ USB_INTEP_HOST_IN_14

#define USB_INTEP_HOST_IN_14   0x40000000

§ USB_INTEP_HOST_IN_13

#define USB_INTEP_HOST_IN_13   0x20000000

§ USB_INTEP_HOST_IN_12

#define USB_INTEP_HOST_IN_12   0x10000000

§ USB_INTEP_HOST_IN_11

#define USB_INTEP_HOST_IN_11   0x08000000

§ USB_INTEP_HOST_IN_10

#define USB_INTEP_HOST_IN_10   0x04000000

§ USB_INTEP_HOST_IN_9

#define USB_INTEP_HOST_IN_9   0x02000000

§ USB_INTEP_HOST_IN_8

#define USB_INTEP_HOST_IN_8   0x01000000

§ USB_INTEP_HOST_IN_7

#define USB_INTEP_HOST_IN_7   0x00800000

§ USB_INTEP_HOST_IN_6

#define USB_INTEP_HOST_IN_6   0x00400000

§ USB_INTEP_HOST_IN_5

#define USB_INTEP_HOST_IN_5   0x00200000

§ USB_INTEP_HOST_IN_4

#define USB_INTEP_HOST_IN_4   0x00100000

§ USB_INTEP_HOST_IN_3

#define USB_INTEP_HOST_IN_3   0x00080000

§ USB_INTEP_HOST_IN_2

#define USB_INTEP_HOST_IN_2   0x00040000

§ USB_INTEP_HOST_IN_1

#define USB_INTEP_HOST_IN_1   0x00020000

§ USB_INTEP_DEV_OUT

#define USB_INTEP_DEV_OUT   0xFFFE0000

§ USB_INTEP_DEV_OUT_15

#define USB_INTEP_DEV_OUT_15   0x80000000

§ USB_INTEP_DEV_OUT_14

#define USB_INTEP_DEV_OUT_14   0x40000000

§ USB_INTEP_DEV_OUT_13

#define USB_INTEP_DEV_OUT_13   0x20000000

§ USB_INTEP_DEV_OUT_12

#define USB_INTEP_DEV_OUT_12   0x10000000

§ USB_INTEP_DEV_OUT_11

#define USB_INTEP_DEV_OUT_11   0x08000000

§ USB_INTEP_DEV_OUT_10

#define USB_INTEP_DEV_OUT_10   0x04000000

§ USB_INTEP_DEV_OUT_9

#define USB_INTEP_DEV_OUT_9   0x02000000

§ USB_INTEP_DEV_OUT_8

#define USB_INTEP_DEV_OUT_8   0x01000000

§ USB_INTEP_DEV_OUT_7

#define USB_INTEP_DEV_OUT_7   0x00800000

§ USB_INTEP_DEV_OUT_6

#define USB_INTEP_DEV_OUT_6   0x00400000

§ USB_INTEP_DEV_OUT_5

#define USB_INTEP_DEV_OUT_5   0x00200000

§ USB_INTEP_DEV_OUT_4

#define USB_INTEP_DEV_OUT_4   0x00100000

§ USB_INTEP_DEV_OUT_3

#define USB_INTEP_DEV_OUT_3   0x00080000

§ USB_INTEP_DEV_OUT_2

#define USB_INTEP_DEV_OUT_2   0x00040000

§ USB_INTEP_DEV_OUT_1

#define USB_INTEP_DEV_OUT_1   0x00020000

§ USB_INTEP_HOST_OUT

#define USB_INTEP_HOST_OUT   0x0000FFFE

§ USB_INTEP_HOST_OUT_15

#define USB_INTEP_HOST_OUT_15   0x00008000

§ USB_INTEP_HOST_OUT_14

#define USB_INTEP_HOST_OUT_14   0x00004000

§ USB_INTEP_HOST_OUT_13

#define USB_INTEP_HOST_OUT_13   0x00002000

§ USB_INTEP_HOST_OUT_12

#define USB_INTEP_HOST_OUT_12   0x00001000

§ USB_INTEP_HOST_OUT_11

#define USB_INTEP_HOST_OUT_11   0x00000800

§ USB_INTEP_HOST_OUT_10

#define USB_INTEP_HOST_OUT_10   0x00000400

§ USB_INTEP_HOST_OUT_9

#define USB_INTEP_HOST_OUT_9   0x00000200

§ USB_INTEP_HOST_OUT_8

#define USB_INTEP_HOST_OUT_8   0x00000100

§ USB_INTEP_HOST_OUT_7

#define USB_INTEP_HOST_OUT_7   0x00000080

§ USB_INTEP_HOST_OUT_6

#define USB_INTEP_HOST_OUT_6   0x00000040

§ USB_INTEP_HOST_OUT_5

#define USB_INTEP_HOST_OUT_5   0x00000020

§ USB_INTEP_HOST_OUT_4

#define USB_INTEP_HOST_OUT_4   0x00000010

§ USB_INTEP_HOST_OUT_3

#define USB_INTEP_HOST_OUT_3   0x00000008

§ USB_INTEP_HOST_OUT_2

#define USB_INTEP_HOST_OUT_2   0x00000004

§ USB_INTEP_HOST_OUT_1

#define USB_INTEP_HOST_OUT_1   0x00000002

§ USB_INTEP_DEV_IN

#define USB_INTEP_DEV_IN   0x0000FFFE

§ USB_INTEP_DEV_IN_15

#define USB_INTEP_DEV_IN_15   0x00008000

§ USB_INTEP_DEV_IN_14

#define USB_INTEP_DEV_IN_14   0x00004000

§ USB_INTEP_DEV_IN_13

#define USB_INTEP_DEV_IN_13   0x00002000

§ USB_INTEP_DEV_IN_12

#define USB_INTEP_DEV_IN_12   0x00001000

§ USB_INTEP_DEV_IN_11

#define USB_INTEP_DEV_IN_11   0x00000800

§ USB_INTEP_DEV_IN_10

#define USB_INTEP_DEV_IN_10   0x00000400

§ USB_INTEP_DEV_IN_9

#define USB_INTEP_DEV_IN_9   0x00000200

§ USB_INTEP_DEV_IN_8

#define USB_INTEP_DEV_IN_8   0x00000100

§ USB_INTEP_DEV_IN_7

#define USB_INTEP_DEV_IN_7   0x00000080

§ USB_INTEP_DEV_IN_6

#define USB_INTEP_DEV_IN_6   0x00000040

§ USB_INTEP_DEV_IN_5

#define USB_INTEP_DEV_IN_5   0x00000020

§ USB_INTEP_DEV_IN_4

#define USB_INTEP_DEV_IN_4   0x00000010

§ USB_INTEP_DEV_IN_3

#define USB_INTEP_DEV_IN_3   0x00000008

§ USB_INTEP_DEV_IN_2

#define USB_INTEP_DEV_IN_2   0x00000004

§ USB_INTEP_DEV_IN_1

#define USB_INTEP_DEV_IN_1   0x00000002

§ USB_INTEP_0

#define USB_INTEP_0   0x00000001

§ USB_UNDEF_SPEED

#define USB_UNDEF_SPEED   0x80000000

Referenced by USBHostSpeedGet().

§ USB_HIGH_SPEED

#define USB_HIGH_SPEED   0x00000002

Referenced by USBDevSpeedGet(), and USBHostSpeedGet().

§ USB_FULL_SPEED

#define USB_FULL_SPEED   0x00000001

Referenced by USBDevSpeedGet(), and USBHostSpeedGet().

§ USB_LOW_SPEED

#define USB_LOW_SPEED   0x00000000

Referenced by USBHostSpeedGet().

§ USB_HOST_IN_STATUS

#define USB_HOST_IN_STATUS   0x114F0000

§ USB_HOST_IN_PID_ERROR

#define USB_HOST_IN_PID_ERROR   0x10000000

§ USB_HOST_IN_NOT_COMP

#define USB_HOST_IN_NOT_COMP   0x01000000

§ USB_HOST_IN_STALL

#define USB_HOST_IN_STALL   0x00400000

§ USB_HOST_IN_DATA_ERROR

#define USB_HOST_IN_DATA_ERROR   0x00080000

§ USB_HOST_IN_NAK_TO

#define USB_HOST_IN_NAK_TO   0x00080000

§ USB_HOST_IN_ERROR

#define USB_HOST_IN_ERROR   0x00040000

§ USB_HOST_IN_FIFO_FULL

#define USB_HOST_IN_FIFO_FULL   0x00020000

§ USB_HOST_IN_PKTRDY

#define USB_HOST_IN_PKTRDY   0x00010000

§ USB_HOST_OUT_STATUS

#define USB_HOST_OUT_STATUS   0x000000A7

§ USB_HOST_OUT_NAK_TO

#define USB_HOST_OUT_NAK_TO   0x00000080

§ USB_HOST_OUT_NOT_COMP

#define USB_HOST_OUT_NOT_COMP   0x00000080

§ USB_HOST_OUT_STALL

#define USB_HOST_OUT_STALL   0x00000020

§ USB_HOST_OUT_ERROR

#define USB_HOST_OUT_ERROR   0x00000004

§ USB_HOST_OUT_FIFO_NE

#define USB_HOST_OUT_FIFO_NE   0x00000002

§ USB_HOST_OUT_PKTPEND

#define USB_HOST_OUT_PKTPEND   0x00000001

§ USB_HOST_EP0_NAK_TO

#define USB_HOST_EP0_NAK_TO   0x00000080

§ USB_HOST_EP0_STATUS

#define USB_HOST_EP0_STATUS   0x00000040

§ USB_HOST_EP0_ERROR

#define USB_HOST_EP0_ERROR   0x00000010

§ USB_HOST_EP0_RX_STALL

#define USB_HOST_EP0_RX_STALL   0x00000004

§ USB_HOST_EP0_RXPKTRDY

#define USB_HOST_EP0_RXPKTRDY   0x00000001

§ USB_DEV_RX_PID_ERROR

#define USB_DEV_RX_PID_ERROR   0x01000000

§ USB_DEV_RX_SENT_STALL

#define USB_DEV_RX_SENT_STALL   0x00400000

§ USB_DEV_RX_DATA_ERROR

#define USB_DEV_RX_DATA_ERROR   0x00080000

§ USB_DEV_RX_OVERRUN

#define USB_DEV_RX_OVERRUN   0x00040000

§ USB_DEV_RX_FIFO_FULL

#define USB_DEV_RX_FIFO_FULL   0x00020000

§ USB_DEV_RX_PKT_RDY

#define USB_DEV_RX_PKT_RDY   0x00010000

§ USB_DEV_TX_NOT_COMP

#define USB_DEV_TX_NOT_COMP   0x00000080

§ USB_DEV_TX_SENT_STALL

#define USB_DEV_TX_SENT_STALL   0x00000020

§ USB_DEV_TX_UNDERRUN

#define USB_DEV_TX_UNDERRUN   0x00000004

§ USB_DEV_TX_FIFO_NE

#define USB_DEV_TX_FIFO_NE   0x00000002

§ USB_DEV_TX_TXPKTRDY

#define USB_DEV_TX_TXPKTRDY   0x00000001

§ USB_DEV_EP0_SETUP_END

#define USB_DEV_EP0_SETUP_END   0x00000010

§ USB_DEV_EP0_SENT_STALL

#define USB_DEV_EP0_SENT_STALL   0x00000004

§ USB_DEV_EP0_IN_PKTPEND

#define USB_DEV_EP0_IN_PKTPEND   0x00000002

§ USB_DEV_EP0_OUT_PKTRDY

#define USB_DEV_EP0_OUT_PKTRDY   0x00000001

§ USB_EP_AUTO_SET

#define USB_EP_AUTO_SET   0x00000001

§ USB_EP_AUTO_REQUEST

#define USB_EP_AUTO_REQUEST   0x00000002

§ USB_EP_AUTO_CLEAR

#define USB_EP_AUTO_CLEAR   0x00000004

§ USB_EP_DMA_MODE_0

#define USB_EP_DMA_MODE_0   0x00000008

§ USB_EP_DMA_MODE_1

#define USB_EP_DMA_MODE_1   0x00000010

§ USB_EP_DIS_NYET

#define USB_EP_DIS_NYET   0x00000020

Referenced by USBDevEndpointConfigSet().

§ USB_EP_MODE_ISOC

#define USB_EP_MODE_ISOC   0x00000000

§ USB_EP_MODE_BULK

#define USB_EP_MODE_BULK   0x00000100

§ USB_EP_MODE_INT

#define USB_EP_MODE_INT   0x00000200

Referenced by USBHostEndpointConfig().

§ USB_EP_MODE_CTRL

#define USB_EP_MODE_CTRL   0x00000300

Referenced by USBHostEndpointConfig().

§ USB_EP_MODE_MASK

#define USB_EP_MODE_MASK   0x00000300

§ USB_EP_SPEED_LOW

#define USB_EP_SPEED_LOW   0x00000000

§ USB_EP_SPEED_FULL

#define USB_EP_SPEED_FULL   0x00001000

§ USB_EP_SPEED_HIGH

#define USB_EP_SPEED_HIGH   0x00004000

§ USB_EP_HOST_IN

#define USB_EP_HOST_IN   0x00000000

§ USB_EP_HOST_OUT

#define USB_EP_HOST_OUT   0x00002000

§ USB_EP_DEV_IN

#define USB_EP_DEV_IN   0x00002000

§ USB_EP_DEV_OUT

#define USB_EP_DEV_OUT   0x00000000

§ USB_HOST_PWRFLT_LOW

#define USB_HOST_PWRFLT_LOW   0x00000010

§ USB_HOST_PWRFLT_HIGH

#define USB_HOST_PWRFLT_HIGH   0x00000030

§ USB_HOST_PWRFLT_EP_NONE

#define USB_HOST_PWRFLT_EP_NONE   0x00000000

§ USB_HOST_PWRFLT_EP_TRI

#define USB_HOST_PWRFLT_EP_TRI   0x00000140

§ USB_HOST_PWRFLT_EP_LOW

#define USB_HOST_PWRFLT_EP_LOW   0x00000240

§ USB_HOST_PWRFLT_EP_HIGH

#define USB_HOST_PWRFLT_EP_HIGH   0x00000340

§ USB_HOST_PWREN_MAN_LOW

#define USB_HOST_PWREN_MAN_LOW   0x00000000

§ USB_HOST_PWREN_MAN_HIGH

#define USB_HOST_PWREN_MAN_HIGH   0x00000001

§ USB_HOST_PWREN_AUTOLOW

#define USB_HOST_PWREN_AUTOLOW   0x00000002

§ USB_HOST_PWREN_AUTOHIGH

#define USB_HOST_PWREN_AUTOHIGH   0x00000003

§ USB_HOST_PWREN_FILTER

#define USB_HOST_PWREN_FILTER   0x00010000

Referenced by USBHostPwrConfig().

§ USB_HOST_LPM_RMTWAKE

#define USB_HOST_LPM_RMTWAKE   0x00000100

§ USB_HOST_LPM_L1

#define USB_HOST_LPM_L1   0x00000001

§ USB_DEV_LPM_NAK

#define USB_DEV_LPM_NAK   0x00000010

§ USB_DEV_LPM_NONE

#define USB_DEV_LPM_NONE   0x00000000

§ USB_DEV_LPM_EN

#define USB_DEV_LPM_EN   0x0000000c

§ USB_DEV_LPM_EXTONLY

#define USB_DEV_LPM_EXTONLY   0x00000004

§ USB_DEV_LPM_LS_RMTWAKE

#define USB_DEV_LPM_LS_RMTWAKE   0x00000100

§ USB_DEV_LPM_LS_L1

#define USB_DEV_LPM_LS_L1   0x00000001

§ USB_INTLPM_ERROR

#define USB_INTLPM_ERROR   0x00000020

§ USB_INTLPM_RESUME

#define USB_INTLPM_RESUME   0x00000010

§ USB_INTLPM_INCOMPLETE

#define USB_INTLPM_INCOMPLETE   0x00000008

§ USB_INTLPM_ACK

#define USB_INTLPM_ACK   0x00000004

§ USB_INTLPM_NYET

#define USB_INTLPM_NYET   0x00000002

§ USB_INTLPM_STALL

#define USB_INTLPM_STALL   0x00000001

§ USB_CLOCK_INTERNAL

#define USB_CLOCK_INTERNAL   0x00000200

§ USB_CLOCK_EXTERNAL

#define USB_CLOCK_EXTERNAL   0x00000300

§ USB_ULPI_EXTVBUS

#define USB_ULPI_EXTVBUS   0x00000001

§ USB_ULPI_EXTVBUS_IND

#define USB_ULPI_EXTVBUS_IND   0x00000002

§ MAX_NAK_LIMIT

#define MAX_NAK_LIMIT   31

Referenced by USBHostEndpointConfig().

§ DISABLE_NAK_LIMIT

#define DISABLE_NAK_LIMIT   0

§ MAX_PACKET_SIZE_EP0

#define MAX_PACKET_SIZE_EP0   64

§ USB_EP_0

#define USB_EP_0   0x00000000

§ USB_EP_1

#define USB_EP_1   0x00000010

§ USB_EP_2

#define USB_EP_2   0x00000020

§ USB_EP_3

#define USB_EP_3   0x00000030

§ USB_EP_4

#define USB_EP_4   0x00000040

§ USB_EP_5

#define USB_EP_5   0x00000050

§ USB_EP_6

#define USB_EP_6   0x00000060

§ USB_EP_7

#define USB_EP_7   0x00000070

§ NUM_USB_EP

#define NUM_USB_EP   8

§ IndexToUSBEP

#define IndexToUSBEP (   x)    ((x) << 4)

Referenced by USBLPMEndpointGet().

§ USBEPToIndex

#define USBEPToIndex (   x)    ((x) >> 4)

§ USB_FIFO_SZ_8

#define USB_FIFO_SZ_8   0x00000000

§ USB_FIFO_SZ_16

#define USB_FIFO_SZ_16   0x00000001

§ USB_FIFO_SZ_32

#define USB_FIFO_SZ_32   0x00000002

§ USB_FIFO_SZ_64

#define USB_FIFO_SZ_64   0x00000003

§ USB_FIFO_SZ_128

#define USB_FIFO_SZ_128   0x00000004

§ USB_FIFO_SZ_256

#define USB_FIFO_SZ_256   0x00000005

§ USB_FIFO_SZ_512

#define USB_FIFO_SZ_512   0x00000006

§ USB_FIFO_SZ_1024

#define USB_FIFO_SZ_1024   0x00000007

§ USB_FIFO_SZ_2048

#define USB_FIFO_SZ_2048   0x00000008

§ USBFIFOSizeToBytes

#define USBFIFOSizeToBytes (   x)    (8 << (x))

§ USB_TRANS_OUT

#define USB_TRANS_OUT   0x00000102

§ USB_TRANS_IN

#define USB_TRANS_IN   0x00000102

§ USB_TRANS_IN_LAST

#define USB_TRANS_IN_LAST   0x0000010a

§ USB_TRANS_SETUP

#define USB_TRANS_SETUP   0x0000110a

§ USB_TRANS_STATUS

#define USB_TRANS_STATUS   0x00000142

§ USB_DUAL_MODE_HOST

#define USB_DUAL_MODE_HOST   0x00000001

§ USB_DUAL_MODE_DEVICE

#define USB_DUAL_MODE_DEVICE   0x00000081

§ USB_DUAL_MODE_NONE

#define USB_DUAL_MODE_NONE   0x00000080

§ USB_OTG_MODE_ASIDE_HOST

#define USB_OTG_MODE_ASIDE_HOST   0x0000001d

§ USB_OTG_MODE_ASIDE_NPWR

#define USB_OTG_MODE_ASIDE_NPWR   0x00000001

§ USB_OTG_MODE_ASIDE_SESS

#define USB_OTG_MODE_ASIDE_SESS   0x00000009

§ USB_OTG_MODE_ASIDE_AVAL

#define USB_OTG_MODE_ASIDE_AVAL   0x00000011

§ USB_OTG_MODE_ASIDE_DEV

#define USB_OTG_MODE_ASIDE_DEV   0x00000019

§ USB_OTG_MODE_BSIDE_HOST

#define USB_OTG_MODE_BSIDE_HOST   0x0000009d

§ USB_OTG_MODE_BSIDE_DEV

#define USB_OTG_MODE_BSIDE_DEV   0x00000099

§ USB_OTG_MODE_BSIDE_NPWR

#define USB_OTG_MODE_BSIDE_NPWR   0x00000081

§ USB_OTG_MODE_NONE

#define USB_OTG_MODE_NONE   0x00000080

§ USB_DMA_INT_CH8

#define USB_DMA_INT_CH8   0x00000080

§ USB_DMA_INT_CH7

#define USB_DMA_INT_CH7   0x00000040

§ USB_DMA_INT_CH6

#define USB_DMA_INT_CH6   0x00000020

§ USB_DMA_INT_CH5

#define USB_DMA_INT_CH5   0x00000010

§ USB_DMA_INT_CH4

#define USB_DMA_INT_CH4   0x00000008

§ USB_DMA_INT_CH3

#define USB_DMA_INT_CH3   0x00000004

§ USB_DMA_INT_CH2

#define USB_DMA_INT_CH2   0x00000002

§ USB_DMA_INT_CH1

#define USB_DMA_INT_CH1   0x00000001

§ USB_DMA_STATUS_ERROR

#define USB_DMA_STATUS_ERROR   0x00000100

§ USB_DMA_CFG_BURST_NONE

#define USB_DMA_CFG_BURST_NONE   0x00000000

§ USB_DMA_CFG_BURST_4

#define USB_DMA_CFG_BURST_4   0x00000200

§ USB_DMA_CFG_BURST_8

#define USB_DMA_CFG_BURST_8   0x00000400

§ USB_DMA_CFG_BURST_16

#define USB_DMA_CFG_BURST_16   0x00000600

§ USB_DMA_CFG_INT_EN

#define USB_DMA_CFG_INT_EN   0x00000008

§ USB_DMA_CFG_MODE_0

#define USB_DMA_CFG_MODE_0   0x00000000

§ USB_DMA_CFG_MODE_1

#define USB_DMA_CFG_MODE_1   0x00000004

§ USB_DMA_CFG_DIR_RX

#define USB_DMA_CFG_DIR_RX   0x00000000

§ USB_DMA_CFG_DIR_TX

#define USB_DMA_CFG_DIR_TX   0x00000002

§ USB_DMA_CFG_EN

#define USB_DMA_CFG_EN   0x00000001

§ USB_MODE_HOST_VBUS

#define USB_MODE_HOST_VBUS   0x00000004

§ USB_MODE_HOST

#define USB_MODE_HOST   0x00000002

§ USB_MODE_DEV_VBUS

#define USB_MODE_DEV_VBUS   0x00000005

§ USB_MODE_DEV

#define USB_MODE_DEV   0x00000003

§ USB_MODE_OTG

#define USB_MODE_OTG   0x00000000

Function Documentation

§ USBDMAChannelAssign()

void USBDMAChannelAssign ( uint32_t  ui32Base,
uint32_t  ui32Endpoint,
uint32_t  ui32Channel,
uint32_t  ui32Flags 
)
Copyright 2017, Texas Instruments Incorporated