mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Expose modulation configuration indices.
This commit is contained in:
parent
1cf38387c1
commit
10c7c57fd1
@ -337,14 +337,26 @@ void ReceiverModel::update_modulation_configuration() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size_t ReceiverModel::am_configuration() const {
|
||||||
|
return am_config_index;
|
||||||
|
}
|
||||||
|
|
||||||
void ReceiverModel::update_am_configuration() {
|
void ReceiverModel::update_am_configuration() {
|
||||||
am_configs[am_config_index].apply();
|
am_configs[am_config_index].apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size_t ReceiverModel::nbfm_configuration() const {
|
||||||
|
return nbfm_config_index;
|
||||||
|
}
|
||||||
|
|
||||||
void ReceiverModel::update_nbfm_configuration() {
|
void ReceiverModel::update_nbfm_configuration() {
|
||||||
nbfm_configs[nbfm_config_index].apply();
|
nbfm_configs[nbfm_config_index].apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size_t ReceiverModel::wfm_configuration() const {
|
||||||
|
return wfm_config_index;
|
||||||
|
}
|
||||||
|
|
||||||
void ReceiverModel::update_wfm_configuration() {
|
void ReceiverModel::update_wfm_configuration() {
|
||||||
wfm_configs[wfm_config_index].apply();
|
wfm_configs[wfm_config_index].apply();
|
||||||
}
|
}
|
||||||
|
@ -80,8 +80,13 @@ public:
|
|||||||
|
|
||||||
void set_baseband_configuration(const BasebandConfiguration config);
|
void set_baseband_configuration(const BasebandConfiguration config);
|
||||||
|
|
||||||
|
size_t am_configuration() const;
|
||||||
void set_am_configuration(const size_t n);
|
void set_am_configuration(const size_t n);
|
||||||
|
|
||||||
|
size_t nbfm_configuration() const;
|
||||||
void set_nbfm_configuration(const size_t n);
|
void set_nbfm_configuration(const size_t n);
|
||||||
|
|
||||||
|
size_t wfm_configuration() const;
|
||||||
void set_wfm_configuration(const size_t n);
|
void set_wfm_configuration(const size_t n);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user