diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-05-07 11:46:45 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-05-07 11:46:45 +0200 |
commit | 04c3650d5f730891c33e45d2f07c052c6393c2e8 (patch) | |
tree | d95431a387598f88b4a05df7a1dd3d3c91f6126b /src/output/SDR.cpp | |
parent | f6e3913f80ec15f2a554dc2ad1fe219cefd1f5d2 (diff) | |
parent | 3a7202306c6aca5be2dad604f62063d605fd0982 (diff) | |
download | dabmod-04c3650d5f730891c33e45d2f07c052c6393c2e8.tar.gz dabmod-04c3650d5f730891c33e45d2f07c052c6393c2e8.tar.bz2 dabmod-04c3650d5f730891c33e45d2f07c052c6393c2e8.zip |
Merge branch 'next' into lime
Diffstat (limited to 'src/output/SDR.cpp')
-rw-r--r-- | src/output/SDR.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/output/SDR.cpp b/src/output/SDR.cpp index 95b54f9..01312ff 100644 --- a/src/output/SDR.cpp +++ b/src/output/SDR.cpp @@ -76,6 +76,7 @@ SDR::SDR(SDRDeviceConfig& config, std::shared_ptr<SDRDevice> device) : RC_ADD_PARAMETER(txgain, "TX gain"); RC_ADD_PARAMETER(rxgain, "RX gain for DPD feedback"); + RC_ADD_PARAMETER(bandwidth, "Analog front-end bandwidth"); RC_ADD_PARAMETER(freq, "Transmission frequency"); RC_ADD_PARAMETER(muting, "Mute the output by stopping the transmitter"); RC_ADD_PARAMETER(temp, "Temperature in degrees C of the device"); @@ -381,6 +382,10 @@ void SDR::set_parameter(const string& parameter, const string& value) ss >> m_config.rxgain; m_device->set_rxgain(m_config.rxgain); } + else if (parameter == "bandwidth") { + ss >> m_config.bandwidth; + m_device->set_bandwidth(m_config.bandwidth); + } else if (parameter == "freq") { ss >> m_config.frequency; m_device->tune(m_config.lo_offset, m_config.frequency); @@ -415,6 +420,9 @@ const string SDR::get_parameter(const string& parameter) const else if (parameter == "rxgain") { ss << m_config.rxgain; } + else if (parameter == "bandwidth") { + ss << m_config.bandwidth; + } else if (parameter == "freq") { ss << m_config.frequency; } |