2021-06-28 17:42:30 +03:00
|
|
|
#pragma once
|
|
|
|
#include <furi.h>
|
2022-01-05 19:10:18 +03:00
|
|
|
#include <furi_hal.h>
|
2021-06-28 17:42:30 +03:00
|
|
|
|
2022-01-05 19:10:18 +03:00
|
|
|
#include <generic_scene.hpp>
|
|
|
|
#include <scene_controller.hpp>
|
|
|
|
#include <view_controller.hpp>
|
2021-06-28 17:42:30 +03:00
|
|
|
|
2022-01-05 19:10:18 +03:00
|
|
|
#include <view_modules/submenu_vm.h>
|
|
|
|
#include "view_modules/lfrfid_view_tune_vm.h"
|
2021-06-28 17:42:30 +03:00
|
|
|
|
|
|
|
class LfRfidDebugApp {
|
|
|
|
public:
|
|
|
|
enum class EventType : uint8_t {
|
|
|
|
GENERIC_EVENT_ENUM_VALUES,
|
|
|
|
MenuSelected,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class SceneType : uint8_t {
|
|
|
|
GENERIC_SCENE_ENUM_VALUES,
|
|
|
|
TuneScene,
|
|
|
|
};
|
|
|
|
|
|
|
|
class Event {
|
|
|
|
public:
|
|
|
|
union {
|
|
|
|
int32_t menu_index;
|
|
|
|
} payload;
|
|
|
|
|
|
|
|
EventType type;
|
|
|
|
};
|
|
|
|
|
|
|
|
SceneController<GenericScene<LfRfidDebugApp>, LfRfidDebugApp> scene_controller;
|
|
|
|
ViewController<LfRfidDebugApp, SubmenuVM, LfRfidViewTuneVM> view_controller;
|
|
|
|
|
|
|
|
~LfRfidDebugApp();
|
|
|
|
LfRfidDebugApp();
|
|
|
|
|
|
|
|
void run();
|
2022-01-05 19:10:18 +03:00
|
|
|
};
|