summaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-03-14 08:32:26 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-03-14 08:32:26 +0100
commit35599ee9c8a2822c0f480673b4d8d8e87049094c (patch)
tree56be40a6f632dd5cdf00e902e3b1fa2d30cccdd1 /src/ConfigParser.cpp
parente0992467867e4832b3333fb0cb5a638d05250bd3 (diff)
downloaddabmod-35599ee9c8a2822c0f480673b4d8d8e87049094c.tar.gz
dabmod-35599ee9c8a2822c0f480673b4d8d8e87049094c.tar.bz2
dabmod-35599ee9c8a2822c0f480673b4d8d8e87049094c.zip
Add analog bandwidth configuration to UHD and Soapy outputs
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r--src/ConfigParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp
index 21f2c23..9813663 100644
--- a/src/ConfigParser.cpp
+++ b/src/ConfigParser.cpp
@@ -235,6 +235,7 @@ static void parse_configfile(
sdr_device_config.rx_antenna = pt.Get("uhdoutput.rx_antenna", "RX2");
sdr_device_config.rxgain = pt.GetReal("uhdoutput.rxgain", 0.0);
sdr_device_config.frequency = pt.GetReal("uhdoutput.frequency", 0);
+ sdr_device_config.bandwidth = pt.GetReal("uhdoutput.bandwidth", 0);
std::string chan = pt.Get("uhdoutput.channel", "");
sdr_device_config.dabMode = mod_settings.dabMode;
@@ -287,6 +288,7 @@ static void parse_configfile(
outputsoapy_conf.tx_antenna = pt.Get("soapyoutput.tx_antenna", "");
outputsoapy_conf.lo_offset = pt.GetReal("soapyoutput.lo_offset", 0.0);
outputsoapy_conf.frequency = pt.GetReal("soapyoutput.frequency", 0);
+ outputsoapy_conf.bandwidth = pt.GetReal("soapyoutput.bandwidth", 0);
std::string chan = pt.Get("soapyoutput.channel", "");
outputsoapy_conf.dabMode = mod_settings.dabMode;