summaryrefslogtreecommitdiffstats
path: root/src/Utils.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-02-10 11:31:05 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-02-10 11:31:05 +0100
commit51afbb4f9d0009b88de6cb065bbbb25a4c97f711 (patch)
treedf0163a2387e1424ebe104439333ad09361bfed6 /src/Utils.h
parent245e62aed2fd55ef3b6569e5c0b8466f5aa72cbd (diff)
downloaddabmod-51afbb4f9d0009b88de6cb065bbbb25a4c97f711.tar.gz
dabmod-51afbb4f9d0009b88de6cb065bbbb25a4c97f711.tar.bz2
dabmod-51afbb4f9d0009b88de6cb065bbbb25a4c97f711.zip
Add support for SoapySDR
Diffstat (limited to 'src/Utils.h')
-rw-r--r--src/Utils.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Utils.h b/src/Utils.h
index 46c46d5..e2b8a2f 100644
--- a/src/Utils.h
+++ b/src/Utils.h
@@ -3,7 +3,7 @@
Her Majesty the Queen in Right of Canada (Communications Research
Center Canada)
- Copyright (C) 2015
+ Copyright (C) 2017
Matthias P. Braendli, matthias.braendli@mpb.li
http://opendigitalradio.org
@@ -25,8 +25,7 @@
along with ODR-DabMod. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __UTILS_H_
-#define __UTILS_H_
+#pragma once
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -36,6 +35,7 @@
#include <unistd.h>
#include <stdio.h>
#include <time.h>
+#include <string>
void printUsage(char* progName);
@@ -62,5 +62,6 @@ int set_realtime_prio(int prio);
void set_thread_name(const char *name);
-#endif
+// Convert a channel like 10A to a frequency
+double parseChannel(const std::string& chan);