diff options
author | Josh Blum <josh@joshknows.com> | 2010-01-12 17:31:25 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-01-12 17:31:25 -0800 |
commit | 24d95c3f2cea168d1d314af29839d88cc16d3c7f (patch) | |
tree | 41163be6e0f284f03dc8e08c48c030a7141826d9 /lib/usrp/dboard/manager.cpp | |
parent | 8fdffd2f77016fe95f4a78e16d2d728b650b4d05 (diff) | |
download | uhd-24d95c3f2cea168d1d314af29839d88cc16d3c7f.tar.gz uhd-24d95c3f2cea168d1d314af29839d88cc16d3c7f.tar.bz2 uhd-24d95c3f2cea168d1d314af29839d88cc16d3c7f.zip |
Added the basic rx and tx skeleton wrapper.
Made autotools mods so it passes distcheck.
Diffstat (limited to 'lib/usrp/dboard/manager.cpp')
-rw-r--r-- | lib/usrp/dboard/manager.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/usrp/dboard/manager.cpp b/lib/usrp/dboard/manager.cpp index 1ed563777..4ceaf0b56 100644 --- a/lib/usrp/dboard/manager.cpp +++ b/lib/usrp/dboard/manager.cpp @@ -19,8 +19,8 @@ public: enum type_t{RX_TYPE, TX_TYPE}; //structors - subdev_proxy(xcvr_base::sptr dboard, type_t type) - : _dboard(dboard), _type(type){ + subdev_proxy(xcvr_base::sptr subdev, type_t type) + : _subdev(subdev), _type(type){ /* NOP */ } @@ -29,22 +29,22 @@ public: } private: - xcvr_base::sptr _dboard; + xcvr_base::sptr _subdev; type_t _type; //forward the get calls to the rx or tx void get(const wax::type &key, wax::type &val){ switch(_type){ - case RX_TYPE: return _dboard->rx_get(key, val); - case TX_TYPE: return _dboard->tx_get(key, val); + case RX_TYPE: return _subdev->rx_get(key, val); + case TX_TYPE: return _subdev->tx_get(key, val); } } //forward the set calls to the rx or tx void set(const wax::type &key, const wax::type &val){ switch(_type){ - case RX_TYPE: return _dboard->rx_set(key, val); - case TX_TYPE: return _dboard->tx_set(key, val); + case RX_TYPE: return _subdev->rx_set(key, val); + case TX_TYPE: return _subdev->tx_set(key, val); } } }; @@ -52,8 +52,8 @@ private: /*********************************************************************** * dboard manager methods **********************************************************************/ -//include dboard derived classes: -//TODO #inlude "basic.hpp" +//include dboard derived classes (local include) +#include "dboards.hpp" #define MAKE_DBOARD_ID_WORD(rx_id, tx_id) \ ((uint32_t(rx_id) << 16) | (uint32_t(tx_id) << 0)) @@ -67,10 +67,10 @@ manager::manager( //xcvrs will be added to both vectors switch(MAKE_DBOARD_ID_WORD(rx_dboard_id, tx_dboard_id)){ default: - //_rx_dboards.push_back(xcvr_base::sptr(new basic_rx(0, dboard_interface))); - //_rx_dboards.push_back(xcvr_base::sptr(new basic_rx(1, dboard_interface))); - //_rx_dboards.push_back(xcvr_base::sptr(new basic_rx(2, dboard_interface))); - //_tx_dboards.push_back(xcvr_base::sptr(new basic_tx(0, dboard_interface))); + _rx_dboards.push_back(xcvr_base::sptr(new basic_rx(0, dboard_interface))); + _rx_dboards.push_back(xcvr_base::sptr(new basic_rx(1, dboard_interface))); + _rx_dboards.push_back(xcvr_base::sptr(new basic_rx(2, dboard_interface))); + _tx_dboards.push_back(xcvr_base::sptr(new basic_tx(0, dboard_interface))); break; } } |