* 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>
		
			
				
	
	
		
			80 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			80 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
#include "subghz.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;
 | 
						|
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];
 | 
						|
 | 
						|
    SubghzAnalyze* subghz_analyze;
 | 
						|
    SubghzReceiver* subghz_receiver;
 | 
						|
    SubghzTransmitter* subghz_transmitter;
 | 
						|
    SubghzStatic* subghz_static;
 | 
						|
 | 
						|
    SubghzTestCarrier* subghz_test_carrier;
 | 
						|
    SubghzTestPacket* subghz_test_packet;
 | 
						|
};
 | 
						|
 | 
						|
typedef enum {
 | 
						|
    SubGhzViewMenu,
 | 
						|
 | 
						|
    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); |