aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/radioDevice.h
diff options
context:
space:
mode:
authorTom Tsou <tom.tsou@ettus.com>2016-07-17 19:29:08 -0700
committerTom Tsou <tom.tsou@ettus.com>2016-07-17 19:34:22 -0700
commit2f3e60bc1f7da051183fe00f961d14da6d2c5981 (patch)
treec4a8ffdb1e0f2c23f4899078ba1a7153b537a16f /Transceiver52M/radioDevice.h
parentcbfef6e40a030a7e99c8bba49482ac53f05b803b (diff)
uhd: Add command line option for GPS reference
Unlike earlier versions of UHD, the current release (3.9.2) does not automatically select on-board GPSDO as the reference source. Modify the command line settings to allow explicit selection of GPS in addition to the external setting. Simultaneous GPS and external reference settingis disallowed. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
Diffstat (limited to 'Transceiver52M/radioDevice.h')
-rw-r--r--Transceiver52M/radioDevice.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Transceiver52M/radioDevice.h b/Transceiver52M/radioDevice.h
index 142fcf6..711d678 100644
--- a/Transceiver52M/radioDevice.h
+++ b/Transceiver52M/radioDevice.h
@@ -44,11 +44,17 @@ class RadioDevice {
DIVERSITY,
};
+ enum ReferenceType {
+ REF_INTERNAL,
+ REF_EXTERNAL,
+ REF_GPS,
+ };
+
static RadioDevice *make(size_t tx_sps, size_t rx_sps, InterfaceType type,
size_t chans = 1, double offset = 0.0);
/** Initialize the USRP */
- virtual int open(const std::string &args = "", bool extref = false, bool swap_channels = false)=0;
+ virtual int open(const std::string &args, int ref, bool swap_channels)=0;
virtual ~RadioDevice() { }