Data Fields
usbDevRequest Struct Reference

USB request structure which encapsulates information required by the dcd to genererate USB traffic. More...

#include <usb_dev_object.h>

Data Fields

uint32_t deviceAddress
 
void * pbuf
 
uint32_t length
 
uint32_t dmaMode
 
usbDevEndptInfo_t deviceEndptInfo
 
uint32_t streamId
 
uint32_t zeroLengthPacket
 
void(* reqComplete )(struct usbGadgetObj *pGadgetObject, struct usbDevRequest *pReq)
 
int32_t status
 
uint32_t actualLength
 

Detailed Description

USB request structure which encapsulates information required by the dcd to genererate USB traffic.

Field Documentation

uint32_t usbDevRequest::actualLength

number of bytes actually received or transmitted.

uint32_t usbDevRequest::deviceAddress

Address assigned by the host. Note that this field would not be used.

usbDevEndptInfo_t usbDevRequest::deviceEndptInfo

Pointer to device endpoint info structure .

uint32_t usbDevRequest::dmaMode

PIO mode or DMA mode of copy. If PIO mode(0)is set then , the CPU will copy data to controller FIFOs. If DMA mode (value 1)is set, then the CPU would not take any action to copy data to or from Controller FIFOs.

uint32_t usbDevRequest::length

How much of data needs to be sent or received.

void* usbDevRequest::pbuf

Pointer to data buffer - for incoming or out going traffic.

void(* usbDevRequest::reqComplete) (struct usbGadgetObj *pGadgetObject, struct usbDevRequest *pReq)

Completion handler for this request.

int32_t usbDevRequest::status

Status of the request (0)- Complete, (1)- not processed yet, (2) being processed,(-1) Error

uint32_t usbDevRequest::streamId

USB 3.0 streamID .

uint32_t usbDevRequest::zeroLengthPacket

whether this request is for a zero length packet or not.


The documentation for this struct was generated from the following file:

Copyright 2016, Texas Instruments Incorporated