Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
udc_buf_info Struct Reference

UDC endpoint buffer info. More...

#include <udc.h>

Data Fields

uint8_t ep
 Endpoint to which request is associated.
 
unsigned int setup: 1
 Flag marks setup transfer.
 
unsigned int data: 1
 Flag marks data stage of setup transfer.
 
unsigned int status: 1
 Flag marks status stage of setup transfer.
 
unsigned int zlp: 1
 Flag marks ZLP at the end of a transfer.
 
unsigned int claimed: 1
 Flag marks request buffer claimed by the controller (TBD)
 
unsigned int queued: 1
 Flag marks request buffer is queued (TBD)
 
void * owner
 Transfer owner (usually pointer to a class instance)
 
int err
 Transfer result, 0 on success, other values on error.
 

Detailed Description

UDC endpoint buffer info.

This structure is mandatory for all UDC request. It contains the meta data about the request and is stored in user_data array of net_buf structure for each request.

Field Documentation

◆ claimed

unsigned int udc_buf_info::claimed

Flag marks request buffer claimed by the controller (TBD)

◆ data

unsigned int udc_buf_info::data

Flag marks data stage of setup transfer.

◆ ep

uint8_t udc_buf_info::ep

Endpoint to which request is associated.

◆ err

int udc_buf_info::err

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

◆ owner

void* udc_buf_info::owner

Transfer owner (usually pointer to a class instance)

◆ queued

unsigned int udc_buf_info::queued

Flag marks request buffer is queued (TBD)

◆ setup

unsigned int udc_buf_info::setup

Flag marks setup transfer.

◆ status

unsigned int udc_buf_info::status

Flag marks status stage of setup transfer.

◆ zlp

unsigned int udc_buf_info::zlp

Flag marks ZLP at the end of a transfer.


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