9a9abd59e9
* WeatherStation: start * SubGhz: rename protocol magellen -> magellan * WeatherStation: err Unresolved symbols: {'subghz_protocol_decoder_base_get_string'} * WeatherStation: fix Unresolved symbols: {'subghz_protocol_decoder_base_get_string'} * Subghz: add set protocol_items * WeatherStation: adding your protocols * WS: add Infactory protocol * WS: add history * WS: add setting * WS: add lock * WS: add hopper frequency * WS: fix history * WS fix string_t -> FuriString* * WS: add images * WS: history record update when receiving data from the sensor again * WS: add receiver info, delete extra code * WS: add protocol ThermoPRO_TX4 * [FL-2900] SubGhz: Move icons in Sub-GHz * WS: add Notification * [FL-2890] SubGhz: Rename *_user files in resources to _user.example * WS: add about scene * WS: removing redundant code * WS: add protocol Nexus-TH * WS: add protocol GT_WT03 * WS: fix notification and rename "Weather Station" -> "Read Weather Station" * SubGhz: partial unit tests fix * SubGhz: fix unit_test * SubGhz: remove dead code * SubGhz: rename SubGhzPresetDefinition into SubGhzRadioPreset, cleanup subghz types. Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
99 lines
2.7 KiB
C
99 lines
2.7 KiB
C
#pragma once
|
|
|
|
#include <furi.h>
|
|
|
|
#include "subghz_keystore.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct SubGhzEnvironment SubGhzEnvironment;
|
|
|
|
/**
|
|
* Allocate SubGhzEnvironment.
|
|
* @return SubGhzEnvironment* pointer to a SubGhzEnvironment instance
|
|
*/
|
|
SubGhzEnvironment* subghz_environment_alloc();
|
|
|
|
/**
|
|
* Free SubGhzEnvironment.
|
|
* @param instance Pointer to a SubGhzEnvironment instance
|
|
*/
|
|
void subghz_environment_free(SubGhzEnvironment* instance);
|
|
|
|
/**
|
|
* Downloading the manufacture key file.
|
|
* @param instance Pointer to a SubGhzEnvironment instance
|
|
* @param filename Full path to the file
|
|
* @return true On succes
|
|
*/
|
|
bool subghz_environment_load_keystore(SubGhzEnvironment* instance, const char* filename);
|
|
|
|
/**
|
|
* Get pointer to a SubGhzKeystore* instance.
|
|
* @return SubGhzEnvironment* pointer to a SubGhzEnvironment instance
|
|
*/
|
|
SubGhzKeystore* subghz_environment_get_keystore(SubGhzEnvironment* instance);
|
|
|
|
/**
|
|
* Set filename to work with Came Atomo.
|
|
* @param instance Pointer to a SubGhzEnvironment instance
|
|
* @param filename Full path to the file
|
|
*/
|
|
void subghz_environment_set_came_atomo_rainbow_table_file_name(
|
|
SubGhzEnvironment* instance,
|
|
const char* filename);
|
|
|
|
/**
|
|
* Get filename to work with Came Atomo.
|
|
* @param instance Pointer to a SubGhzEnvironment instance
|
|
* @return Full path to the file
|
|
*/
|
|
const char* subghz_environment_get_came_atomo_rainbow_table_file_name(SubGhzEnvironment* instance);
|
|
|
|
/**
|
|
* Set filename to work with Nice Flor-S.
|
|
* @param instance Pointer to a SubGhzEnvironment instance
|
|
* @param filename Full path to the file
|
|
*/
|
|
void subghz_environment_set_nice_flor_s_rainbow_table_file_name(
|
|
SubGhzEnvironment* instance,
|
|
const char* filename);
|
|
|
|
/**
|
|
* Get filename to work with Nice Flor-S.
|
|
* @param instance Pointer to a SubGhzEnvironment instance
|
|
* @return Full path to the file
|
|
*/
|
|
const char*
|
|
subghz_environment_get_nice_flor_s_rainbow_table_file_name(SubGhzEnvironment* instance);
|
|
|
|
/**
|
|
* Set list of protocols to work.
|
|
* @param instance Pointer to a SubGhzEnvironment instance
|
|
* @param protocol_registry_items Pointer to a SubGhzProtocolRegistry
|
|
*/
|
|
void subghz_environment_set_protocol_registry(
|
|
SubGhzEnvironment* instance,
|
|
void* protocol_registry_items);
|
|
|
|
/**
|
|
* Get list of protocols to work.
|
|
* @param instance Pointer to a SubGhzEnvironment instance
|
|
* @return Pointer to a SubGhzProtocolRegistry
|
|
*/
|
|
void* subghz_environment_get_protocol_registry(SubGhzEnvironment* instance);
|
|
|
|
/**
|
|
* Get list of protocols names.
|
|
* @param instance Pointer to a SubGhzEnvironment instance
|
|
* @param idx index protocols
|
|
* @return Pointer to a SubGhzProtocolRegistry
|
|
*/
|
|
const char* subghz_environment_get_protocol_name_registry(SubGhzEnvironment* instance, size_t idx);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|