2026-04-13 15:23:46 +08:00
|
|
|
#ifndef BLINKY_LED_STRIP_EN_EVENT_H_
|
|
|
|
|
#define BLINKY_LED_STRIP_EN_EVENT_H_
|
|
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
|
|
#include <app_event_manager.h>
|
|
|
|
|
#include <app_event_manager_profiler_tracer.h>
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
struct led_strip_en_event {
|
|
|
|
|
struct app_event_header header;
|
|
|
|
|
bool enabled;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
APP_EVENT_TYPE_DECLARE(led_strip_en_event);
|
|
|
|
|
|
2026-04-14 16:42:04 +08:00
|
|
|
static inline void submit_led_strip_en_event(bool enabled)
|
|
|
|
|
{
|
|
|
|
|
struct led_strip_en_event *event = new_led_strip_en_event();
|
|
|
|
|
|
|
|
|
|
event->enabled = enabled;
|
|
|
|
|
APP_EVENT_SUBMIT(event);
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-13 15:23:46 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif /* BLINKY_LED_STRIP_EN_EVENT_H_ */
|