AM261x MCU+ SDK: usb_request_t Struct Reference

| AM261x MCU+ SDK 26.00.00 |

Data Fields
usb_request_t Struct Reference

## Detailed Description

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 )(usb_ep_t *ep, struct usb_request *req)
int | status
unsigned | actual

## Field Documentation

## ◆ buf

void* usb_request_t::buf

Pointer to the buffer associated with the USB request.

## ◆ length

unsigned usb_request_t::length

Length of the data in the buffer.

## ◆ dma

dwc_dma_t usb_request_t::dma

DMA address associated with the USB request.

## ◆ stream_id

unsigned usb_request_t::stream_id

Stream ID for the USB request (16 bits).

## ◆ zero

unsigned usb_request_t::zero

Flag indicating whether the zero-length packet is required (1 bit).

## ◆ complete

void(* usb_request_t::complete) (usb_ep_t *ep, struct usb_request *req)

Callback function invoked upon completion of the USB request.

## ◆ status

int usb_request_t::status

Status of the USB request, indicating success or error.

## ◆ actual

unsigned usb_request_t::actual

Actual number of bytes transferred during the USB request.