summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-02-09 20:00:08 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-02-10 07:56:12 +0100
commit245e62aed2fd55ef3b6569e5c0b8466f5aa72cbd (patch)
tree812634c5b4586c0abde4acf1e9cadfe4925474db /src
parentcb14b587504e2a754309199191daecf66ca58fae (diff)
downloaddabmod-245e62aed2fd55ef3b6569e5c0b8466f5aa72cbd.tar.gz
dabmod-245e62aed2fd55ef3b6569e5c0b8466f5aa72cbd.tar.bz2
dabmod-245e62aed2fd55ef3b6569e5c0b8466f5aa72cbd.zip
Set structure default values for UHD configuration
Diffstat (limited to 'src')
-rw-r--r--src/OutputUHD.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/OutputUHD.h b/src/OutputUHD.h
index 36e8b62..9766f36 100644
--- a/src/OutputUHD.h
+++ b/src/OutputUHD.h
@@ -182,14 +182,14 @@ struct OutputUHDConfig {
// The USRP1 can accept two daughterboards
std::string subDevice; // e.g. A:0
- long masterClockRate;
- unsigned sampleRate;
- double frequency;
- double txgain;
- bool enableSync;
- bool muteNoTimestamps;
- unsigned dabMode;
- unsigned maxGPSHoldoverTime;
+ long masterClockRate = 32768000;
+ unsigned sampleRate = 2048000;
+ double frequency = 0.0;
+ double txgain = 0.0;
+ bool enableSync = false;
+ bool muteNoTimestamps = false;
+ unsigned dabMode = 0;
+ unsigned maxGPSHoldoverTime = 0;
/* allowed values : auto, int, sma, mimo */
std::string refclk_src;
@@ -204,10 +204,10 @@ struct OutputUHDConfig {
refclk_lock_loss_behaviour_t refclk_lock_loss_behaviour;
// muting can only be changed using the remote control
- bool muting;
+ bool muting = false;
// static delay in microseconds
- int staticDelayUs;
+ int staticDelayUs = 0;
};