mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-30 08:20:21 +00:00
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>
56 lines
1.6 KiB
C
56 lines
1.6 KiB
C
|
|
#pragma once
|
|
|
|
#include <math.h>
|
|
#include <furi.h>
|
|
#include <furi_hal.h>
|
|
#include <lib/flipper_format/flipper_format.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define SUBGHZ_SETTING_DEFAULT_PRESET_COUNT 4
|
|
|
|
typedef struct SubGhzSetting SubGhzSetting;
|
|
|
|
SubGhzSetting* subghz_setting_alloc(void);
|
|
|
|
void subghz_setting_free(SubGhzSetting* instance);
|
|
|
|
void subghz_setting_load(SubGhzSetting* instance, const char* file_path);
|
|
|
|
size_t subghz_setting_get_frequency_count(SubGhzSetting* instance);
|
|
|
|
size_t subghz_setting_get_hopper_frequency_count(SubGhzSetting* instance);
|
|
|
|
size_t subghz_setting_get_preset_count(SubGhzSetting* instance);
|
|
|
|
const char* subghz_setting_get_preset_name(SubGhzSetting* instance, size_t idx);
|
|
|
|
int subghz_setting_get_inx_preset_by_name(SubGhzSetting* instance, const char* preset_name);
|
|
|
|
uint8_t* subghz_setting_get_preset_data(SubGhzSetting* instance, size_t idx);
|
|
|
|
size_t subghz_setting_get_preset_data_size(SubGhzSetting* instance, size_t idx);
|
|
|
|
uint8_t* subghz_setting_get_preset_data_by_name(SubGhzSetting* instance, const char* preset_name);
|
|
|
|
bool subghz_setting_load_custom_preset(
|
|
SubGhzSetting* instance,
|
|
const char* preset_name,
|
|
FlipperFormat* fff_data_file);
|
|
|
|
bool subghz_setting_delete_custom_preset(SubGhzSetting* instance, const char* preset_name);
|
|
|
|
uint32_t subghz_setting_get_frequency(SubGhzSetting* instance, size_t idx);
|
|
|
|
uint32_t subghz_setting_get_hopper_frequency(SubGhzSetting* instance, size_t idx);
|
|
|
|
uint32_t subghz_setting_get_frequency_default_index(SubGhzSetting* instance);
|
|
|
|
uint32_t subghz_setting_get_default_frequency(SubGhzSetting* instance);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|