diff options
author | Josh Blum <josh@joshknows.com> | 2011-06-06 10:21:45 +0100 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-06-06 10:21:45 +0100 |
commit | 8da2d8426e2a668b9fde31773a9e313a4ce1c2bb (patch) | |
tree | 4f047a32a431d24928992425c3f2d08bc06d001e /host/lib/usrp/usrp_e100/usrp_e100_iface.hpp | |
parent | f239b8517b238923aacc161664857a7d7b830ab0 (diff) | |
download | uhd-8da2d8426e2a668b9fde31773a9e313a4ce1c2bb.tar.gz uhd-8da2d8426e2a668b9fde31773a9e313a4ce1c2bb.tar.bz2 uhd-8da2d8426e2a668b9fde31773a9e313a4ce1c2bb.zip |
usrp-e100: bring up the clock as the first thing
We init the clock as the app wants it as the first thing we do.
This greatly simplifies logic, no need to conditionally init.
Clock config: perform soft reset, and removed ignore sync work
Added open/close to iface so we can open and close w/o re-making.
Other misc tweaks involving prints, etc...
Diffstat (limited to 'host/lib/usrp/usrp_e100/usrp_e100_iface.hpp')
-rw-r--r-- | host/lib/usrp/usrp_e100/usrp_e100_iface.hpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp_e100/usrp_e100_iface.hpp b/host/lib/usrp/usrp_e100/usrp_e100_iface.hpp index d9fe96db7..7df99cf4e 100644 --- a/host/lib/usrp/usrp_e100/usrp_e100_iface.hpp +++ b/host/lib/usrp/usrp_e100/usrp_e100_iface.hpp @@ -46,10 +46,9 @@ public: /*! * Make a new usrp-e interface with the control transport. - * \param node the device node name * \return a new usrp-e interface object */ - static sptr make(const std::string &node); + static sptr make(void); /*! * Get the underlying file descriptor. @@ -58,6 +57,17 @@ public: virtual int get_file_descriptor(void) = 0; /*! + * Open a device node into this iface. + * \param node the device node name + */ + virtual void open(const std::string &node) = 0; + + /*! + * Close the open device node in this iface. + */ + virtual void close(void) = 0; + + /*! * Perform an ioctl call on the device node file descriptor. * This will throw when the internal ioctl call fails. * \param request the control word |