Zephyr API Documentation  3.4.0
A Scalable Open Source RTOS
3.4.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
udc_buf_info Struct Reference

#include <udc.h>

Data Fields

uint8_t ep
 
unsigned int setup: 1
 
unsigned int data: 1
 
unsigned int status: 1
 
unsigned int zlp: 1
 
unsigned int claimed: 1
 
unsigned int queued: 1
 
void * owner
 
int err
 

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: