2021-03-31 20:52:26 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "subghz.h"
|
|
|
|
#include "subghz_test_basic.h"
|
|
|
|
#include "subghz_test_packet.h"
|
2021-04-15 11:47:52 +03:00
|
|
|
#include "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-05-25 13:19:07 +03: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 20:52:26 +03:00
|
|
|
|
|
|
|
struct SubGhz {
|
|
|
|
Gui* gui;
|
|
|
|
|
|
|
|
ViewDispatcher* view_dispatcher;
|
|
|
|
|
|
|
|
Submenu* submenu;
|
|
|
|
|
|
|
|
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,
|
|
|
|
SubGhzViewTestBasic,
|
|
|
|
SubGhzViewTestPacket,
|
2021-04-15 11:47:52 +03:00
|
|
|
SubGhzViewStatic,
|
2021-03-31 20:52:26 +03:00
|
|
|
} SubGhzView;
|