diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2015-09-30 14:53:35 -0700 |
---|---|---|
committer | Ashish Chaudhari <ashish@ettus.com> | 2016-02-16 16:19:01 -0800 |
commit | b26380043719712ef55694076f66bb9429229ef4 (patch) | |
tree | 1b1ec471e64f6a1178199a7b8d23c4b3a06ea3e7 /host/include | |
parent | 1fd73de7d40459f231c969f27ef63dc62f2b5e82 (diff) | |
download | uhd-b26380043719712ef55694076f66bb9429229ef4.tar.gz uhd-b26380043719712ef55694076f66bb9429229ef4.tar.bz2 uhd-b26380043719712ef55694076f66bb9429229ef4.zip |
dboard: Added restricted dboard registration capability
- Moved dboard iface initialization to dboard_manager
- Added a restricted register function. Restricted dboards
don't expose their control iface in the property tree
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/usrp/dboard_manager.hpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/host/include/uhd/usrp/dboard_manager.hpp b/host/include/uhd/usrp/dboard_manager.hpp index d3a3ffb5c..aa8599aa4 100644 --- a/host/include/uhd/usrp/dboard_manager.hpp +++ b/host/include/uhd/usrp/dboard_manager.hpp @@ -74,6 +74,40 @@ public: ); /*! + * Register a restricted rx or tx dboard into the system. + * For single subdevice boards, omit subdev_names. + * The iface for a restricted board is not registered into the property tree. + * \param dboard_id the dboard id (rx or tx) + * \param dboard_ctor the dboard constructor function pointer + * \param name the canonical name for the dboard represented + * \param subdev_names the names of the subdevs on this dboard + */ + static void register_dboard_restricted( + const dboard_id_t &dboard_id, + dboard_ctor_t dboard_ctor, + const std::string &name, + const std::vector<std::string> &subdev_names = std::vector<std::string>(1, "0") + ); + + /*! + * Register a restricted xcvr dboard into the system. + * For single subdevice boards, omit subdev_names. + * The iface for a restricted board is not registered into the property tree. + * \param rx_dboard_id the rx unit dboard id + * \param tx_dboard_id the tx unit dboard id + * \param dboard_ctor the dboard constructor function pointer + * \param name the canonical name for the dboard represented + * \param subdev_names the names of the subdevs on this dboard + */ + static void register_dboard_restricted( + const dboard_id_t &rx_dboard_id, + const dboard_id_t &tx_dboard_id, + dboard_ctor_t dboard_ctor, + const std::string &name, + const std::vector<std::string> &subdev_names = std::vector<std::string>(1, "0") + ); + + /*! * Make a new dboard manager. * \param rx_dboard_id the id of the rx dboard * \param tx_dboard_id the id of the tx dboard |