mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-18 19:01:47 +03:00
66 lines
1.4 KiB
C
66 lines
1.4 KiB
C
#pragma once
|
|
|
|
#include "subghz.h"
|
|
#include "subghz_test_basic.h"
|
|
#include "subghz_test_packet.h"
|
|
#include "subghz_static.h"
|
|
|
|
#include <furi.h>
|
|
#include <api-hal.h>
|
|
#include <gui/gui.h>
|
|
#include <gui/view_dispatcher.h>
|
|
#include <gui/modules/submenu.h>
|
|
|
|
static const uint32_t subghz_frequencies[] = {
|
|
301000000,
|
|
315000000,
|
|
346000000,
|
|
385000000,
|
|
433920000,
|
|
438900000,
|
|
463000000,
|
|
781000000,
|
|
868000000,
|
|
868350000,
|
|
915000000,
|
|
925000000,
|
|
};
|
|
|
|
static const ApiHalSubGhzPath subghz_frequencies_paths[] = {
|
|
ApiHalSubGhzPath2, /* 301000000 */
|
|
ApiHalSubGhzPath2, /* 315000000 */
|
|
ApiHalSubGhzPath2, /* 346000000 */
|
|
ApiHalSubGhzPath2, /* 385000000 */
|
|
ApiHalSubGhzPath1, /* 433920000 */
|
|
ApiHalSubGhzPath1, /* 438900000 */
|
|
ApiHalSubGhzPath1, /* 463000000 */
|
|
ApiHalSubGhzPath3, /* 781000000 */
|
|
ApiHalSubGhzPath3, /* 868000000 */
|
|
ApiHalSubGhzPath3, /* 868350000 */
|
|
ApiHalSubGhzPath3, /* 915000000 */
|
|
ApiHalSubGhzPath3, /* 925000000 */
|
|
};
|
|
|
|
static const uint32_t subghz_frequencies_count = sizeof(subghz_frequencies) / sizeof(uint32_t);
|
|
|
|
struct SubGhz {
|
|
Gui* gui;
|
|
|
|
ViewDispatcher* view_dispatcher;
|
|
|
|
Submenu* submenu;
|
|
|
|
SubghzTestBasic* subghz_test_basic;
|
|
|
|
SubghzTestPacket* subghz_test_packet;
|
|
|
|
SubghzStatic* subghz_static;
|
|
};
|
|
|
|
typedef enum {
|
|
SubGhzViewMenu,
|
|
SubGhzViewTestBasic,
|
|
SubGhzViewTestPacket,
|
|
SubGhzViewStatic,
|
|
} SubGhzView;
|