Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

USB host controller event. More...

#include <uhc.h>

Data Fields

sys_snode_t node
 slist node for the message queue
 
enum uhc_event_type type
 Event type.
 
union { 
 
   int   status 
 Event status value, if any. More...
 
   struct uhc_transfer *   xfer 
 Pointer to request used only for UHC_EVT_EP_REQUEST. More...
 
};  
 
const struct devicedev
 Pointer to controller's device struct.
 

Detailed Description

USB host controller event.

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

Field Documentation

◆ [union]

union { ... } uhc_event

◆ dev

const struct device* uhc_event::dev

Pointer to controller's device struct.

◆ node

sys_snode_t uhc_event::node

slist node for the message queue

◆ status

int uhc_event::status

Event status value, if any.

◆ type

enum uhc_event_type uhc_event::type

Event type.

◆ xfer

struct uhc_transfer* uhc_event::xfer

Pointer to request used only for UHC_EVT_EP_REQUEST.


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