Files
new_kbd/src/events/usb_hid_event.h

32 lines
621 B
C
Raw Normal View History

#ifndef USB_HID_EVENT_H__
#define USB_HID_EVENT_H__
#include <stdbool.h>
#include <stdint.h>
#include <app_event_manager.h>
#include <app_event_manager_profiler_tracer.h>
enum usb_hid_event_type {
USB_HID_EVT_STATE_REPORT = 0,
};
/* USB 连接层状态(偏“链路可用性”) */
enum usb_hid_usbd_state {
USB_HID_USBD_DISCONNECTED = 0,
USB_HID_USBD_CONNECTED,
USB_HID_USBD_SUSPENDED,
};
struct usb_hid_event {
struct app_event_header header;
enum usb_hid_event_type evt_type;
bool enable;
enum usb_hid_usbd_state usbd_state;
};
APP_EVENT_TYPE_DECLARE(usb_hid_event);
#endif /* USB_HID_EVENT_H__ */