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"
|
2021-10-10 17:35:10 +03:00
|
|
|
|
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);
|
|
|
|
|
2022-03-03 12:48:56 +03:00
|
|
|
SubGhzFrequencyAnalyzer* subghz_frequency_analyzer_alloc();
|
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
|
|
|
|
|
|
|
uint8_t subghz_frequency_analyzer_feedback_level(
|
|
|
|
SubGhzFrequencyAnalyzer* instance,
|
|
|
|
uint8_t level,
|
|
|
|
bool update);
|