USBLibAPIGuide  1.00.00.01
Data Structures | Macros | Typedefs | Functions | Variables
usbhost.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  tUSBHostClassDriver
 

Macros

#define USBHCD_PIPE_UNUSED   0x00100000
 
#define USBHCD_PIPE_CONTROL   0x00130000
 
#define USBHCD_PIPE_BULK_OUT   0x00210000
 
#define USBHCD_PIPE_BULK_IN   0x00220000
 
#define USBHCD_PIPE_INTR_OUT   0x00410000
 
#define USBHCD_PIPE_INTR_IN   0x00420000
 
#define USBHCD_PIPE_ISOC_OUT   0x00810000
 
#define USBHCD_PIPE_ISOC_IN   0x00820000
 
#define USBHCD_PIPE_ISOC_OUT_DMA   0x01810000
 
#define USBHCD_PIPE_ISOC_IN_DMA   0x01820000
 
#define USBHCD_PIPE_BULK_OUT_DMA   0x01210000
 
#define USBHCD_PIPE_BULK_IN_DMA   0x01220000
 
#define USBHCD_FAULT_LOW   0x00000010
 
#define USBHCD_FAULT_HIGH   0x00000030
 
#define USBHCD_FAULT_VBUS_NONE   0x00000000
 
#define USBHCD_FAULT_VBUS_TRI   0x00000140
 
#define USBHCD_FAULT_VBUS_DIS   0x00000400
 
#define USBHCD_VBUS_MANUAL   0x00000004
 
#define USBHCD_VBUS_AUTO_LOW   0x00000002
 
#define USBHCD_VBUS_AUTO_HIGH   0x00000003
 
#define USBHCD_VBUS_FILTER   0x00010000
 
#define USBHCD_LPM_AVAIL   0x00000000
 
#define USBHCD_LPM_ERROR   0x00000001
 
#define USBHCD_LPM_PENDING   0x00000002
 
#define DECLARE_EVENT_DRIVER(VarName, pfnOpen, pfnClose, pfnEvent)
 

Typedefs

typedef void(* tHCDPipeCallback) (uint32_t ui32Pipe, uint32_t ui32Event)
 
typedef struct tUSBHostDevice tUSBHostDevice
 

Functions

void USBHCDEvents (void *pvData)
 
void USBHCDMain (void)
 
int32_t USBHCDEventEnable (uint32_t ui32Index, void *pvEventDriver, uint32_t ui32Event)
 
int32_t USBHCDEventDisable (uint32_t ui32Index, void *pvEventDriver, uint32_t ui32Event)
 
void USBHCDInit (uint32_t ui32Index, void *pvData, uint32_t ui32Size)
 
void USBHCDPowerConfigInit (uint32_t ui32Index, uint32_t ui32Flags)
 
uint32_t USBHCDPowerConfigGet (uint32_t ui32Index)
 
uint32_t USBHCDPowerConfigSet (uint32_t ui32Index, uint32_t ui32Config)
 
uint32_t USBHCDPowerAutomatic (uint32_t ui32Index)
 
void USBHCDRegisterDrivers (uint32_t ui32Index, const tUSBHostClassDriver *const *ppsHClassDrvrs, uint32_t ui32NumDrivers)
 
void USBHCDTerm (uint32_t ui32Index)
 
void USBHCDSetConfig (uint32_t ui32Index, uint32_t ui32Device, uint32_t ui32Configuration)
 
void USBHCDSetInterface (uint32_t ui32Index, uint32_t ui32Device, uint32_t ui32Interface, uint32_t ui32AltSetting)
 
void USBHCDSuspend (uint32_t ui32Index)
 
void USBHCDResume (uint32_t ui32Index)
 
void USBHCDReset (uint32_t ui32Index)
 
void USBHCDPipeFree (uint32_t ui32Pipe)
 
uint32_t USBHCDPipeAlloc (uint32_t ui32Index, uint32_t ui32EndpointType, tUSBHostDevice *psDevice, tHCDPipeCallback pfnCallback)
 
uint32_t USBHCDPipeAllocSize (uint32_t ui32Index, uint32_t ui32EndpointType, tUSBHostDevice *psDevice, uint32_t ui32FIFOSize, tHCDPipeCallback pfnCallback)
 
uint32_t USBHCDPipeConfig (uint32_t ui32Pipe, uint32_t ui32MaxPayload, uint32_t ui32Interval, uint32_t ui32TargetEndpoint)
 
uint32_t USBHCDPipeStatus (uint32_t ui32Pipe)
 
uint32_t USBHCDPipeWrite (uint32_t ui32Pipe, uint8_t *pui8Data, uint32_t ui32Size)
 
uint32_t USBHCDPipeRead (uint32_t ui32Pipe, uint8_t *pui8Data, uint32_t ui32Size)
 
uint32_t USBHCDPipeSchedule (uint32_t ui32Pipe, uint8_t *pui8Data, uint32_t ui32Size)
 
uint32_t USBHCDPipeTransferSizeGet (uint32_t ui32Pipe)
 
void USBHCDPipeDataAck (uint32_t ui32Pipe)
 
uint32_t USBHCDPipeReadNonBlocking (uint32_t ui32Pipe, uint8_t *pui8Data, uint32_t ui32Size)
 
uint32_t USBHCDStringDescriptorGet (tUSBHostDevice *psDevice, uint8_t *pui8Buffer, uint32_t ui32Size, uint32_t ui32LangID, uint32_t ui32StringIndex)
 
uint32_t USBHCDControlTransfer (uint32_t ui32Index, tUSBRequest *psSetupPacket, tUSBHostDevice *psDevice, uint8_t *pui8Data, uint32_t ui32Size, uint32_t ui32MaxPacketSize)
 
void USB0_IRQHostHandler (void)
 
uint8_t USBHCDDevHubPort (uint32_t ui32Instance)
 
uint8_t USBHCDDevAddress (uint32_t ui32Instance)
 
uint8_t USBHCDDevClass (uint32_t ui32Instance, uint32_t ui32Interface)
 
uint8_t USBHCDDevSubClass (uint32_t ui32Instance, uint32_t ui32Interface)
 
uint8_t USBHCDDevProtocol (uint32_t ui32Instance, uint32_t ui32Interface)
 
bool USBHCDFeatureSet (uint32_t ui32Index, uint32_t ui32Feature, void *pvFeature)
 
uint32_t USBHCDLPMSleep (tUSBHostDevice *psDevice)
 
void USBHCDLPMResume (uint32_t ui32Index)
 

Variables

const tUSBHostClassDriver g_sUSBHostMSCClassDriver
 
const tUSBHostClassDriver g_sUSBHIDClassDriver
 
const tUSBHostClassDriver g_sUSBHostAudioClassDriver
 

Function Documentation

§ USBHCDEvents()

void USBHCDEvents ( void *  pvData)
© Copyright 1995-2020, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale