picofuse

Data Fields
hid_usb_t Struct Reference

USB-hotplug-oriented HID event payload. More...

#include <event.h>

Collaboration diagram for hid_usb_t:
Collaboration graph
[legend]

Data Fields

hw_usb_event_t event
 USB hotplug event (see hw_usb_event_t).
 
hw_usb_device_t device
 Associated device - only valid if has_device is true. More...
 
bool has_device
 True if device is populated.
 

Detailed Description

USB-hotplug-oriented HID event payload.

device is copied by value into this event at the point it's queued - unlike hw_usb_callback_t's own device parameter (which some backends pass as a pointer to worker-thread-local storage, valid only for the duration of that callback), this is safe to read at any point up until hid_event_free(). has_device is false for the enumeration-complete marker (see hw_usb_init()'s own doc), in which case device itself is unspecified.

Definition at line 143 of file event.h.

Field Documentation

◆ device

hw_usb_device_t hid_usb_t::device

Associated device - only valid if has_device is true.

Definition at line 145 of file event.h.


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