mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-03 17:59:16 +00:00
23 lines
680 B
C
23 lines
680 B
C
|
#pragma once
|
||
|
|
||
|
#include <gui/view.h>
|
||
|
|
||
|
typedef enum {
|
||
|
SubghzFrequencyAnalyzerEventOnlyRx,
|
||
|
} SubghzFrequencyAnalyzerEvent;
|
||
|
|
||
|
typedef struct SubghzFrequencyAnalyzer SubghzFrequencyAnalyzer;
|
||
|
|
||
|
typedef void (*SubghzFrequencyAnalyzerCallback)(SubghzFrequencyAnalyzerEvent event, void* context);
|
||
|
|
||
|
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);
|