31 #include <picofuse/pix/types.h> 46 #ifndef HID_EVENT_CAPACITY 47 #define HID_EVENT_CAPACITY 16u 55 hid_event_type_none = 0,
56 hid_event_type_keycode = 1,
57 hid_event_type_touch = 2,
58 hid_event_type_metric = 3,
59 hid_event_type_timer = 4,
60 hid_event_type_signal = 5,
61 hid_event_type_wifi = 6,
62 hid_event_type_iostream = 7,
63 hid_event_type_time = 8,
64 hid_event_type_usb = 9,
216 const char *unit,
float value);
bool hid_event_queue_keycode(hid_device_t *device, hid_state_t state, uint16_t keycode)
Queue a keycode-based HID event to the owning HID instance queue.
Wi-Fi-oriented HID event payload.
hid_state_t
Input state flags used by the input manager and key handling.
void hid_event_free(hid_event_t *event)
Free a HID event allocated internally by HID queue helpers.
hw_usb_event_t event
USB hotplug event (see hw_usb_event_t).
hw_wifi_event_t event
Wi-Fi status event (see hw_wifi_event_t).
hw_wifi_network_t network
Associated network info - only valid if has_network is true.
uint16_t keycode
HID keycode associated with the event.
void * userdata
Timer userdata associated with this event.
Opaque byte streams for reading, writing, seeking, and readiness notification.
const char * unit
Metric unit string.
bool hid_event_queue_metric_float(hid_device_t *device, const char *name, const char *unit, float value)
Queue a float metric HID event to a HID instance queue.
Touch-oriented HID event payload.
USB-hotplug-oriented HID event payload.
pix_point_t point
Touch/event coordinates in pixels.
const char * name
Metric name.
sys_env_signal_t signal
Environment signal captured by HID source.
bool hid_event_queue_touch(hid_device_t *device, hid_state_t state, pix_point_t point, uint8_t slot)
Queue a touch HID event to the owning HID instance queue.
hw_usb_device_t device
Associated device - only valid if has_device is true.
Time-oriented HID event payload.
sys_env_signal_t
Environment signal types.
Wi-Fi management interface.
hid_event_type_t type
Event payload tag.
sys_iostream_event_t events
Readiness event(s) that occurred - see sys_iostream_event_t; may combine sys_iostream_event_read and ...
hid_device_t * device
HID child-device associated with this event.
Point structure representing X,Y coordinates.
bool hid_event_queue_wifi(hid_device_t *device, hw_wifi_event_t event, const hw_wifi_network_t *network)
Queue a Wi-Fi status HID event to the owning HID instance queue.
Describes a discovered Wi-Fi network (scan result).
struct hid_device_t hid_device_t
HID child-device descriptor tracked by a HID instance.
Represents a single HID input event.
bool hid_event_queue_signal(hid_device_t *device, sys_env_signal_t signal)
Queue a signal HID event to the owning HID instance queue.
Stream-readiness-oriented HID event payload.
hw_wifi_event_t
Wi-Fi callback event flags.
bool hid_event_queue_iostream(hid_device_t *device, sys_iostream_event_t events)
Queue a stream-readiness HID event to the owning HID instance queue.
sys_iostream_event_t
Stream readiness event flags.
Keycode-oriented HID event payload.
bool hid_event_queue_usb(hid_device_t *device, hw_usb_event_t event, const hw_usb_device_t *usb_device)
Queue a USB hotplug HID event to the owning HID instance queue.
sys_date_t date
Reported date/time (UTC - tzoffset is always 0).
Describes one interface of a USB device observed by the host.
HID device lifecycle and polling interface.
Represents a system date and time.
HID keycode and input-state definitions.
Timer-oriented HID event payload.
hid_state_t state
HID state flags for this event.
bool hid_event_queue_time(hid_device_t *device, const sys_date_t *date)
Queue a time HID event to the owning HID instance queue.
hw_usb_event_t
USB hotplug event type.
Defines date and wall-clock time APIs.
uint8_t slot
Touch slot index for multi-touch tracking.
Signal-oriented HID event payload.
Metric-oriented HID event payload.
hid_state_t state
HID state flags for this touch event.
hid_event_type_t
HID event payload selector.