Zephyr API 3.6.99
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 higher layer.
 
const void * event_ctx
 Opaque pointer to store higher layer context.
 
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 higher layer.

◆ event_ctx

const void* udc_data::event_ctx

Opaque pointer to store higher layer context.

◆ 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: