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
|
|
|
|
|
|
|
typedef struct SubghzFrequencyAnalyzer SubghzFrequencyAnalyzer;
|
|
|
|
|
2021-10-25 14:37:14 +00:00
|
|
|
typedef void (*SubghzFrequencyAnalyzerCallback)(SubghzCustomEvent event, void* context);
|
2021-10-10 14:35:10 +00:00
|
|
|
|
|
|
|
void subghz_frequency_analyzer_set_callback(
|
|
|
|
SubghzFrequencyAnalyzer* subghz_frequency_analyzer,
|
|
|
|
SubghzFrequencyAnalyzerCallback callback,
|
|
|
|
void* context);
|
|
|
|
|
|
|
|
SubghzFrequencyAnalyzer* subghz_frequency_analyzer_alloc();
|
|
|
|
|
|
|
|
void subghz_frequency_analyzer_free(SubghzFrequencyAnalyzer* subghz_static);
|
|
|
|
|
|
|
|
View* subghz_frequency_analyzer_get_view(SubghzFrequencyAnalyzer* subghz_static);
|