2021-03-31 17:52:26 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "subghz.h"
|
2022-03-03 09:48:56 +00:00
|
|
|
#include "views/receiver.h"
|
|
|
|
#include "views/transmitter.h"
|
2021-10-10 14:35:10 +00:00
|
|
|
#include "views/subghz_frequency_analyzer.h"
|
2021-10-27 17:37:11 +00:00
|
|
|
#include "views/subghz_read_raw.h"
|
2021-03-31 17:52:26 +00:00
|
|
|
|
2021-08-29 13:05:15 +00:00
|
|
|
#include "views/subghz_test_static.h"
|
[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>
2021-08-12 14:42:56 +00:00
|
|
|
#include "views/subghz_test_carrier.h"
|
|
|
|
#include "views/subghz_test_packet.h"
|
|
|
|
|
2021-03-31 17:52:26 +00:00
|
|
|
#include <furi.h>
|
2022-01-05 16:10:18 +00:00
|
|
|
#include <furi_hal.h>
|
2021-03-31 17:52:26 +00:00
|
|
|
#include <gui/gui.h>
|
2021-11-11 12:49:19 +00:00
|
|
|
#include <dialogs/dialogs.h>
|
[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>
2021-08-12 14:42:56 +00:00
|
|
|
#include <gui/scene_manager.h>
|
2022-01-05 16:10:18 +00:00
|
|
|
#include <notification/notification_messages.h>
|
2021-03-31 17:52:26 +00:00
|
|
|
#include <gui/view_dispatcher.h>
|
|
|
|
#include <gui/modules/submenu.h>
|
[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>
2021-08-12 14:42:56 +00:00
|
|
|
#include <gui/modules/popup.h>
|
|
|
|
#include <gui/modules/text_input.h>
|
2021-09-10 00:29:57 +00:00
|
|
|
#include <gui/modules/widget.h>
|
[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>
2021-08-12 14:42:56 +00:00
|
|
|
|
|
|
|
#include <subghz/scenes/subghz_scene.h>
|
|
|
|
|
|
|
|
#include <lib/subghz/subghz_worker.h>
|
2021-09-15 15:24:19 +00:00
|
|
|
|
2022-03-03 09:48:56 +00:00
|
|
|
#include <lib/subghz/receiver.h>
|
|
|
|
#include <lib/subghz/transmitter.h>
|
|
|
|
|
Skorp subghz signal archive (#667)
* SubGhz: Add millis() furi, add subghz history struct
* SubGhz: Fix subghz history
* Gubghz: Fix code repeat history, add clean history
* SubGhz: reading and adding keys to history
* Gui: Renaming Sub 1-Ghz -> SubGhz
* Archive: Renaming Sub 1-Ghz -> SubGhz
* SubGhz: Add menu history, modified button for sending a signal, changed output of data about accepted protocol
* Archive: Fix name subghz
* SubGhz: Menu navigation
* Assets: Add assets/SubGHz/icon.png
* Assets: add new icons for subghz
* SubGhz: Fix name Add manually scene
* SubGhz: Fix load icon Read scene. rename encoder struct, rename protocol function load from file, add load raw data protocol, add info pleasant signals all protocol
* SubGhz: fix memory leak
* SubGhz: change of receiving frequency for read scene
* SubGhz: Add save/load frequency and preset, add automatic configuration of transmit/receive to the desired frequency and modulation, add button "save" config scene
* SubGhz: Fix frequency and preset, fix frequency add manualli scene, fix re-executing the parser
* Furi-hal-subghz: add 2-FSK config, fix ook config 650KHz BW Tx filter
* Fix formatting and release build
* SubGhz: Delete read scene
* SubGhz: Fix frequency add manualli scene, refactoring code
* SubGhz: 2 profiles for OOK, fix broken build.
* SubGhz: Add passing static codes from read scene, add notification read scene, refactoring code
* SubGhz: fix assert on worker double stop.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-28 13:51:48 +00:00
|
|
|
#include "subghz_history.h"
|
[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>
2021-08-12 14:42:56 +00:00
|
|
|
|
2022-01-05 16:10:18 +00:00
|
|
|
#include <gui/modules/variable_item_list.h>
|
2021-09-10 00:29:57 +00:00
|
|
|
|
2022-04-07 11:47:47 +00:00
|
|
|
#define SUBGHZ_MAX_LEN_NAME 21
|
2021-03-31 17:52:26 +00:00
|
|
|
|
2021-09-10 00:29:57 +00:00
|
|
|
extern const char* const subghz_frequencies_text[];
|
2021-06-29 21:19:20 +00:00
|
|
|
extern const uint32_t subghz_frequencies[];
|
2021-09-10 00:29:57 +00:00
|
|
|
extern const uint32_t subghz_hopper_frequencies[];
|
2021-05-25 10:19:07 +00:00
|
|
|
extern const uint32_t subghz_frequencies_count;
|
2021-09-10 00:29:57 +00:00
|
|
|
extern const uint32_t subghz_hopper_frequencies_count;
|
2021-05-25 10:19:07 +00:00
|
|
|
extern const uint32_t subghz_frequencies_433_92;
|
2022-03-17 09:55:53 +00:00
|
|
|
extern const uint32_t subghz_frequencies_315_00;
|
2021-03-31 17:52:26 +00:00
|
|
|
|
2021-11-11 12:49:19 +00:00
|
|
|
/** SubGhzNotification state */
|
|
|
|
typedef enum {
|
|
|
|
SubGhzNotificationStateStarting,
|
|
|
|
SubGhzNotificationStateIDLE,
|
|
|
|
SubGhzNotificationStateTX,
|
|
|
|
SubGhzNotificationStateRX,
|
|
|
|
} SubGhzNotificationState;
|
|
|
|
|
2021-09-10 00:29:57 +00:00
|
|
|
/** SubGhzTxRx state */
|
|
|
|
typedef enum {
|
2021-10-27 17:37:11 +00:00
|
|
|
SubGhzTxRxStateIDLE,
|
2021-09-10 00:29:57 +00:00
|
|
|
SubGhzTxRxStateRx,
|
|
|
|
SubGhzTxRxStateTx,
|
2021-09-15 15:24:19 +00:00
|
|
|
SubGhzTxRxStateSleep,
|
2021-09-10 00:29:57 +00:00
|
|
|
} SubGhzTxRxState;
|
|
|
|
|
|
|
|
/** SubGhzHopperState state */
|
|
|
|
typedef enum {
|
|
|
|
SubGhzHopperStateOFF,
|
|
|
|
SubGhzHopperStateRunnig,
|
|
|
|
SubGhzHopperStatePause,
|
|
|
|
SubGhzHopperStateRSSITimeOut,
|
|
|
|
} SubGhzHopperState;
|
2021-03-31 17:52:26 +00:00
|
|
|
|
2021-10-27 17:37:11 +00:00
|
|
|
/** SubGhzRxKeyState state */
|
|
|
|
typedef enum {
|
|
|
|
SubGhzRxKeyStateIDLE,
|
|
|
|
SubGhzRxKeyStateNoSave,
|
|
|
|
SubGhzRxKeyStateNeedSave,
|
2021-11-24 13:59:45 +00:00
|
|
|
SubGhzRxKeyStateBack,
|
2021-10-27 17:37:11 +00:00
|
|
|
SubGhzRxKeyStateAddKey,
|
|
|
|
SubGhzRxKeyStateExit,
|
2021-12-08 15:00:54 +00:00
|
|
|
SubGhzRxKeyStateRAWLoad,
|
2021-12-22 13:01:20 +00:00
|
|
|
SubGhzRxKeyStateRAWSave,
|
2021-10-27 17:37:11 +00:00
|
|
|
} SubGhzRxKeyState;
|
|
|
|
|
2021-09-10 00:29:57 +00:00
|
|
|
struct SubGhzTxRx {
|
[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>
2021-08-12 14:42:56 +00:00
|
|
|
SubGhzWorker* worker;
|
2022-03-03 09:48:56 +00:00
|
|
|
|
|
|
|
SubGhzEnvironment* environment;
|
|
|
|
SubGhzReceiver* receiver;
|
|
|
|
SubGhzTransmitter* transmitter;
|
|
|
|
SubGhzProtocolDecoderBase* decoder_result;
|
|
|
|
FlipperFormat* fff_data;
|
|
|
|
|
Skorp subghz signal archive (#667)
* SubGhz: Add millis() furi, add subghz history struct
* SubGhz: Fix subghz history
* Gubghz: Fix code repeat history, add clean history
* SubGhz: reading and adding keys to history
* Gui: Renaming Sub 1-Ghz -> SubGhz
* Archive: Renaming Sub 1-Ghz -> SubGhz
* SubGhz: Add menu history, modified button for sending a signal, changed output of data about accepted protocol
* Archive: Fix name subghz
* SubGhz: Menu navigation
* Assets: Add assets/SubGHz/icon.png
* Assets: add new icons for subghz
* SubGhz: Fix name Add manually scene
* SubGhz: Fix load icon Read scene. rename encoder struct, rename protocol function load from file, add load raw data protocol, add info pleasant signals all protocol
* SubGhz: fix memory leak
* SubGhz: change of receiving frequency for read scene
* SubGhz: Add save/load frequency and preset, add automatic configuration of transmit/receive to the desired frequency and modulation, add button "save" config scene
* SubGhz: Fix frequency and preset, fix frequency add manualli scene, fix re-executing the parser
* Furi-hal-subghz: add 2-FSK config, fix ook config 650KHz BW Tx filter
* Fix formatting and release build
* SubGhz: Delete read scene
* SubGhz: Fix frequency add manualli scene, refactoring code
* SubGhz: 2 profiles for OOK, fix broken build.
* SubGhz: Add passing static codes from read scene, add notification read scene, refactoring code
* SubGhz: fix assert on worker double stop.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-28 13:51:48 +00:00
|
|
|
uint32_t frequency;
|
|
|
|
FuriHalSubGhzPreset preset;
|
2021-09-10 00:29:57 +00:00
|
|
|
SubGhzHistory* history;
|
|
|
|
uint16_t idx_menu_chosen;
|
|
|
|
SubGhzTxRxState txrx_state;
|
|
|
|
SubGhzHopperState hopper_state;
|
|
|
|
uint8_t hopper_timeout;
|
|
|
|
uint8_t hopper_idx_frequency;
|
2021-10-27 17:37:11 +00:00
|
|
|
SubGhzRxKeyState rx_key_state;
|
2021-09-10 00:29:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct SubGhzTxRx SubGhzTxRx;
|
|
|
|
|
|
|
|
struct SubGhz {
|
|
|
|
Gui* gui;
|
|
|
|
NotificationApp* notifications;
|
|
|
|
|
|
|
|
SubGhzTxRx* txrx;
|
[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>
2021-08-12 14:42:56 +00:00
|
|
|
|
|
|
|
SceneManager* scene_manager;
|
2021-03-31 17:52:26 +00:00
|
|
|
ViewDispatcher* view_dispatcher;
|
|
|
|
|
|
|
|
Submenu* submenu;
|
[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>
2021-08-12 14:42:56 +00:00
|
|
|
Popup* popup;
|
|
|
|
TextInput* text_input;
|
2021-09-10 00:29:57 +00:00
|
|
|
Widget* widget;
|
2021-11-11 12:49:19 +00:00
|
|
|
DialogsApp* dialogs;
|
2022-04-07 11:47:47 +00:00
|
|
|
char file_name[SUBGHZ_MAX_LEN_NAME + 1];
|
|
|
|
char file_name_tmp[SUBGHZ_MAX_LEN_NAME + 1];
|
2021-11-11 12:49:19 +00:00
|
|
|
SubGhzNotificationState state_notifications;
|
2021-03-31 17:52:26 +00:00
|
|
|
|
2022-03-03 09:48:56 +00:00
|
|
|
SubGhzViewReceiver* subghz_receiver;
|
|
|
|
SubGhzViewTransmitter* subghz_transmitter;
|
2021-09-10 00:29:57 +00:00
|
|
|
VariableItemList* variable_item_list;
|
2021-03-31 17:52:26 +00:00
|
|
|
|
2022-03-03 09:48:56 +00:00
|
|
|
SubGhzFrequencyAnalyzer* subghz_frequency_analyzer;
|
|
|
|
SubGhzReadRAW* subghz_read_raw;
|
|
|
|
SubGhzTestStatic* subghz_test_static;
|
|
|
|
SubGhzTestCarrier* subghz_test_carrier;
|
|
|
|
SubGhzTestPacket* subghz_test_packet;
|
2021-09-10 00:29:57 +00:00
|
|
|
string_t error_str;
|
2021-03-31 17:52:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum {
|
2022-03-03 09:48:56 +00:00
|
|
|
SubGhzViewIdMenu,
|
|
|
|
SubGhzViewIdReceiver,
|
|
|
|
SubGhzViewIdPopup,
|
|
|
|
SubGhzViewIdTextInput,
|
|
|
|
SubGhzViewIdWidget,
|
|
|
|
SubGhzViewIdTransmitter,
|
|
|
|
SubGhzViewIdVariableItemList,
|
|
|
|
SubGhzViewIdFrequencyAnalyzer,
|
|
|
|
SubGhzViewIdReadRAW,
|
|
|
|
|
|
|
|
SubGhzViewIdStatic,
|
|
|
|
SubGhzViewIdTestCarrier,
|
|
|
|
SubGhzViewIdTestPacket,
|
|
|
|
} SubGhzViewId;
|
|
|
|
|
|
|
|
bool subghz_set_preset(SubGhz* subghz, const char* preset);
|
2021-11-11 12:49:19 +00:00
|
|
|
void subghz_get_frequency_modulation(SubGhz* subghz, string_t frequency, string_t modulation);
|
2021-09-15 15:24:19 +00:00
|
|
|
void subghz_begin(SubGhz* subghz, FuriHalSubGhzPreset preset);
|
|
|
|
uint32_t subghz_rx(SubGhz* subghz, uint32_t frequency);
|
|
|
|
void subghz_rx_end(SubGhz* subghz);
|
|
|
|
void subghz_sleep(SubGhz* subghz);
|
2022-03-03 09:48:56 +00:00
|
|
|
bool subghz_tx_start(SubGhz* subghz, FlipperFormat* flipper_format);
|
2021-09-15 15:24:19 +00:00
|
|
|
void subghz_tx_stop(SubGhz* subghz);
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 19:56:23 +00:00
|
|
|
bool subghz_key_load(SubGhz* subghz, const char* file_path);
|
2022-04-07 11:47:47 +00:00
|
|
|
bool subghz_get_next_name_file(SubGhz* subghz, uint8_t max_len);
|
2022-03-03 09:48:56 +00:00
|
|
|
bool subghz_save_protocol_to_file(
|
|
|
|
SubGhz* subghz,
|
|
|
|
FlipperFormat* flipper_format,
|
|
|
|
const char* dev_name);
|
Skorp subghz signal archive (#667)
* SubGhz: Add millis() furi, add subghz history struct
* SubGhz: Fix subghz history
* Gubghz: Fix code repeat history, add clean history
* SubGhz: reading and adding keys to history
* Gui: Renaming Sub 1-Ghz -> SubGhz
* Archive: Renaming Sub 1-Ghz -> SubGhz
* SubGhz: Add menu history, modified button for sending a signal, changed output of data about accepted protocol
* Archive: Fix name subghz
* SubGhz: Menu navigation
* Assets: Add assets/SubGHz/icon.png
* Assets: add new icons for subghz
* SubGhz: Fix name Add manually scene
* SubGhz: Fix load icon Read scene. rename encoder struct, rename protocol function load from file, add load raw data protocol, add info pleasant signals all protocol
* SubGhz: fix memory leak
* SubGhz: change of receiving frequency for read scene
* SubGhz: Add save/load frequency and preset, add automatic configuration of transmit/receive to the desired frequency and modulation, add button "save" config scene
* SubGhz: Fix frequency and preset, fix frequency add manualli scene, fix re-executing the parser
* Furi-hal-subghz: add 2-FSK config, fix ook config 650KHz BW Tx filter
* Fix formatting and release build
* SubGhz: Delete read scene
* SubGhz: Fix frequency add manualli scene, refactoring code
* SubGhz: 2 profiles for OOK, fix broken build.
* SubGhz: Add passing static codes from read scene, add notification read scene, refactoring code
* SubGhz: fix assert on worker double stop.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-28 13:51:48 +00:00
|
|
|
bool subghz_load_protocol_from_file(SubGhz* subghz);
|
2021-10-25 14:37:14 +00:00
|
|
|
bool subghz_rename_file(SubGhz* subghz);
|
2021-09-28 00:05:40 +00:00
|
|
|
bool subghz_delete_file(SubGhz* subghz);
|
|
|
|
void subghz_file_name_clear(SubGhz* subghz);
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 19:56:23 +00:00
|
|
|
uint32_t subghz_random_serial(void);
|
2021-09-15 15:24:19 +00:00
|
|
|
void subghz_hopper_update(SubGhz* subghz);
|