unleashed-firmware/applications/main/subghz/subghz_last_settings.h

31 lines
881 B
C
Raw Normal View History

2022-09-28 01:01:09 +03: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 04:49:06 +03:00
int32_t preset;
uint32_t frequency_analyzer_feedback_level;
2022-11-17 00:37:35 +03:00
float frequency_analyzer_trigger;
2023-06-18 21:09:07 +03:00
// TODO not using but saved so as not to change the version
bool external_module_enabled;
bool external_module_power_5v_disable;
2023-07-27 18:25:32 +03:00
bool external_module_power_amp;
2023-06-18 21:09:07 +03:00
// saved so as not to change the version
bool timestamp_file_names;
bool enable_hopping;
2022-09-28 01:01:09 +03:00
} SubGhzLastSettings;
2022-09-28 04:49:06 +03: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);
bool subghz_last_settings_save(SubGhzLastSettings* instance);
void subghz_last_settings_log(SubGhzLastSettings* instance);