mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-21 05:14:26 -04:00
Move ReceiverMode enum to receiver_model.hpp
This commit is contained in:
parent
74d6518ea1
commit
e9bf500bfc
3 changed files with 29 additions and 29 deletions
|
@ -357,16 +357,6 @@ constexpr Style style_options_group {
|
|||
.foreground = Color::white(),
|
||||
};
|
||||
|
||||
enum class ReceiverMode : int32_t {
|
||||
AMAudio = 0,
|
||||
NarrowbandFMAudio = 1,
|
||||
WidebandFMAudio = 2,
|
||||
AIS = 3,
|
||||
SpectrumAnalysis = 4,
|
||||
TPMS = 5,
|
||||
ERT = 6,
|
||||
};
|
||||
|
||||
class ReceiverView : public View {
|
||||
public:
|
||||
ReceiverView(NavigationView& nav, ReceiverModel& receiver_model);
|
||||
|
@ -421,13 +411,13 @@ private:
|
|||
{ 19 * 8, 1 * 16 },
|
||||
4,
|
||||
{
|
||||
{ " AM ", toUType(ReceiverMode::AMAudio) },
|
||||
{ "NFM ", toUType(ReceiverMode::NarrowbandFMAudio) },
|
||||
{ "WFM ", toUType(ReceiverMode::WidebandFMAudio) },
|
||||
{ "AIS ", toUType(ReceiverMode::AIS) },
|
||||
{ "TPMS", toUType(ReceiverMode::TPMS) },
|
||||
{ "ERT", toUType(ReceiverMode::ERT) },
|
||||
{ "SPEC", toUType(ReceiverMode::SpectrumAnalysis) },
|
||||
{ " AM ", toUType(ReceiverModel::Mode::AMAudio) },
|
||||
{ "NFM ", toUType(ReceiverModel::Mode::NarrowbandFMAudio) },
|
||||
{ "WFM ", toUType(ReceiverModel::Mode::WidebandFMAudio) },
|
||||
{ "AIS ", toUType(ReceiverModel::Mode::AIS) },
|
||||
{ "TPMS", toUType(ReceiverModel::Mode::TPMS) },
|
||||
{ "ERT", toUType(ReceiverModel::Mode::ERT) },
|
||||
{ "SPEC", toUType(ReceiverModel::Mode::SpectrumAnalysis) },
|
||||
}
|
||||
};
|
||||
/*
|
||||
|
@ -474,7 +464,7 @@ private:
|
|||
void on_rf_amp_changed(bool v);
|
||||
void on_lna_changed(int32_t v_db);
|
||||
void on_vga_changed(int32_t v_db);
|
||||
void on_modulation_changed(ReceiverMode mode);
|
||||
void on_modulation_changed(ReceiverModel::Mode mode);
|
||||
void on_show_options_frequency();
|
||||
void on_show_options_rf_gain();
|
||||
void on_frequency_step_changed(rf::Frequency f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue