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);
|