aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp2/usrp2_impl.hpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-06-28 14:46:00 -0700
committerJosh Blum <josh@joshknows.com>2011-06-28 14:46:00 -0700
commitb00e36521faccaacc3e2f818780010d8cfb1bbdf (patch)
tree85b594dcab94e85b807508c6ad46b1697db179d0 /host/lib/usrp2/usrp2_impl.hpp
parent8aa22b5c091c6c7d822990aa078dc782b08e51e7 (diff)
downloaduhd-b00e36521faccaacc3e2f818780010d8cfb1bbdf.tar.gz
uhd-b00e36521faccaacc3e2f818780010d8cfb1bbdf.tar.bz2
uhd-b00e36521faccaacc3e2f818780010d8cfb1bbdf.zip
usrp2: filled in missing TODOs and code cleanup
Diffstat (limited to 'host/lib/usrp2/usrp2_impl.hpp')
-rw-r--r--host/lib/usrp2/usrp2_impl.hpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/host/lib/usrp2/usrp2_impl.hpp b/host/lib/usrp2/usrp2_impl.hpp
index a26ab455d..8ec61f739 100644
--- a/host/lib/usrp2/usrp2_impl.hpp
+++ b/host/lib/usrp2/usrp2_impl.hpp
@@ -88,7 +88,7 @@ public:
private:
uhd::property_tree::sptr _tree;
- struct mboard_stuff_type{
+ struct mb_container_type{
usrp2_iface::sptr iface;
usrp2_clock_ctrl::sptr clock;
usrp2_codec_ctrl::sptr codec;
@@ -102,14 +102,15 @@ private:
std::vector<uhd::transport::zero_copy_if::sptr> err_xports;
uhd::usrp::dboard_manager::sptr dboard_manager;
uhd::usrp::dboard_iface::sptr dboard_iface;
+ size_t rx_chan_occ, tx_chan_occ;
};
- std::vector<mboard_stuff_type> _mboard_stuff;
+ uhd::dict<std::string, mb_container_type> _mbc;
- void set_mb_eeprom(const size_t which_mb, const uhd::usrp::mboard_eeprom_t &mb_eeprom);
- void set_db_eeprom(const size_t which_mb, const std::string &type, const uhd::usrp::dboard_eeprom_t &db_eeprom);
+ void set_mb_eeprom(const std::string &, const uhd::usrp::mboard_eeprom_t &);
+ void set_db_eeprom(const std::string &, const std::string &, const uhd::usrp::dboard_eeprom_t &);
- uhd::sensor_value_t get_mimo_locked(const size_t which_mb);
- uhd::sensor_value_t get_ref_locked(const size_t which_mb);
+ uhd::sensor_value_t get_mimo_locked(const std::string &);
+ uhd::sensor_value_t get_ref_locked(const std::string &);
//device properties interface
void get(const wax::obj &, wax::obj &val){
@@ -123,8 +124,10 @@ private:
void update_tick_rate(const double rate);
void update_rx_samp_rate(const double rate);
void update_tx_samp_rate(const double rate);
- void update_rx_subdev_spec(const size_t, const uhd::usrp::subdev_spec_t &);
- void update_tx_subdev_spec(const size_t, const uhd::usrp::subdev_spec_t &);
+ void update_rx_subdev_spec(const std::string &, const uhd::usrp::subdev_spec_t &);
+ void update_tx_subdev_spec(const std::string &, const uhd::usrp::subdev_spec_t &);
+ double set_tx_dsp_freq(const std::string &, const double);
+ void update_ref_source(const std::string &, const std::string &);
};
#endif /* INCLUDED_USRP2_IMPL_HPP */