USBLibAPIGuide  1.00.00.01
Macros | Enumerations | Functions | Variables
usbhostenum.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include "ti/devices/msp432e4/driverlib/driverlib.h"
#include "ti/devices/msp432e4/driverlib/rtos_bindings.h"
#include "ti/usblib/msp432e4/usblib.h"
#include "ti/usblib/msp432e4/usblibpriv.h"
#include "ti/usblib/msp432e4/usbulpi.h"
#include "usbhost.h"
#include "usbhostpriv.h"
#include "usbhhub.h"
Include dependency graph for usbhostenum.c:

Macros

#define DEBUG_OUTPUT   while(0)((int32_t (*)(char *, ...))0)
 
#define USB_HOST_PWREN_AUTO   0x00000002
 
#define INT_EVENT_VBUS_ERR   0x01
 
#define INT_EVENT_CONNECT   0x02
 
#define INT_EVENT_DISCONNECT   0x04
 
#define INT_EVENT_POWER_FAULT   0x08
 
#define INT_EVENT_SOF   0x10
 
#define INT_EVENT_ENUM   0x20
 
#define INT_EVENT_LPM_PEND   0x40
 
#define INT_EVENT_LPM   0x80
 
#define USBHDEV_FLAG_NOTIFYINT   0x00000001
 
#define USBHDEV_FLAG_LPMPEND   0x00000002
 
#define USBHDEV_FLAG_LPMERROR   0x00000004
 
#define USBHDEV_FLAG_ALLOCATED   0x80000000
 
#define MAX_NUM_PIPES   15
 
#define MAX_NUM_DMA_CHANNELS   6
 
#define USBHCD_DMA_UNUSED   0xff
 
#define EP_PIPE_TYPE_LOW_SPEED   0x02000000
 
#define EP_PIPE_USE_UDMA   0x01000000
 
#define EP_PIPE_TYPE_ISOC   0x00800000
 
#define EP_PIPE_TYPE_INTR   0x00400000
 
#define EP_PIPE_TYPE_BULK   0x00200000
 
#define EP_PIPE_TYPE_CONTROL   0x00100000
 
#define EP_PIPE_TYPE_IN   0x00020000
 
#define EP_PIPE_TYPE_OUT   0x00010000
 
#define EP_PIPE_IDX_M   0x0000ffff
 
#define OUT_PIPE_HANDLE(ui32Idx)
 
#define IN_PIPE_HANDLE(ui32Idx)
 
#define EP_OFFSET(Endpoint)   (Endpoint - 0x10)
 

Enumerations

enum  tEP0State {
  eUSBStateIdle, eUSBStateTx, eUSBStateTxConfig, eUSBStateRx,
  eUSBStateStatus, eUSBStateStall, eEP0StateIdle, eEP0StateSetupIN,
  eEP0StateSetupOUT, eEP0StateRx, eEP0StateStatus, eEP0StateStatusIN,
  eEP0StateStall, eEP0StateError
}
 
enum  tUSBHDeviceState {
  eHCDDevDisconnected, eHCDDevConnected, eHCDDevConnectedHub, eHCDDevRequest,
  eHCDDevReset, eHCDDevAddressed, eHCDDevConfigured, eHCDDevGetStrings,
  eHCDDevError, eHCDVBUSError, eHCDPowerFault, eHCDIdle
}
 

Functions

void OTGDeviceDisconnect (uint32_t ui32Index)
 
uint32_t ConfigDescAlloc (tUSBHostDevice *psDevice, uint32_t ui32Size)
 
void ConfigDescFree (tUSBHostDevice *psDevice)
 
int32_t USBHCDEventEnable (uint32_t ui32Index, void *pvEventDriver, uint32_t ui32Event)
 
int32_t USBHCDEventDisable (uint32_t ui32Index, void *pvEventDriver, uint32_t ui32Event)
 
uint32_t USBHCDPipeTransferSizeGet (uint32_t ui32Pipe)
 
uint32_t USBHCDPipeAllocSize (uint32_t ui32Index, uint32_t ui32EndpointType, tUSBHostDevice *psDevice, uint32_t ui32Size, tHCDPipeCallback pfnCallback)
 
uint32_t USBHCDPipeAlloc (uint32_t ui32Index, uint32_t ui32EndpointType, tUSBHostDevice *psDevice, 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 USBHCDPipeSchedule (uint32_t ui32Pipe, uint8_t *pui8Data, uint32_t ui32Size)
 
uint32_t USBHCDPipeReadNonBlocking (uint32_t ui32Pipe, uint8_t *pui8Data, uint32_t ui32Size)
 
void USBHCDPipeDataAck (uint32_t ui32Pipe)
 
uint32_t USBHCDPipeRead (uint32_t ui32Pipe, uint8_t *pui8Data, uint32_t ui32Size)
 
void USBHCDPipeFree (uint32_t ui32Pipe)
 
void USBHCDPowerConfigInit (uint32_t ui32Index, uint32_t ui32PwrConfig)
 
uint32_t USBHCDPowerConfigGet (uint32_t ui32Index)
 
uint32_t USBHCDPowerConfigSet (uint32_t ui32Index, uint32_t ui32Config)
 
uint32_t USBHCDPowerAutomatic (uint32_t ui32Index)
 
void USBHCDInit (uint32_t ui32Index, void *pvPool, uint32_t ui32PoolSize)
 
void USBHCDRegisterDrivers (uint32_t ui32Index, const tUSBHostClassDriver *const *ppsHClassDrvs, uint32_t ui32NumDrivers)
 
void USBHCDTerm (uint32_t ui32Index)
 
void USBHCDReset (uint32_t ui32Index)
 
void USBHCDSuspend (uint32_t ui32Index)
 
void USBHCDResume (uint32_t ui32Index)
 
uint32_t USBHCDStringDescriptorGet (tUSBHostDevice *psDevice, uint8_t *pui8Buffer, uint32_t ui32Size, uint32_t ui32LangID, uint32_t ui32StringIndex)
 
void USBHCDSetAddress (uint32_t ui32DevIndex, uint32_t ui32DevAddress)
 
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 USBHostCheckPipes (void)
 
void USBHostIntHandlerInternal (uint32_t ui32Index, uint32_t ui32Status)
 
void USB0_IRQHostHandler (void)
 
void InternalUSBHCDSendEvent (uint32_t ui32Index, tEventInfo *psEvent, uint32_t ui32EvFlag)
 
void USBHCDMain (void)
 
uint32_t USBHCDControlTransfer (uint32_t ui32Index, tUSBRequest *psSetupPacket, tUSBHostDevice *psDevice, uint8_t *pui8Data, uint32_t ui32Size, uint32_t ui32MaxPacketSize)
 
uint32_t USBHCDHubDeviceConnected (uint32_t ui32Index, uint8_t ui8Hub, uint8_t ui8Port, uint32_t ui32Speed)
 
void USBHCDHubDeviceDisconnected (uint32_t ui32Index, uint32_t ui32DevIndex)
 
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 USBHCDLPMStatus (tUSBHostDevice *psDevice)
 
uint32_t USBHCDLPMSleep (tUSBHostDevice *psDevice)
 
void USBHCDLPMResume (uint32_t ui32Index)
 

Variables

tUSBMode g_iUSBMode
 

Macro Definition Documentation

§ DEBUG_OUTPUT

#define DEBUG_OUTPUT   while(0)((int32_t (*)(char *, ...))0)
© Copyright 1995-2020, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale