aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/USRPDevice.h
diff options
context:
space:
mode:
authorThomas Tsou <tom@tsou.cc>2013-04-05 15:36:30 -0400
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2013-06-24 01:46:33 +0400
commit00493f1a413a743c27ff2bb11c041e63a0f0d4ce (patch)
treef4f32fd7b76c42cf234757e3dad853a57778d679 /Transceiver52M/USRPDevice.h
parentd565556b4b39eed6e6a01ed4c6bf85ee6ce5929c (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/USRPDevice.h')
-rw-r--r--Transceiver52M/USRPDevice.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Transceiver52M/USRPDevice.h b/Transceiver52M/USRPDevice.h
index b88afcb..f2a9a6d 100644
--- a/Transceiver52M/USRPDevice.h
+++ b/Transceiver52M/USRPDevice.h
@@ -126,8 +126,7 @@ private:
/** Set priority not supported */
void setPriority() { return; }
- /** Only USB bus supported */
- busType getBus() { return USB; }
+ enum TxWindowType getWindowType() { return TX_WINDOW_USRP1; }
/**
Read samples from the USRP.