2021-03-31 17:52:26 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "subghz.h"
|
|
|
|
#include "subghz_test_basic.h"
|
|
|
|
#include "subghz_test_packet.h"
|
2021-04-15 08:47:52 +00:00
|
|
|
#include "subghz_static.h"
|
2021-03-31 17:52:26 +00:00
|
|
|
|
|
|
|
#include <furi.h>
|
2021-04-19 16:46:00 +00:00
|
|
|
#include <api-hal.h>
|
2021-03-31 17:52:26 +00:00
|
|
|
#include <gui/gui.h>
|
|
|
|
#include <gui/view_dispatcher.h>
|
|
|
|
#include <gui/modules/submenu.h>
|
|
|
|
|
2021-05-25 10:19:07 +00:00
|
|
|
typedef struct {
|
|
|
|
uint32_t frequency;
|
|
|
|
uint8_t path;
|
|
|
|
} SubGhzFrequency;
|
|
|
|
|
|
|
|
extern const SubGhzFrequency subghz_frequencies[];
|
|
|
|
extern const uint32_t subghz_frequencies_count;
|
|
|
|
extern const uint32_t subghz_frequencies_433_92;
|
2021-03-31 17:52:26 +00:00
|
|
|
|
|
|
|
struct SubGhz {
|
|
|
|
Gui* gui;
|
|
|
|
|
|
|
|
ViewDispatcher* view_dispatcher;
|
|
|
|
|
|
|
|
Submenu* submenu;
|
|
|
|
|
|
|
|
SubghzTestBasic* subghz_test_basic;
|
|
|
|
|
|
|
|
SubghzTestPacket* subghz_test_packet;
|
2021-04-15 08:47:52 +00:00
|
|
|
|
|
|
|
SubghzStatic* subghz_static;
|
2021-03-31 17:52:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
SubGhzViewMenu,
|
|
|
|
SubGhzViewTestBasic,
|
|
|
|
SubGhzViewTestPacket,
|
2021-04-15 08:47:52 +00:00
|
|
|
SubGhzViewStatic,
|
2021-03-31 17:52:26 +00:00
|
|
|
} SubGhzView;
|