diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-18 16:39:45 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-18 16:39:45 -0700 |
commit | 16335c108272321408cae01f2d2bf234eb83fe32 (patch) | |
tree | 29755fbbf11d60380d81a77acc9a449f5b056ea9 /host/lib/usrp/dboard_manager.cpp | |
parent | 1db016bc6503cdca76025f131773e550bd895d48 (diff) | |
download | uhd-16335c108272321408cae01f2d2bf234eb83fe32.tar.gz uhd-16335c108272321408cae01f2d2bf234eb83fe32.tar.bz2 uhd-16335c108272321408cae01f2d2bf234eb83fe32.zip |
uhd: added dboard manager call to register xcvr board, implemented in xcvr dboard code
Diffstat (limited to 'host/lib/usrp/dboard_manager.cpp')
-rw-r--r-- | host/lib/usrp/dboard_manager.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard_manager.cpp b/host/lib/usrp/dboard_manager.cpp index 35ddfc4ee..31af11ed0 100644 --- a/host/lib/usrp/dboard_manager.cpp +++ b/host/lib/usrp/dboard_manager.cpp @@ -43,7 +43,7 @@ typedef uhd::dict<dboard_id_t, args_t> id_to_args_map_t; UHD_SINGLETON_FCN(id_to_args_map_t, get_id_to_args_map) void dboard_manager::register_dboard( - dboard_id_t dboard_id, + const dboard_id_t &dboard_id, dboard_ctor_t dboard_ctor, const std::string &name, const prop_names_t &subdev_names @@ -57,6 +57,17 @@ void dboard_manager::register_dboard( get_id_to_args_map()[dboard_id] = args_t(dboard_ctor, name, subdev_names); } +void dboard_manager::register_dboard( + const dboard_id_t &rx_dboard_id, + const dboard_id_t &tx_dboard_id, + dboard_ctor_t dboard_ctor, + const std::string &name, + const prop_names_t &subdev_names +){ + register_dboard(rx_dboard_id, dboard_ctor, name, subdev_names); + register_dboard(tx_dboard_id, dboard_ctor, name, subdev_names); +} + std::string dboard_id_t::to_pp_string(void) const{ std::string name = "unknown"; if (get_id_to_args_map().has_key(*this)){ |