2026-04-11 17:15:11 +08:00
|
|
|
#ifndef BLINKY_USB_FUNCTION_READY_EVENT_H_
|
|
|
|
|
#define BLINKY_USB_FUNCTION_READY_EVENT_H_
|
|
|
|
|
|
|
|
|
|
#include <app_event_manager.h>
|
|
|
|
|
#include <app_event_manager_profiler_tracer.h>
|
|
|
|
|
|
|
|
|
|
#include "usb_device_module.h"
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
struct usb_function_ready_event {
|
|
|
|
|
struct app_event_header header;
|
|
|
|
|
uint8_t function_mask;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
APP_EVENT_TYPE_DECLARE(usb_function_ready_event);
|
|
|
|
|
|
2026-04-14 16:42:04 +08:00
|
|
|
static inline void submit_usb_function_ready_event(uint8_t function_mask)
|
|
|
|
|
{
|
|
|
|
|
struct usb_function_ready_event *event = new_usb_function_ready_event();
|
|
|
|
|
|
|
|
|
|
event->function_mask = function_mask;
|
|
|
|
|
APP_EVENT_SUBMIT(event);
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 17:15:11 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif /* BLINKY_USB_FUNCTION_READY_EVENT_H_ */
|