2022-09-27 22:01:09 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <furi_hal.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <storage/storage.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
uint32_t frequency;
|
2022-09-28 01:49:06 +00:00
|
|
|
int32_t preset;
|
2022-10-11 14:45:46 +00:00
|
|
|
uint32_t frequency_analyzer_feedback_level;
|
2022-11-16 21:37:35 +00:00
|
|
|
float frequency_analyzer_trigger;
|
2023-06-18 18:09:07 +00:00
|
|
|
// TODO not using but saved so as not to change the version
|
2023-03-16 12:02:23 +00:00
|
|
|
bool external_module_enabled;
|
2023-03-16 13:03:22 +00:00
|
|
|
bool external_module_power_5v_disable;
|
2023-07-27 15:25:32 +00:00
|
|
|
bool external_module_power_amp;
|
2023-06-18 18:09:07 +00:00
|
|
|
// saved so as not to change the version
|
2023-04-21 03:46:10 +00:00
|
|
|
bool timestamp_file_names;
|
2023-08-04 14:52:16 +00:00
|
|
|
bool enable_hopping;
|
2022-09-27 22:01:09 +00:00
|
|
|
} SubGhzLastSettings;
|
|
|
|
|
2022-09-28 01:49:06 +00:00
|
|
|
SubGhzLastSettings* subghz_last_settings_alloc(void);
|
|
|
|
|
|
|
|
void subghz_last_settings_free(SubGhzLastSettings* instance);
|
|
|
|
|
|
|
|
void subghz_last_settings_load(SubGhzLastSettings* instance, size_t preset_count);
|
|
|
|
|
2022-10-01 04:39:51 +00:00
|
|
|
bool subghz_last_settings_save(SubGhzLastSettings* instance);
|
2023-08-04 14:52:16 +00:00
|
|
|
|
|
|
|
void subghz_last_settings_log(SubGhzLastSettings* instance);
|