[FL-2230] SubGhz: protocol API refactoring (#969)

* SubGhz: protocols library refactoring
* SubGhz: new architecture and refactoring
* SubGhz: simplify protocol structure, remove unused types
* SubGhz: rename Subghz to SubGhz
* SubGhz: add environment concept

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
Co-authored-by: DrZlo13 <who.just.the.doctor@gmail.com>
This commit is contained in:
Skorpionm
2022-03-03 13:48:56 +04:00
committed by GitHub
parent 052237f8c9
commit 3164184bbc
173 changed files with 9836 additions and 8486 deletions

28
lib/subghz/environment.h Normal file
View File

@@ -0,0 +1,28 @@
#pragma once
#include <furi.h>
#include "subghz_keystore.h"
typedef struct SubGhzEnvironment SubGhzEnvironment;
SubGhzEnvironment* subghz_environment_alloc();
void subghz_environment_free(SubGhzEnvironment* instance);
bool subghz_environment_load_keystore(SubGhzEnvironment* instance, const char* filename);
SubGhzKeystore* subghz_environment_get_keystore(SubGhzEnvironment* instance);
void subghz_environment_set_came_atomo_rainbow_table_file_name(
SubGhzEnvironment* instance,
const char* filename);
const char* subghz_environment_get_came_atomo_rainbow_table_file_name(SubGhzEnvironment* instance);
void subghz_environment_set_nice_flor_s_rainbow_table_file_name(
SubGhzEnvironment* instance,
const char* filename);
const char*
subghz_environment_get_nice_flor_s_rainbow_table_file_name(SubGhzEnvironment* instance);