diff options
Diffstat (limited to 'gr-usrp2/src')
-rw-r--r-- | gr-usrp2/src/usrp2.i | 1 | ||||
-rw-r--r-- | gr-usrp2/src/usrp2_base.cc | 6 | ||||
-rw-r--r-- | gr-usrp2/src/usrp2_base.h | 5 |
3 files changed, 12 insertions, 0 deletions
diff --git a/gr-usrp2/src/usrp2.i b/gr-usrp2/src/usrp2.i index f49a0cafb..2a07103cc 100644 --- a/gr-usrp2/src/usrp2.i +++ b/gr-usrp2/src/usrp2.i @@ -45,6 +45,7 @@ public: ~usrp2_base(); std::string mac_addr() const; + std::string ifc_name() const; %rename(_real_fpga_master_clock_freq) fpga_master_clock_freq; bool fpga_master_clock_freq(long *freq); bool sync_to_pps(); diff --git a/gr-usrp2/src/usrp2_base.cc b/gr-usrp2/src/usrp2_base.cc index 9c0d1fa1e..6b70de607 100644 --- a/gr-usrp2/src/usrp2_base.cc +++ b/gr-usrp2/src/usrp2_base.cc @@ -55,6 +55,12 @@ usrp2_base::mac_addr() const return d_u2->mac_addr(); } +std::string +usrp2_base::ifc_name() const +{ + return d_u2->ifc_name(); +} + bool usrp2_base::fpga_master_clock_freq(long *freq) const { diff --git a/gr-usrp2/src/usrp2_base.h b/gr-usrp2/src/usrp2_base.h index 4b72a707b..8857cc9e1 100644 --- a/gr-usrp2/src/usrp2_base.h +++ b/gr-usrp2/src/usrp2_base.h @@ -54,6 +54,11 @@ public: std::string mac_addr() const; /*! + * \brief Get interface name used to communicat with USRP2 + */ + std::string ifc_name() const; + + /*! * \brief Get USRP2 master clock rate */ bool fpga_master_clock_freq(long *freq) const; |