Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkorpionm <85568270+Skorpionm@users.noreply.github.com>2021-08-12 17:42:56 +0300
committerGitHub <noreply@github.com>2021-08-12 17:42:56 +0300
commit1cfa857f9831f6e056311cb26071e78dcd6f2c5c (patch)
treef4f5b27bae2faec19f065e911ff354026094d077 /applications/subghz/subghz_i.h
parent37d7870e52afc6918f4a7309f6084d5dd68a5547 (diff)
[FL-1610] SubGhz: scene based application, PT save and replay (#630)
* SubGhz: scene based application * SubGhz: encoder/decoder separation, DMA streaming, update app and cli. * SubGhz: 2 stage async tx complete, minor cleanup * SubGhz: 2 stage async tx complete, FIX state pin end transmit * SubGhz: Pricenton, receive TE signal * SubGhz: Pricenton, add save data, add load data * SubGhz: Add Read scene, Fix pricenton save, load funtion * SubGhz: Add Read, Receiver, SaveName scene * SubGhz: Read and Save (pricenton) * SubGhz: add Load scence * SubGhz: Fix select file scene, add load scene, add transmitter view, add send tx pricenton * SubGhz: Fix pricenton encoder, fix transmitter send * SubGhz: modified Pricenton Encoder (added guard time at the beginning), modified CC1101 config, code refactoring * SubGhz: Fix pricenton encoder defalut TE * Archive: Fix path and name SubGhz * Archive: Fix name app SubGhz * GubGhz: Came: add Save, Load key * GubGhz: GateTX: add Save, Load key * GubGhz: NeroSketch: add Save, Load key * Github: better linters triggers * SubGhz: adding fast loading keys Archive -> Run in app * GubGhz: KeeLog: add Save, Load key, key generation from the serial number of the meter and the button * SubGhz: format sources and fix compilation * FuriHal: add subghz configuration description for AGC section * SubGhz: save only protocols that can be saved. Cleanup. * Github: lint on pull requests Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
Diffstat (limited to 'applications/subghz/subghz_i.h')
-rw-r--r--applications/subghz/subghz_i.h61
1 files changed, 50 insertions, 11 deletions
diff --git a/applications/subghz/subghz_i.h b/applications/subghz/subghz_i.h
index b2da67b6..a7a86a8c 100644
--- a/applications/subghz/subghz_i.h
+++ b/applications/subghz/subghz_i.h
@@ -1,16 +1,31 @@
#pragma once
#include "subghz.h"
-#include "views/subghz_capture.h"
-#include "views/subghz_test_basic.h"
-#include "views/subghz_test_packet.h"
+#include "views/subghz_analyze.h"
+#include "views/subghz_receiver.h"
+#include "views/subghz_transmitter.h"
#include "views/subghz_static.h"
+#include "views/subghz_test_carrier.h"
+#include "views/subghz_test_packet.h"
+
#include <furi.h>
#include <furi-hal.h>
#include <gui/gui.h>
+#include <gui/scene_manager.h>
#include <gui/view_dispatcher.h>
#include <gui/modules/submenu.h>
+#include <gui/modules/dialog_ex.h>
+#include <gui/modules/popup.h>
+#include <gui/modules/text_input.h>
+
+#include <subghz/scenes/subghz_scene.h>
+
+#include <lib/subghz/subghz_worker.h>
+#include <lib/subghz/protocols/subghz_protocol.h>
+#include <lib/subghz/protocols/subghz_protocol_common.h>
+
+#define SUBGHZ_TEXT_STORE_SIZE 128
extern const uint32_t subghz_frequencies[];
extern const uint32_t subghz_frequencies_count;
@@ -19,23 +34,47 @@ extern const uint32_t subghz_frequencies_433_92;
struct SubGhz {
Gui* gui;
+ SubGhzWorker* worker;
+ SubGhzProtocol* protocol;
+ SubGhzProtocolCommon* protocol_result;
+
+ SceneManager* scene_manager;
+
ViewDispatcher* view_dispatcher;
Submenu* submenu;
+ DialogEx* dialog_ex;
+ Popup* popup;
+ TextInput* text_input;
+ char text_store[SUBGHZ_TEXT_STORE_SIZE + 1];
- SubghzCapture* subghz_capture;
-
- SubghzTestBasic* subghz_test_basic;
+ SubghzAnalyze* subghz_analyze;
+ SubghzReceiver* subghz_receiver;
+ SubghzTransmitter* subghz_transmitter;
+ SubghzStatic* subghz_static;
+ SubghzTestCarrier* subghz_test_carrier;
SubghzTestPacket* subghz_test_packet;
-
- SubghzStatic* subghz_static;
};
typedef enum {
SubGhzViewMenu,
- SubGhzViewCapture,
- SubGhzViewTestBasic,
- SubGhzViewTestPacket,
+
+ SubGhzViewAnalyze,
+ SubGhzViewDialogEx,
+ SubGhzViewReceiver,
+ SubGhzViewPopup,
+ SubGhzViewTextInput,
+ SubGhzViewTransmitter,
+
SubGhzViewStatic,
+ SubGhzViewTestCarrier,
+ SubGhzViewTestPacket,
} SubGhzView;
+
+void subghz_begin(FuriHalSubGhzPreset preset);
+void subghz_rx(uint32_t frequency);
+void subghz_tx(uint32_t frequency);
+void subghz_idle(void);
+void subghz_end(void);
+bool subghz_key_load(SubGhz* subghz, const char* file_path); \ No newline at end of file