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_event Struct Reference

#include <udc.h>

Data Fields

enum udc_event_type type
 
union {
   uint32_t   value
 
   int   status
 
   struct net_buf *   buf
 
}; 
 
const struct devicedev
 

Detailed Description

USB device controller event

Common structure for all events that originate from the UDC driver and are passed to higher layer using message queue and a callback (udc_event_cb_t) provided by higher layer during controller initialization (udc_init).

Field Documentation

◆ 

union { ... } udc_event::@178

◆ buf

struct net_buf* udc_event::buf

Pointer to request used only for UDC_EVT_EP_REQUEST

◆ dev

const struct device* udc_event::dev

Pointer to device struct

◆ status

int udc_event::status

Event status value, if any

◆ type

enum udc_event_type udc_event::type

Event type

◆ value

uint32_t udc_event::value

Event value


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