Data Structures | Macros | Typedefs | Functions | Variables
usblibpriv.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tUSBDMAInstance
 

Macros

#define MAX_USB_TICK_HANDLERS   6
 
#define USB_SOF_TICK_DIVIDE   5
 
#define InternalUSBGetTime()   g_ui32CurrentUSBTick
 
#define USBBaseToIndex(BaseAddr)   (0)
 
#define USBIndexToBase(Index)   (USB0_BASE)
 
#define USB_MAX_DMA_CHANNELS_0   6
 
#define USB_MAX_DMA_CHANNELS   8
 
#define USBLIBSTATUS_DMA_IDLE   0x00000000
 
#define USBLIBSTATUS_DMA_COMPLETE   0x00000001
 
#define USBLIBSTATUS_DMA_ERROR   0x00000002
 
#define USBLIBSTATUS_DMA_PENDING   0x00000004
 
#define USB_DMA_EP_RX   0x00000080
 
#define USB_DMA_EP_TX   0x00000000
 
#define USB_DMA_EP_HOST   0x00000040
 
#define USB_DMA_EP_DEVICE   0x00000000
 
#define USB_DMA_EP_TYPE_CTRL   0x00000000
 
#define USB_DMA_EP_TYPE_ISOC   0x00000001
 
#define USB_DMA_EP_TYPE_BULK   0x00000002
 
#define USB_DMA_EP_TYPE_INT   0x00000003
 
#define USB_DMA_EP_TYPE_M   0x00000003
 
#define USBLibDMAChannelStatus(psUSBDMAInst, ui32Channel)   psUSBDMAInst->pfnChannelStatus(psUSBDMAInst, ui32Channel)
 
#define USBLibDMAStatus(psUSBDMAInst)   psUSBDMAInst->pfnStatus(psUSBDMAInst)
 
#define USBLibDMAIntStatus(psUSBDMAInst)   psUSBDMAInst->pfnIntStatus(psUSBDMAInst)
 
#define USBLibDMAIntStatusClear(psUSBDMAInst, ui32Status)   psUSBDMAInst->pfnIntStatusClear(psUSBDMAInst, ui32Status)
 
#define USBLibDMAChannelEnable(psUSBDMAInst, ui32Channel)   psUSBDMAInst->pfnChannelEnable(psUSBDMAInst, ui32Channel)
 
#define USBLibDMAChannelDisable(psUSBDMAInst, ui32Channel)   psUSBDMAInst->pfnChannelDisable(psUSBDMAInst, ui32Channel)
 
#define USBLibDMATransfer(psUSBDMAInst, ui32Channel, pvBuffer, ui32Size)
 
#define USBLibDMAIntHandler(psUSBDMAInst, ui32Status)   psUSBDMAInst->pfnIntHandler(psUSBDMAInst, ui32Status)
 
#define USBLibDMAChannelAllocate(psUSBDMAInst, ui8Endpoint, ui32MaxPacketSize, ui32Config)
 
#define USBLibDMAChannelRelease(psUSBDMAInst, ui8Endpoint)   psUSBDMAInst->pfnChannelRelease(psUSBDMAInst, ui8Endpoint)
 
#define USBLibDMAUnitSizeSet(psUSBDMAInst, ui32Channel, ui32BitSize)
 
#define USBLibDMAArbSizeSet(psUSBDMAInst, ui32Channel, ui32ArbSize)
 
#define USBLibDMAChannelIntEnable(psUSBDMAInst, ui32Channel)   psUSBDMAInst->pfnChannelIntEnable(psUSBDMAInst, ui32Channel)
 
#define USBLibDMAChannelIntDisable(psUSBDMAInst, ui32Channel)   psUSBDMAInst->pfnChannelIntDisable(psUSBDMAInst, ui32Channel)
 

Typedefs

typedef void(* tUSBTickHandler) (void *pvInstance, uint32_t ui32TicksmS)
 

Functions

void USBDeviceIntHandlerInternal (uint32_t ui32Index, uint32_t ui32Status)
 
void USBHostIntHandlerInternal (uint32_t ui32Index, uint32_t ui32Status)
 
void InternalUSBTickInit (void)
 
void InternalUSBTickReset (void)
 
int32_t InternalUSBRegisterTickHandler (tUSBTickHandler pfnHandler, void *pvInstance)
 
void InternalUSBStartOfFrameTick (uint32_t ui32TicksmS)
 
void InternalUSBHCDSendEvent (uint32_t ui32Index, tEventInfo *psEvent, uint32_t ui32EvFlag)
 
tUSBDMAInstanceUSBLibDMAInit (uint32_t ui32Index)
 
void * USBLibDMAAddrGet (tUSBDMAInstance *psUSBDMAInst, uint32_t ui32Channel)
 
uint32_t USBLibDMASizeGet (tUSBDMAInstance *psUSBDMAInst, uint32_t ui32Channel)
 

Variables

uint32_t g_ui32CurrentUSBTick
 
uint32_t g_ui32USBSOFCount
 
Copyright 2018, Texas Instruments Incorporated