mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-24 19:53:08 +00:00
cef59887ed
* [FL-3401] SubGhz: add "SubGhz test" external application * SubGhz: delete test test functionality from SubGhz app * [FL-3402] SubGhz: move func protocol creation API Co-authored-by: あく <alleteam@gmail.com>
29 lines
920 B
C
29 lines
920 B
C
#pragma once
|
|
|
|
#include <gui/scene_manager.h>
|
|
|
|
// Generate scene id and total number
|
|
#define ADD_SCENE(prefix, name, id) SubGhzTestScene##id,
|
|
typedef enum {
|
|
#include "subghz_test_scene_config.h"
|
|
SubGhzTestSceneNum,
|
|
} SubGhzTestScene;
|
|
#undef ADD_SCENE
|
|
|
|
extern const SceneManagerHandlers subghz_test_scene_handlers;
|
|
|
|
// Generate scene on_enter handlers declaration
|
|
#define ADD_SCENE(prefix, name, id) void prefix##_scene_##name##_on_enter(void*);
|
|
#include "subghz_test_scene_config.h"
|
|
#undef ADD_SCENE
|
|
|
|
// Generate scene on_event handlers declaration
|
|
#define ADD_SCENE(prefix, name, id) \
|
|
bool prefix##_scene_##name##_on_event(void* context, SceneManagerEvent event);
|
|
#include "subghz_test_scene_config.h"
|
|
#undef ADD_SCENE
|
|
|
|
// Generate scene on_exit handlers declaration
|
|
#define ADD_SCENE(prefix, name, id) void prefix##_scene_##name##_on_exit(void* context);
|
|
#include "subghz_test_scene_config.h"
|
|
#undef ADD_SCENE
|