Zephyr Project API 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
uhc_transfer Struct Reference

UHC endpoint buffer info. More...

#include <uhc.h>

Data Fields

sys_dnode_t node
 dlist node
 
uint8_t setup_pkt [8]
 Control transfer setup packet.
 
struct net_bufbuf
 Transfer data buffer.
 
uint8_t ep
 Endpoint to which request is associated.
 
uint16_t mps
 Maximum packet size.
 
uint16_t interval
 Interval, used for periodic transfers only.
 
uint16_t start_frame
 Start frame, used for periodic transfers only.
 
unsigned int queued: 1
 Flag marks request buffer is queued.
 
unsigned int stage: 2
 Control stage status, up to the driver to use it or not.
 
struct usb_deviceudev
 Pointer to USB device.
 
void * cb
 Pointer to transfer completion callback (opaque for the UHC)
 
void * priv
 Pointer to completion callback private data.
 
int err
 Transfer result, 0 on success, other values on error.
 

Detailed Description

UHC endpoint buffer info.

This structure is mandatory for all UHC request. It contains the meta data about the request and FIFOs to store net_buf structures for each request.

The members of this structure should not be used directly by a higher layer (host stack).

Field Documentation

◆ buf

struct net_buf* uhc_transfer::buf

Transfer data buffer.

◆ cb

void* uhc_transfer::cb

Pointer to transfer completion callback (opaque for the UHC)

◆ ep

uint8_t uhc_transfer::ep

Endpoint to which request is associated.

◆ err

int uhc_transfer::err

Transfer result, 0 on success, other values on error.

◆ interval

uint16_t uhc_transfer::interval

Interval, used for periodic transfers only.

◆ mps

uint16_t uhc_transfer::mps

Maximum packet size.

◆ node

sys_dnode_t uhc_transfer::node

dlist node

◆ priv

void* uhc_transfer::priv

Pointer to completion callback private data.

◆ queued

unsigned int uhc_transfer::queued

Flag marks request buffer is queued.

◆ setup_pkt

uint8_t uhc_transfer::setup_pkt[8]

Control transfer setup packet.

◆ stage

unsigned int uhc_transfer::stage

Control stage status, up to the driver to use it or not.

◆ start_frame

uint16_t uhc_transfer::start_frame

Start frame, used for periodic transfers only.

◆ udev

struct usb_device* uhc_transfer::udev

Pointer to USB device.


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