diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-13 07:46:25 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-13 07:46:25 -0700 |
commit | c6a76aa03773d22c36d7e33b1fa53b4522fc566b (patch) | |
tree | 2c3e3fac628de0fad7ca3df5280f30ff3e1619cb | |
parent | 8e9671fc5e3863eb332dc7d3f014cb0ea121c46a (diff) | |
download | uhd-c6a76aa03773d22c36d7e33b1fa53b4522fc566b.tar.gz uhd-c6a76aa03773d22c36d7e33b1fa53b4522fc566b.tar.bz2 uhd-c6a76aa03773d22c36d7e33b1fa53b4522fc566b.zip |
merge reverse diff
-rw-r--r-- | host/include/uhd/usrp/CMakeLists.txt | 1 | ||||
-rw-r--r-- | host/include/uhd/usrp/usrp1e.hpp | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/host/include/uhd/usrp/CMakeLists.txt b/host/include/uhd/usrp/CMakeLists.txt index 9140d98ca..7815a4fb9 100644 --- a/host/include/uhd/usrp/CMakeLists.txt +++ b/host/include/uhd/usrp/CMakeLists.txt @@ -31,6 +31,7 @@ INSTALL(FILES dboard_manager.hpp ### usrp headers ### + usrp1e.hpp usrp2.hpp ### utilities ### diff --git a/host/include/uhd/usrp/usrp1e.hpp b/host/include/uhd/usrp/usrp1e.hpp new file mode 100644 index 000000000..cee9dc3d5 --- /dev/null +++ b/host/include/uhd/usrp/usrp1e.hpp @@ -0,0 +1,48 @@ +// +// Copyright 2010 Ettus Research LLC +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// + +#ifndef INCLUDED_UHD_USRP_USRP1E_HPP +#define INCLUDED_UHD_USRP_USRP1E_HPP + +#include <uhd/config.hpp> +#include <uhd/device.hpp> + +namespace uhd{ namespace usrp{ + +/*! + * The usrp1e device class. + */ +class UHD_API usrp1e : public device{ +public: + /*! + * Find usrp1e devices on the system via the device node. + * \param hint a device addr with the usrp1e address filled in + * \return a vector of device addresses for all usrp1es found + */ + static device_addrs_t find(const device_addr_t &hint); + + /*! + * Make a usrp1e from a device address. + * \param addr the device address + * \return a device sptr to a new usrp1e + */ + static device::sptr make(const device_addr_t &addr); +}; + +}} //namespace + +#endif /* INCLUDED_UHD_USRP_USRP1E_HPP */ |