dwc_otg_pcd Struct Reference

DWC_otg PCD Structure. More...

#include <dwc_otg_pcd.h>


Data Fields

dwc_otg_pcd_function_opsfops
dwc_otg_core_if_tcore_if
 Core Interface.
ep0state_e ep0state
 State of EP0.
unsigned ep0_pending:1
 EP0 Request is pending.
unsigned request_config:1
 Indicates when SET CONFIGURATION Request is in process.
unsigned remote_wakeup_enable:1
 The state of the Remote Wakeup Enable.
unsigned b_hnp_enable:1
 The state of the B-Device HNP Enable.
unsigned a_hnp_support:1
 The state of A-Device HNP Support.
unsigned a_alt_hnp_support:1
 The state of the A-Device Alt HNP support.
unsigned request_pending
 Count of pending Requests.
union {
   usb_device_request_t   req
   uint32_t   d32 [2]
setup_pkt
 SETUP packet for EP0 This structure is allocated as a DMA buffer on PCD initialization with enough space for up to 3 setup packets.
dwc_dma_t setup_pkt_dma_handle
uint16_t * status_buf
 2-byte dma buffer used to return status from GET_STATUS
dwc_dma_t status_buf_dma_handle
dwc_otg_pcd_ep_t ep0
 EP0.
dwc_otg_pcd_ep_t in_ep [MAX_EPS_CHANNELS-1]
 Array of IN EPs.
dwc_otg_pcd_ep_t out_ep [MAX_EPS_CHANNELS-1]
 Array of OUT EPs.
dwc_spinlock_t * lock
 number of valid EPs in the above array.
dwc_timer_t * srp_timer
 Timer for SRP.
dwc_tasklet_t * test_mode_tasklet
 Tasklet to defer starting of TEST mode transmissions until Status Phase has been completed.
dwc_tasklet_t * start_xfer_tasklet
 Tasklet to delay starting of xfer in DMA mode.
unsigned test_mode
 The test mode to enter when the tasklet is executed.


Detailed Description

DWC_otg PCD Structure.

This structure encapsulates the data for the dwc_otg PCD.

Definition at line 137 of file dwc_otg_pcd.h.


Field Documentation

dwc_timer_t* dwc_otg_pcd::srp_timer

Timer for SRP.

If it expires before SRP is successful clear the SRP.

Definition at line 185 of file dwc_otg_pcd.h.


The documentation for this struct was generated from the following file:
Generated on Tue May 5 02:22:49 2009 for DesignWare USB 2.0 OTG Controller (DWC_otg) Device Driver by  doxygen 1.4.7