AM261x MCU+ SDK: dwc_req_t Struct Reference

| AM261x MCU+ SDK 26.00.00 |

Data Fields
dwc_req_t Struct Reference
APIs for SOC Specific Device Drivers » APIs for USB » APIs for Synopsys driver

## Detailed Description

Structure representing a USB transfer request.

This structure encapsulates the state and data associated with a single transfer request when operating in device mode. It includes information about the transfer descriptors, data buffers, and transfer progress.

## Data Fields
dwc_usb3_dma_desc_t * | trb
dwc_dma_t | trbdma
u32 | length
u32 | actual
u32 | stream
u32 | flags
int | numbuf
char * | buf [DWC_MAX_DATA_BUFS]
dwc_dma_t | bufdma [DWC_MAX_DATA_BUFS]
u32 | buflen [DWC_MAX_DATA_BUFS]

## Field Documentation

## ◆ trb

dwc_usb3_dma_desc_t* dwc_req_t::trb

Pointer to the TRB or TRB chain for this request.

## ◆ trbdma

dwc_dma_t dwc_req_t::trbdma

DMA address of the TRB or TRB chain.

## ◆ length

u32 dwc_req_t::length

Total length of the data buffers.

## ◆ actual

u32 dwc_req_t::actual

Actual amount of data transferred.

## ◆ stream

u32 dwc_req_t::stream

Stream number associated with this request.

## ◆ flags

u32 dwc_req_t::flags

Request flags (bits 8-31 are OS-specific).

## ◆ numbuf

int dwc_req_t::numbuf

Number of data buffers.

## ◆ buf

char* dwc_req_t::buf[DWC_MAX_DATA_BUFS]

Array of pointers to data buffers.

## ◆ bufdma

dwc_dma_t dwc_req_t::bufdma[DWC_MAX_DATA_BUFS]

Array of DMA addresses for data buffers.

## ◆ buflen

u32 dwc_req_t::buflen[DWC_MAX_DATA_BUFS]

Array of lengths for data buffers.