diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-08 15:52:33 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-08 15:52:33 -0700 |
commit | 1190bc5c1a7bd0946bc55373eca58ec60a100f63 (patch) | |
tree | 1a5596bec1117270afba9f8327711e13201f767a /host/include | |
parent | 4b5792d2a5c6d101f602b5854fb2e7cfb3acf602 (diff) | |
download | uhd-1190bc5c1a7bd0946bc55373eca58ec60a100f63.tar.gz uhd-1190bc5c1a7bd0946bc55373eca58ec60a100f63.tar.bz2 uhd-1190bc5c1a7bd0946bc55373eca58ec60a100f63.zip |
usrp: added calls to get subdev and mboard canonical names
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/usrp/single_usrp.hpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/host/include/uhd/usrp/single_usrp.hpp b/host/include/uhd/usrp/single_usrp.hpp index 1b89a3620..bc6943478 100644 --- a/host/include/uhd/usrp/single_usrp.hpp +++ b/host/include/uhd/usrp/single_usrp.hpp @@ -57,15 +57,21 @@ public: */ virtual device::sptr get_device(void) = 0; + /******************************************************************* + * Mboard methods + ******************************************************************/ /*! * Get a printable name for this usrp. * \return a printable string */ virtual std::string get_pp_string(void) = 0; - /******************************************************************* - * Misc - ******************************************************************/ + /*! + * Get canonical name for this USRP motherboard. + * \return a string representing the name + */ + virtual std::string get_mboard_name(void) = 0; + /*! * Gets the current time in the usrp time registers. * \return a timespec representing current usrp time @@ -113,6 +119,8 @@ public: virtual void set_rx_subdev_spec(const uhd::usrp::subdev_spec_t &spec) = 0; virtual uhd::usrp::subdev_spec_t get_rx_subdev_spec(void) = 0; + virtual std::string get_rx_subdev_name(size_t chan = 0) = 0; + virtual void set_rx_rate(double rate) = 0; virtual double get_rx_rate(void) = 0; @@ -146,6 +154,8 @@ public: virtual void set_tx_subdev_spec(const uhd::usrp::subdev_spec_t &spec) = 0; virtual uhd::usrp::subdev_spec_t get_tx_subdev_spec(void) = 0; + virtual std::string get_tx_subdev_name(size_t chan = 0) = 0; + virtual void set_tx_rate(double rate) = 0; virtual double get_tx_rate(void) = 0; |