summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Corgan2012-04-05 09:09:46 -0700
committerNicholas Corgan2012-04-05 09:09:46 -0700
commit11d61c53c7ea781f474c6e34155139b0b2bb0df6 (patch)
tree8aa094dad8816a842724d47d67cb77c989195f1b
parent27dd737afdab4123e40a1b886635b387b3c063c6 (diff)
downloadgnuradio-11d61c53c7ea781f474c6e34155139b0b2bb0df6.tar.gz
gnuradio-11d61c53c7ea781f474c6e34155139b0b2bb0df6.tar.bz2
gnuradio-11d61c53c7ea781f474c6e34155139b0b2bb0df6.zip
gr-uhd: minor aesthetic and consistency changes
-rwxr-xr-xgr-uhd/apps/uhd_fft.py7
-rwxr-xr-xgr-uhd/apps/uhd_siggen.py2
-rw-r--r--gr-uhd/include/gr_uhd_usrp_sink.h2
-rw-r--r--gr-uhd/include/gr_uhd_usrp_source.h2
-rw-r--r--gr-uhd/lib/gr_uhd_usrp_sink.cc2
-rw-r--r--gr-uhd/lib/gr_uhd_usrp_source.cc2
6 files changed, 8 insertions, 9 deletions
diff --git a/gr-uhd/apps/uhd_fft.py b/gr-uhd/apps/uhd_fft.py
index a3858e341..5637c24a7 100755
--- a/gr-uhd/apps/uhd_fft.py
+++ b/gr-uhd/apps/uhd_fft.py
@@ -197,15 +197,14 @@ class app_top_block(stdgui2.std_top_block):
callback=self.set_gain)
try:
- usrp_config_val = "%s (%s), %s (%s, %s, %s)" % (self.u.get_usrp_rx_info().get("mboard_id").split(" ")[0], self.u.get_usrp_rx_info().get("mboard_serial"),
- self.u.get_usrp_rx_info().get("rx_id").split(" ")[0].split(",")[0], self.u.get_usrp_rx_info().get("rx_serial"), self.u.get_subdev_spec(), self.u.get_antenna())
+ usrp_config_val = "%s (%s), %s (%s, %s, %s)" % (self.u.get_usrp_info().get("mboard_id").split(" ")[0], self.u.get_usrp_info().get("mboard_serial"),
+ self.u.get_usrp_info().get("rx_id").split(" ")[0].split(",")[0], self.u.get_usrp_info().get("rx_serial"), self.u.get_subdev_spec(), self.u.get_antenna())
except:
usrp_config_val = "Not implemented in this version."
uhd_box = forms.static_box_sizer(parent=self.panel,
label="UHD (%s)" % (uhd.get_version_string()),
- orient=wx.HORIZONTAL,
- bold=True)
+ orient=wx.HORIZONTAL)
usrp_config_form = forms.static_text(
parent=self.panel,
sizer=uhd_box,
diff --git a/gr-uhd/apps/uhd_siggen.py b/gr-uhd/apps/uhd_siggen.py
index ff36b4f4d..095b7dcf0 100755
--- a/gr-uhd/apps/uhd_siggen.py
+++ b/gr-uhd/apps/uhd_siggen.py
@@ -109,7 +109,7 @@ class top_block(gr.top_block, pubsub):
# Setup USRP Configuration value
try:
- usrp_info = self._u.get_usrp_tx_info()
+ usrp_info = self._u.get_usrp_info()
usrp_mb = usrp_info.get("mboard_id").split(" ")[0]
usrp_mbs = usrp_info.get("mboard_serial")
usrp_db = usrp_info.get("tx_id").split(" ")[0]
diff --git a/gr-uhd/include/gr_uhd_usrp_sink.h b/gr-uhd/include/gr_uhd_usrp_sink.h
index fff567438..dffdf810f 100644
--- a/gr-uhd/include/gr_uhd_usrp_sink.h
+++ b/gr-uhd/include/gr_uhd_usrp_sink.h
@@ -137,7 +137,7 @@ public:
* \param chan channel index 0 to N-1
* \return TX info
*/
- virtual uhd::dict<std::string, std::string> get_usrp_tx_info(size_t chan = 0) = 0;
+ virtual uhd::dict<std::string, std::string> get_usrp_info(size_t chan = 0) = 0;
/*!
* Set the frontend specification.
diff --git a/gr-uhd/include/gr_uhd_usrp_source.h b/gr-uhd/include/gr_uhd_usrp_source.h
index 0dde4b194..64e9fb098 100644
--- a/gr-uhd/include/gr_uhd_usrp_source.h
+++ b/gr-uhd/include/gr_uhd_usrp_source.h
@@ -129,7 +129,7 @@ public:
* \param chan channel index 0 to N-1
* \return RX info
*/
- virtual uhd::dict<std::string, std::string> get_usrp_rx_info(size_t chan = 0) = 0;
+ virtual uhd::dict<std::string, std::string> get_usrp_info(size_t chan = 0) = 0;
/*!
* Set the frontend specification.
diff --git a/gr-uhd/lib/gr_uhd_usrp_sink.cc b/gr-uhd/lib/gr_uhd_usrp_sink.cc
index d86165f65..752817664 100644
--- a/gr-uhd/lib/gr_uhd_usrp_sink.cc
+++ b/gr-uhd/lib/gr_uhd_usrp_sink.cc
@@ -66,7 +66,7 @@ public:
_dev = uhd::usrp::multi_usrp::make(device_addr);
}
- uhd::dict<std::string, std::string> get_usrp_tx_info(size_t chan){
+ uhd::dict<std::string, std::string> get_usrp_info(size_t chan){
#ifdef UHD_USRP_MULTI_USRP_GET_USRP_INFO_API
return _dev->get_usrp_tx_info(chan);
#else
diff --git a/gr-uhd/lib/gr_uhd_usrp_source.cc b/gr-uhd/lib/gr_uhd_usrp_source.cc
index 49558cee6..d06983cd3 100644
--- a/gr-uhd/lib/gr_uhd_usrp_source.cc
+++ b/gr-uhd/lib/gr_uhd_usrp_source.cc
@@ -70,7 +70,7 @@ public:
_dev = uhd::usrp::multi_usrp::make(device_addr);
}
- uhd::dict<std::string, std::string> get_usrp_rx_info(size_t chan){
+ uhd::dict<std::string, std::string> get_usrp_info(size_t chan){
#ifdef UHD_USRP_MULTI_USRP_GET_USRP_INFO_API
return _dev->get_usrp_rx_info(chan);
#else