| 
    Zephyr Project API
    3.3.0
    
   A Scalable Open Source RTOS 
   | 
 
#include <uhc.h>
Data Fields | |
| sys_snode_t | node | 
| enum uhc_event_type | type | 
| union { | |
| uint32_t value | |
| struct uhc_transfer * xfer | |
| }; | |
| int | status | 
| const struct device * | dev | 
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).
| union { ... } uhc_event::@145 | 
| const struct device* uhc_event::dev | 
Pointer to controller's device struct
| sys_snode_t uhc_event::node | 
slist node for the message queue
| int uhc_event::status | 
Event status, 0 on success, other (transfer) values on error
| enum uhc_event_type uhc_event::type | 
Event type
| uint32_t uhc_event::value | 
Event value
| struct uhc_transfer* uhc_event::xfer | 
Pointer to request used only for UHC_EVT_EP_REQUEST