diff options
author | Josh Blum <josh@joshknows.com> | 2010-01-29 00:24:15 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-01-29 00:24:15 -0800 |
commit | 30a8d2ecc36ce8ad6c01032e514ac66a277f06d0 (patch) | |
tree | 894b16a38d02c677ab2038932838064edc325ab4 /lib/usrp/dboard/manager.cpp | |
parent | d5d9da3114bf069c05a8dcb7fca32ccd70405512 (diff) | |
download | uhd-30a8d2ecc36ce8ad6c01032e514ac66a277f06d0.tar.gz uhd-30a8d2ecc36ce8ad6c01032e514ac66a277f06d0.tar.bz2 uhd-30a8d2ecc36ce8ad6c01032e514ac66a277f06d0.zip |
Added dboard id enum.
Moved timespec into its own header.
Diffstat (limited to 'lib/usrp/dboard/manager.cpp')
-rw-r--r-- | lib/usrp/dboard/manager.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/usrp/dboard/manager.cpp b/lib/usrp/dboard/manager.cpp index e9d973cb5..43152a064 100644 --- a/lib/usrp/dboard/manager.cpp +++ b/lib/usrp/dboard/manager.cpp @@ -11,6 +11,7 @@ using namespace usrp_uhd; using namespace usrp_uhd::usrp::dboard; +using namespace boost::assign; /*********************************************************************** * register internal dboards @@ -28,16 +29,16 @@ static void register_internal_dboards(void){ //ensure that this function can only be called once per instance static bool called = false; if (called) return; called = true; - //register the known dboards (dboard id, constructor, num subdevs) - manager::register_subdevs(0x0000, &basic_tx::make, boost::assign::list_of("")); - manager::register_subdevs(0x0001, &basic_rx::make, boost::assign::list_of("a")("b")("ab")); + //register the known dboards (dboard id, constructor, subdev names) + manager::register_subdevs(ID_BASIC_TX, &basic_tx::make, list_of("")); + manager::register_subdevs(ID_BASIC_RX, &basic_rx::make, list_of("a")("b")("ab")); } /*********************************************************************** * storage and registering for dboards **********************************************************************/ //map a dboard id to a dboard constructor -static std::map<manager::dboard_id_t, manager::dboard_ctor_t> id_to_ctor_map; +static std::map<dboard_id_t, manager::dboard_ctor_t> id_to_ctor_map; //map a dboard constructor to subdevice names static std::map<manager::dboard_ctor_t, prop_names_t> ctor_to_names_map; @@ -99,7 +100,7 @@ private: * dboard manager methods **********************************************************************/ static manager::dboard_ctor_t const& get_dboard_ctor( - manager::dboard_id_t dboard_id, + dboard_id_t dboard_id, std::string const& xx_type ){ //verify that there is a registered constructor for this id |