aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp_e/usrp_e_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-08 01:58:10 +0000
committerJosh Blum <josh@joshknows.com>2010-05-08 01:58:10 +0000
commit29809e9697b052fa1d0cd2109c8bd5f9af178cfa (patch)
treef4d722dbf7d0278d715e713d30e271ab9343a1b9 /host/lib/usrp/usrp_e/usrp_e_impl.cpp
parent6ef09d18def4afdd6413188ab63ee38dbae4e9d8 (diff)
downloaduhd-29809e9697b052fa1d0cd2109c8bd5f9af178cfa.tar.gz
uhd-29809e9697b052fa1d0cd2109c8bd5f9af178cfa.tar.bz2
uhd-29809e9697b052fa1d0cd2109c8bd5f9af178cfa.zip
moved open/close into iface, work on codec tx
Diffstat (limited to 'host/lib/usrp/usrp_e/usrp_e_impl.cpp')
-rw-r--r--host/lib/usrp/usrp_e/usrp_e_impl.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/host/lib/usrp/usrp_e/usrp_e_impl.cpp b/host/lib/usrp/usrp_e/usrp_e_impl.cpp
index 5861be102..4f7361eca 100644
--- a/host/lib/usrp/usrp_e/usrp_e_impl.cpp
+++ b/host/lib/usrp/usrp_e/usrp_e_impl.cpp
@@ -22,7 +22,6 @@
#include <boost/format.hpp>
#include <boost/filesystem.hpp>
#include <iostream>
-#include <fcntl.h> //open
using namespace uhd;
using namespace uhd::usrp;
@@ -76,15 +75,8 @@ device::sptr usrp_e::make(const device_addr_t &device_addr){
usrp_e_impl::usrp_e_impl(const std::string &node){
std::cout << boost::format("Opening USRP-E on %s") % node << std::endl;
- //open the device node and check file descriptor
- if ((_node_fd = ::open(node.c_str(), O_RDWR)) < 0){
- throw std::runtime_error(str(
- boost::format("Failed to open %s") % node
- ));
- }
-
//setup various interfaces into hardware
- _iface = usrp_e_iface::make(_node_fd);
+ _iface = usrp_e_iface::make(node);
_clock_ctrl = clock_ctrl::make(_iface);
_codec_ctrl = codec_ctrl::make(_iface);
@@ -100,8 +92,7 @@ usrp_e_impl::usrp_e_impl(const std::string &node){
}
usrp_e_impl::~usrp_e_impl(void){
- //close the device node file descriptor
- ::close(_node_fd);
+ /* NOP */
}
/***********************************************************************