Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
udc_data Struct Reference

Common UDC driver data structure. More...

#include <udc.h>

Data Fields

struct udc_ep_configep_lut [32]
 LUT for endpoint management.
 
struct udc_device_caps caps
 Controller capabilities.
 
struct k_mutex mutex
 Driver access mutex.
 
udc_event_cb_t event_cb
 Callback to submit an UDC event to upper layer.
 
atomic_t status
 USB device controller status.
 
int stage
 Internal used Control Sequence Stage.
 
struct net_bufsetup
 Pointer to buffer containing setup packet.
 
void * priv
 Driver private data.
 

Detailed Description

Common UDC driver data structure.

Mandatory structure for each UDC controller driver. To be implemented as device's private data (device->data).

Field Documentation

◆ caps

struct udc_device_caps udc_data::caps

Controller capabilities.

◆ ep_lut

struct udc_ep_config* udc_data::ep_lut[32]

LUT for endpoint management.

◆ event_cb

udc_event_cb_t udc_data::event_cb

Callback to submit an UDC event to upper layer.

◆ mutex

struct k_mutex udc_data::mutex

Driver access mutex.

◆ priv

void* udc_data::priv

Driver private data.

◆ setup

struct net_buf* udc_data::setup

Pointer to buffer containing setup packet.

◆ stage

int udc_data::stage

Internal used Control Sequence Stage.

◆ status

atomic_t udc_data::status

USB device controller status.


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