USB-hotplug-oriented HID event payload. More...
#include <event.h>

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. | |
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.
| hw_usb_device_t hid_usb_t::device |