#ifndef BLINKY_USB_DEVICE_STATE_EVENT_H_ #define BLINKY_USB_DEVICE_STATE_EVENT_H_ #include #include #include "usb_device_module.h" #ifdef __cplusplus extern "C" { #endif struct usb_device_state_event { struct app_event_header header; enum usb_device_state state; }; APP_EVENT_TYPE_DECLARE(usb_device_state_event); static inline void submit_usb_device_state_event(enum usb_device_state state) { struct usb_device_state_event *event = new_usb_device_state_event(); event->state = state; APP_EVENT_SUBMIT(event); } #ifdef __cplusplus } #endif #endif /* BLINKY_USB_DEVICE_STATE_EVENT_H_ */