2021-10-10 14:35:10 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gui/view.h>
|
2021-10-25 14:37:14 +00:00
|
|
|
#include "../helpers/subghz_custom_event.h"
|
2021-10-10 14:35:10 +00:00
|
|
|
|
2022-03-03 09:48:56 +00:00
|
|
|
typedef struct SubGhzFrequencyAnalyzer SubGhzFrequencyAnalyzer;
|
2021-10-10 14:35:10 +00:00
|
|
|
|
2022-03-03 09:48:56 +00:00
|
|
|
typedef void (*SubGhzFrequencyAnalyzerCallback)(SubGhzCustomEvent event, void* context);
|
2021-10-10 14:35:10 +00:00
|
|
|
|
|
|
|
void subghz_frequency_analyzer_set_callback(
|
2022-03-03 09:48:56 +00:00
|
|
|
SubGhzFrequencyAnalyzer* subghz_frequency_analyzer,
|
|
|
|
SubGhzFrequencyAnalyzerCallback callback,
|
2021-10-10 14:35:10 +00:00
|
|
|
void* context);
|
|
|
|
|
2022-03-03 09:48:56 +00:00
|
|
|
SubGhzFrequencyAnalyzer* subghz_frequency_analyzer_alloc();
|
2021-10-10 14:35:10 +00:00
|
|
|
|
2022-03-03 09:48:56 +00:00
|
|
|
void subghz_frequency_analyzer_free(SubGhzFrequencyAnalyzer* subghz_static);
|
2021-10-10 14:35:10 +00:00
|
|
|
|
2022-03-03 09:48:56 +00:00
|
|
|
View* subghz_frequency_analyzer_get_view(SubGhzFrequencyAnalyzer* subghz_static);
|
2022-09-28 02:22:02 +00:00
|
|
|
|
|
|
|
uint32_t subghz_frequency_analyzer_get_frequency_to_save(SubGhzFrequencyAnalyzer* instance);
|