31 lines
574 B
C
31 lines
574 B
C
|
|
#ifndef BLINKY_SETTINGS_MODE_EVENT_H_
|
||
|
|
#define BLINKY_SETTINGS_MODE_EVENT_H_
|
||
|
|
|
||
|
|
#include <app_event_manager.h>
|
||
|
|
#include <app_event_manager_profiler_tracer.h>
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
struct settings_mode_event {
|
||
|
|
struct app_event_header header;
|
||
|
|
bool active;
|
||
|
|
};
|
||
|
|
|
||
|
|
APP_EVENT_TYPE_DECLARE(settings_mode_event);
|
||
|
|
|
||
|
|
static inline void submit_settings_mode_event(bool active)
|
||
|
|
{
|
||
|
|
struct settings_mode_event *event = new_settings_mode_event();
|
||
|
|
|
||
|
|
event->active = active;
|
||
|
|
APP_EVENT_SUBMIT(event);
|
||
|
|
}
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif /* BLINKY_SETTINGS_MODE_EVENT_H_ */
|