USB request structure specific to the platform
Data Fields | |
| void * | buf |
| unsigned | length |
| dwc_dma_t | dma |
| unsigned | stream_id:16 |
| unsigned | zero:1 |
| void(* | complete )(volatile usb_ep_t *ep, volatile struct usb_request *req) |
| int | status |
| unsigned | actual |
| void* usb_request_t::buf |
Pointer to the buffer associated with the USB request.
| unsigned usb_request_t::length |
Length of the data in the buffer.
| dwc_dma_t usb_request_t::dma |
DMA address associated with the USB request.
| unsigned usb_request_t::stream_id |
Stream ID for the USB request (16 bits).
| unsigned usb_request_t::zero |
Flag indicating whether the zero-length packet is required (1 bit).
| void(* usb_request_t::complete) (volatile usb_ep_t *ep, volatile struct usb_request *req) |
Callback function invoked upon completion of the USB request.
| int usb_request_t::status |
Status of the USB request, indicating success or error.
| unsigned usb_request_t::actual |
Actual number of bytes transferred during the USB request.