aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/radioDevice.h
diff options
context:
space:
mode:
authorThomas Tsou <tom@tsou.cc>2013-04-05 15:36:30 -0400
committerThomas Tsou <tom@tsou.cc>2013-10-18 13:03:41 -0400
commit02d88d13808135f35b1cac7a44260e09affbb428 (patch)
treeff98720f6e494f28a158f9f6a204158aa2e62cef /Transceiver52M/radioDevice.h
parentb4cb4e23c08a134fcbb1ff1ee43e29b964bbbcaa (diff)
Transceiver52M: Add UHD device type checking
UHD device type was previously detected, but only categorized in terms of bus type, USB or Ethernet, and sample rate capability. With the number of supported device increasing, we can no longer easily group devices since we need to handle more and more device-specific peculiarities. Some of these factors are managed internally by the UHD driver, but other factors (e.g. timing offsets) are specific to a single device. Start by maintaining an enumerated list of relevant device types that we can use for applying device specific operations. Also rename the USB/Ethernet grouping to transmit window type because that's what it is. enum uhd_dev_type { USRP1, USRP2, B100, NUM_USRP_TYPES, }; Signed-off-by: Thomas Tsou <tom@tsou.cc>
Diffstat (limited to 'Transceiver52M/radioDevice.h')
-rw-r--r--Transceiver52M/radioDevice.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Transceiver52M/radioDevice.h b/Transceiver52M/radioDevice.h
index f7dcb03..e5cdde8 100644
--- a/Transceiver52M/radioDevice.h
+++ b/Transceiver52M/radioDevice.h
@@ -29,7 +29,7 @@ class RadioDevice {
public:
/* Available transport bus types */
- enum busType { USB, NET };
+ enum TxWindowType { TX_WINDOW_USRP1, TX_WINDOW_FIXED };
static RadioDevice *make(double desiredSampleRate, bool skipRx = false);
@@ -42,8 +42,8 @@ class RadioDevice {
/** Stop the USRP */
virtual bool stop()=0;
- /** Get the bus type */
- virtual enum busType getBus()=0;
+ /** Get the Tx window type */
+ virtual enum TxWindowType getWindowType()=0;
/** Enable thread priority */
virtual void setPriority()=0;