diff --git a/firmware/application/receiver_model.cpp b/firmware/application/receiver_model.cpp index dd6554c6..7947a652 100644 --- a/firmware/application/receiver_model.cpp +++ b/firmware/application/receiver_model.cpp @@ -337,14 +337,26 @@ void ReceiverModel::update_modulation_configuration() { } } +size_t ReceiverModel::am_configuration() const { + return am_config_index; +} + void ReceiverModel::update_am_configuration() { am_configs[am_config_index].apply(); } +size_t ReceiverModel::nbfm_configuration() const { + return nbfm_config_index; +} + void ReceiverModel::update_nbfm_configuration() { nbfm_configs[nbfm_config_index].apply(); } +size_t ReceiverModel::wfm_configuration() const { + return wfm_config_index; +} + void ReceiverModel::update_wfm_configuration() { wfm_configs[wfm_config_index].apply(); } diff --git a/firmware/application/receiver_model.hpp b/firmware/application/receiver_model.hpp index 3c1749c6..4b21c87b 100644 --- a/firmware/application/receiver_model.hpp +++ b/firmware/application/receiver_model.hpp @@ -80,8 +80,13 @@ public: void set_baseband_configuration(const BasebandConfiguration config); + size_t am_configuration() const; void set_am_configuration(const size_t n); + + size_t nbfm_configuration() const; void set_nbfm_configuration(const size_t n); + + size_t wfm_configuration() const; void set_wfm_configuration(const size_t n); private: