2021-10-10 17:35:10 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gui/view.h>
|
2021-10-25 17:37:14 +03:00
|
|
|
#include "../helpers/subghz_custom_event.h"
|
2023-07-06 16:50:25 +03:00
|
|
|
#include "../helpers/subghz_txrx.h"
|
2021-10-10 17:35:10 +03:00
|
|
|
|
2022-10-19 08:39:11 +03:00
|
|
|
typedef enum {
|
|
|
|
SubGHzFrequencyAnalyzerFeedbackLevelAll,
|
|
|
|
SubGHzFrequencyAnalyzerFeedbackLevelVibro,
|
|
|
|
SubGHzFrequencyAnalyzerFeedbackLevelMute
|
|
|
|
} SubGHzFrequencyAnalyzerFeedbackLevel;
|
|
|
|
|
2022-03-03 12:48:56 +03:00
|
|
|
typedef struct SubGhzFrequencyAnalyzer SubGhzFrequencyAnalyzer;
|
2021-10-10 17:35:10 +03:00
|
|
|
|
2022-03-03 12:48:56 +03:00
|
|
|
typedef void (*SubGhzFrequencyAnalyzerCallback)(SubGhzCustomEvent event, void* context);
|
2021-10-10 17:35:10 +03:00
|
|
|
|
|
|
|
void subghz_frequency_analyzer_set_callback(
|
2022-03-03 12:48:56 +03:00
|
|
|
SubGhzFrequencyAnalyzer* subghz_frequency_analyzer,
|
|
|
|
SubGhzFrequencyAnalyzerCallback callback,
|
2021-10-10 17:35:10 +03:00
|
|
|
void* context);
|
|
|
|
|
2023-07-06 16:50:25 +03:00
|
|
|
SubGhzFrequencyAnalyzer* subghz_frequency_analyzer_alloc(SubGhzTxRx* txrx);
|
2021-10-10 17:35:10 +03:00
|
|
|
|
2022-03-03 12:48:56 +03:00
|
|
|
void subghz_frequency_analyzer_free(SubGhzFrequencyAnalyzer* subghz_static);
|
2021-10-10 17:35:10 +03:00
|
|
|
|
2022-03-03 12:48:56 +03:00
|
|
|
View* subghz_frequency_analyzer_get_view(SubGhzFrequencyAnalyzer* subghz_static);
|
2022-09-28 05:22:02 +03:00
|
|
|
|
|
|
|
uint32_t subghz_frequency_analyzer_get_frequency_to_save(SubGhzFrequencyAnalyzer* instance);
|
2022-10-11 17:45:46 +03:00
|
|
|
|
2022-10-19 08:39:11 +03:00
|
|
|
SubGHzFrequencyAnalyzerFeedbackLevel subghz_frequency_analyzer_feedback_level(
|
2022-10-11 17:45:46 +03:00
|
|
|
SubGhzFrequencyAnalyzer* instance,
|
2022-10-19 08:39:11 +03:00
|
|
|
SubGHzFrequencyAnalyzerFeedbackLevel level,
|
2022-10-11 17:45:46 +03:00
|
|
|
bool update);
|
2022-11-17 00:37:35 +03:00
|
|
|
|
|
|
|
float subghz_frequency_analyzer_get_trigger_level(SubGhzFrequencyAnalyzer* instance);
|