diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-11-26 09:51:49 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-11-26 09:53:04 +0100 |
commit | 3502da409355db3e87ef9c4d6118b9cf50577521 (patch) | |
tree | 92d9f6ab27d8d37e5e3d518b181ad89d1fc33c00 /src/Utils.cpp | |
parent | 6d2083d4b700ef2edc5f4e38d4ecd9df8912a615 (diff) | |
download | dabmod-3502da409355db3e87ef9c4d6118b9cf50577521.tar.gz dabmod-3502da409355db3e87ef9c4d6118b9cf50577521.tar.bz2 dabmod-3502da409355db3e87ef9c4d6118b9cf50577521.zip |
Move USRP GPSDO and time handling into separate class
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r-- | src/Utils.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp index cd116c7..385253b 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -210,3 +210,17 @@ double parseChannel(const std::string& chan) } return freq; } + +int transmission_frame_duration_ms(unsigned int dabMode) +{ + switch (dabMode) { + case 1: return 96; + case 2: return 24; + case 3: return 24; + case 4: return 48; + default: + throw std::runtime_error("invalid DAB mode"); + } +} + + |