dwc_otg_dev_if Struct Reference

The dwc_otg_dev_if structure contains information needed to manage the DWC_otg controller acting in device mode. More...

#include <dwc_otg_regs.h>


Data Fields

dwc_otg_device_global_regs_tdev_global_regs
 Pointer to device Global registers.
dwc_otg_dev_in_ep_regs_tin_ep_regs [MAX_EPS_CHANNELS]
 Device Logical IN Endpoint-Specific Registers 900h-AFCh.
dwc_otg_dev_out_ep_regs_tout_ep_regs [MAX_EPS_CHANNELS]
 Device Logical OUT Endpoint-Specific Registers B00h-CFCh.
uint8_t speed
 Device Speed 0: Unknown, 1: LS, 2:FS, 3: HS.
uint8_t num_in_eps
 Number # of Tx EP range: 0-15 exept ep0.
uint8_t num_out_eps
 Number # of Rx EP range: 0-15 exept ep 0.
uint16_t perio_tx_fifo_size [MAX_PERIO_FIFOS]
 Size of periodic FIFOs (Bytes).
uint16_t tx_fifo_size [MAX_TX_FIFOS]
 Size of Tx FIFOs (Bytes).
uint16_t rx_thr_en
 Thresholding enable flags and length varaiables.
uint16_t iso_tx_thr_en
uint16_t non_iso_tx_thr_en
uint16_t rx_thr_length
uint16_t tx_thr_length
dwc_dma_t dma_setup_desc_addr [2]
 2 descriptors for SETUP packets
dwc_otg_dev_dma_desc_tsetup_desc_addr [2]
dwc_otg_dev_dma_desc_tpsetup
 Pointer to Descriptor with latest SETUP packet.
uint32_t setup_desc_index
 Index of current SETUP handler descriptor.
dwc_dma_t dma_in_desc_addr
 Descriptor for Data In or Status In phases.
dwc_otg_dev_dma_desc_tin_desc_addr
dwc_dma_t dma_out_desc_addr
 Descriptor for Data Out or Status Out phases.
dwc_otg_dev_dma_desc_tout_desc_addr
uint32_t spd
 Setup Packet Detected - if set clear NAK when queueing.


Detailed Description

The dwc_otg_dev_if structure contains information needed to manage the DWC_otg controller acting in device mode.

It represents the programming view of the device-specific aspects of the controller.

Definition at line 1554 of file dwc_otg_regs.h.


Field Documentation

dwc_otg_device_global_regs_t* dwc_otg_dev_if::dev_global_regs

Pointer to device Global registers.

Device Global Registers starting at offset 800h

Definition at line 1558 of file dwc_otg_regs.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