mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 15:00:46 +00:00
8c44dfb6af
- Save preset - Save RSSI - Save Ignore Starline, Cars, Magellan - Fix types of COUNT_OF result - Move subghz_set_default_preset to SubGhzTxRx - In subghz_txrx_radio_device_is_tx_allowed check for SubGhzTxRxStateSleep is not working
35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
#include "../helpers/subghz_custom_event.h"
|
|
#include "../helpers/subghz_txrx.h"
|
|
|
|
typedef enum {
|
|
SubGHzFrequencyAnalyzerFeedbackLevelAll,
|
|
SubGHzFrequencyAnalyzerFeedbackLevelVibro,
|
|
SubGHzFrequencyAnalyzerFeedbackLevelMute
|
|
} SubGHzFrequencyAnalyzerFeedbackLevel;
|
|
|
|
typedef struct SubGhzFrequencyAnalyzer SubGhzFrequencyAnalyzer;
|
|
|
|
typedef void (*SubGhzFrequencyAnalyzerCallback)(SubGhzCustomEvent event, void* context);
|
|
|
|
void subghz_frequency_analyzer_set_callback(
|
|
SubGhzFrequencyAnalyzer* subghz_frequency_analyzer,
|
|
SubGhzFrequencyAnalyzerCallback callback,
|
|
void* context);
|
|
|
|
SubGhzFrequencyAnalyzer* subghz_frequency_analyzer_alloc(SubGhzTxRx* txrx);
|
|
|
|
void subghz_frequency_analyzer_free(SubGhzFrequencyAnalyzer* subghz_static);
|
|
|
|
View* subghz_frequency_analyzer_get_view(SubGhzFrequencyAnalyzer* subghz_static);
|
|
|
|
uint32_t subghz_frequency_analyzer_get_frequency_to_save(SubGhzFrequencyAnalyzer* instance);
|
|
|
|
SubGHzFrequencyAnalyzerFeedbackLevel subghz_frequency_analyzer_feedback_level(
|
|
SubGhzFrequencyAnalyzer* instance,
|
|
SubGHzFrequencyAnalyzerFeedbackLevel level,
|
|
bool update);
|
|
|
|
float subghz_frequency_analyzer_get_trigger_level(SubGhzFrequencyAnalyzer* instance);
|