diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-14 08:41:13 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-14 08:41:13 -0700 |
commit | e2a9419385bee4d08862553ddd0a637964557272 (patch) | |
tree | de7472d318fb556433dc4f7c1ebaf7fe7c82446d /host/include | |
parent | 91319520a5bd2b4cd875988b6c173435df1dbc47 (diff) | |
download | uhd-e2a9419385bee4d08862553ddd0a637964557272.tar.gz uhd-e2a9419385bee4d08862553ddd0a637964557272.tar.bz2 uhd-e2a9419385bee4d08862553ddd0a637964557272.zip |
renamed dboard interface to dboard iface, the lengthy name was getting to be a burden
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/usrp/dboard_base.hpp | 10 | ||||
-rw-r--r-- | host/include/uhd/usrp/dboard_iface.hpp (renamed from host/include/uhd/usrp/dboard_interface.hpp) | 18 | ||||
-rw-r--r-- | host/include/uhd/usrp/dboard_manager.hpp | 6 |
3 files changed, 17 insertions, 17 deletions
diff --git a/host/include/uhd/usrp/dboard_base.hpp b/host/include/uhd/usrp/dboard_base.hpp index 907a7814a..2025760ee 100644 --- a/host/include/uhd/usrp/dboard_base.hpp +++ b/host/include/uhd/usrp/dboard_base.hpp @@ -24,7 +24,7 @@ #include <boost/shared_ptr.hpp> #include <boost/tuple/tuple.hpp> #include <uhd/usrp/dboard_id.hpp> -#include <uhd/usrp/dboard_interface.hpp> +#include <uhd/usrp/dboard_iface.hpp> namespace uhd{ namespace usrp{ @@ -35,10 +35,10 @@ namespace uhd{ namespace usrp{ class UHD_API dboard_base : boost::noncopyable{ public: typedef boost::shared_ptr<dboard_base> sptr; - //the constructor args consist of a subdev name and an interface + //the constructor args consist of a subdev name, interface, and ids //derived classes should pass the args into the dboard_base class ctor //but should not have to deal with the internals of the args - typedef boost::tuple<std::string, dboard_interface::sptr, dboard_id_t, dboard_id_t> ctor_args_t; + typedef boost::tuple<std::string, dboard_iface::sptr, dboard_id_t, dboard_id_t> ctor_args_t; //structors dboard_base(ctor_args_t const&); @@ -52,13 +52,13 @@ public: protected: std::string get_subdev_name(void); - dboard_interface::sptr get_interface(void); + dboard_iface::sptr get_iface(void); dboard_id_t get_rx_id(void); dboard_id_t get_tx_id(void); private: std::string _subdev_name; - dboard_interface::sptr _dboard_interface; + dboard_iface::sptr _dboard_iface; dboard_id_t _rx_id, _tx_id; }; diff --git a/host/include/uhd/usrp/dboard_interface.hpp b/host/include/uhd/usrp/dboard_iface.hpp index c4e822751..ca40bf778 100644 --- a/host/include/uhd/usrp/dboard_interface.hpp +++ b/host/include/uhd/usrp/dboard_iface.hpp @@ -15,8 +15,8 @@ // along with this program. If not, see <http://www.gnu.org/licenses/>. // -#ifndef INCLUDED_UHD_USRP_DBOARD_INTERFACE_HPP -#define INCLUDED_UHD_USRP_DBOARD_INTERFACE_HPP +#ifndef INCLUDED_UHD_USRP_DBOARD_IFACE_HPP +#define INCLUDED_UHD_USRP_DBOARD_IFACE_HPP #include <uhd/config.hpp> #include <boost/shared_ptr.hpp> @@ -53,14 +53,14 @@ struct UHD_API spi_config_t{ }; /*! - * The daughter board dboard_interface to be subclassed. - * A dboard instance dboard_interfaces with the mboard though this api. - * This dboard_interface provides i2c, spi, gpio, atr, aux dac/adc access. - * Each mboard should have a specially tailored interface for its dboard. + * The daughter board dboard interface to be subclassed. + * A dboard instance interfaces with the mboard though this api. + * This interface provides i2c, spi, gpio, atr, aux dac/adc access. + * Each mboard should have a specially tailored iface for its dboard. */ -class UHD_API dboard_interface{ +class UHD_API dboard_iface{ public: - typedef boost::shared_ptr<dboard_interface> sptr; + typedef boost::shared_ptr<dboard_iface> sptr; typedef std::vector<boost::uint8_t> byte_vector_t; //tells the host which unit to use @@ -187,4 +187,4 @@ public: }} //namespace -#endif /* INCLUDED_UHD_USRP_DBOARD_INTERFACE_HPP */ +#endif /* INCLUDED_UHD_USRP_DBOARD_IFACE_HPP */ diff --git a/host/include/uhd/usrp/dboard_manager.hpp b/host/include/uhd/usrp/dboard_manager.hpp index ed8ee73ef..6de64b02d 100644 --- a/host/include/uhd/usrp/dboard_manager.hpp +++ b/host/include/uhd/usrp/dboard_manager.hpp @@ -59,16 +59,16 @@ public: * 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 - * \param interface the custom dboard interface + * \param iface the custom dboard interface * \return an sptr to the new dboard manager */ static sptr make( dboard_id_t rx_dboard_id, dboard_id_t tx_dboard_id, - dboard_interface::sptr interface + dboard_iface::sptr iface ); - //dboard_interface + //dboard manager interface virtual prop_names_t get_rx_subdev_names(void) = 0; virtual prop_names_t get_tx_subdev_names(void) = 0; virtual wax::obj get_rx_subdev(const std::string &subdev_name) = 0; |