2021-03-31 20:52:26 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "subghz.h"
|
2021-06-30 00:19:20 +03:00
|
|
|
#include "views/subghz_capture.h"
|
|
|
|
#include "views/subghz_test_basic.h"
|
|
|
|
#include "views/subghz_test_packet.h"
|
|
|
|
#include "views/subghz_static.h"
|
2021-03-31 20:52:26 +03:00
|
|
|
|
|
|
|
#include <furi.h>
|
2021-04-19 19:46:00 +03:00
|
|
|
#include <api-hal.h>
|
2021-03-31 20:52:26 +03:00
|
|
|
#include <gui/gui.h>
|
|
|
|
#include <gui/view_dispatcher.h>
|
|
|
|
#include <gui/modules/submenu.h>
|
|
|
|
|
2021-06-30 00:19:20 +03:00
|
|
|
extern const uint32_t subghz_frequencies[];
|
2021-05-25 13:19:07 +03:00
|
|
|
extern const uint32_t subghz_frequencies_count;
|
|
|
|
extern const uint32_t subghz_frequencies_433_92;
|
2021-03-31 20:52:26 +03:00
|
|
|
|
|
|
|
struct SubGhz {
|
|
|
|
Gui* gui;
|
|
|
|
|
|
|
|
ViewDispatcher* view_dispatcher;
|
|
|
|
|
|
|
|
Submenu* submenu;
|
|
|
|
|
2021-06-30 00:19:20 +03:00
|
|
|
SubghzCapture* subghz_capture;
|
|
|
|
|
2021-03-31 20:52:26 +03:00
|
|
|
SubghzTestBasic* subghz_test_basic;
|
|
|
|
|
|
|
|
SubghzTestPacket* subghz_test_packet;
|
2021-04-15 11:47:52 +03:00
|
|
|
|
|
|
|
SubghzStatic* subghz_static;
|
2021-03-31 20:52:26 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
SubGhzViewMenu,
|
2021-06-30 00:19:20 +03:00
|
|
|
SubGhzViewCapture,
|
2021-03-31 20:52:26 +03:00
|
|
|
SubGhzViewTestBasic,
|
|
|
|
SubGhzViewTestPacket,
|
2021-04-15 11:47:52 +03:00
|
|
|
SubGhzViewStatic,
|
2021-03-31 20:52:26 +03:00
|
|
|
} SubGhzView;
|