Typedefs | Enumerations | Functions
usb_xhci_hcd.c File Reference

Provides APIs for the USB xHCI module in host mode. This acts as the HAL layer that accesses the hardware. More...

#include "types.h"
#include "hw_types.h"
#include "string.h"
#include "error.h"
#include "usb_soc_defines.h"
#include "hw_usb.h"
#include "hw_dwc_usb.h"
#include "usb_hcd_xhci.h"
#include "UsbDefs.h"
#include "usblib.h"
#include "usbhost.h"
#include "usb_osal.h"
#include "usb_wrapper.h"

Typedefs

typedef enum controllerMode controllerMode_t
 Enumeration for different modes supported by a controller instance.
 

Enumerations

enum  controllerMode { CONTROLLER_MODE_HOST = 1U, CONTROLLER_MODE_DEVICE = 2U, CONTROLLER_MODE_DUAL_ROLE_DEVICE = 3U }
 Enumeration for different modes supported by a controller instance. More...
 

Functions

void USB_Host_Init (uint32_t instanceNumber)
 
void USBHCDTerm (uint32_t portIndex)
 
void USBHCDConfigureEndpoints (uint32_t ulIndex, tUSBHostDevice *pDevice, uint32_t *inPipe, uint32_t *outPipe)
 

Detailed Description

Provides APIs for the USB xHCI module in host mode. This acts as the HAL layer that accesses the hardware.

Enumeration Type Documentation

Enumeration for different modes supported by a controller instance.

Enumerator
CONTROLLER_MODE_HOST 

controller functions as a host only.

CONTROLLER_MODE_DEVICE 

controller functions as a device only.

CONTROLLER_MODE_DUAL_ROLE_DEVICE 

controller functions as both host and device.

Function Documentation

void USB_Host_Init ( uint32_t  instanceNumber)

Init clocks and power domain for USB host

Parameters
USBinstance number
Returns
None

Copyright 2016, Texas Instruments Incorporated