Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
udc_event Struct Reference

USB device controller event. More...

#include <udc.h>

Data Fields

enum udc_event_type type
 Event type.
 
union { 
 
   uint32_t   value 
 Event value. More...
 
   int   status 
 Event status value, if any. More...
 
   struct net_buf *   buf 
 Pointer to request used only for UDC_EVT_EP_REQUEST. More...
 
};  
 
const struct devicedev
 Pointer to device struct.
 

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]

union { ... } udc_event

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