diff options
author | Josh Blum <josh@joshknows.com> | 2011-07-18 11:09:10 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-07-18 11:09:10 -0700 |
commit | 0e788f77514cf33b0ff178bc7e72287d9e086ba2 (patch) | |
tree | d4d24d608720bf93cec847cd3e9101ddbfcff08d /host/lib/usrp/usrp2/usrp2_iface.cpp | |
parent | 6d47818032de6f05aa74d17e50363df292c50aac (diff) | |
download | uhd-0e788f77514cf33b0ff178bc7e72287d9e086ba2.tar.gz uhd-0e788f77514cf33b0ff178bc7e72287d9e086ba2.tar.bz2 uhd-0e788f77514cf33b0ff178bc7e72287d9e086ba2.zip |
usrp2: added fw minor and moved ICMP dest error handling to txrx app
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_iface.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_iface.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_iface.cpp b/host/lib/usrp/usrp2/usrp2_iface.cpp index b1347119b..aaa5acbd5 100644 --- a/host/lib/usrp/usrp2/usrp2_iface.cpp +++ b/host/lib/usrp/usrp2/usrp2_iface.cpp @@ -46,10 +46,6 @@ static const boost::uint32_t MIN_PROTO_COMPAT_I2C = 7; static const boost::uint32_t MIN_PROTO_COMPAT_REG = USRP2_FW_COMPAT_NUM; static const boost::uint32_t MIN_PROTO_COMPAT_UART = 7; -// Map for virtual firmware regs (not very big so we can keep it here for now) -#define U2_FW_REG_LOCK_TIME 0 -#define U2_FW_REG_LOCK_GPID 1 - //Define get_gpid() to get a globally unique identifier for this process. //The gpid is implemented as a hash of the pid and a unique machine identifier. #ifdef UHD_PLATFORM_WIN32 @@ -372,6 +368,11 @@ public: UHD_THROW_INVALID_CODE_PATH(); } + const std::string get_fw_version_string(void){ + boost::uint32_t minor = this->get_reg<boost::uint32_t, USRP2_REG_ACTION_FW_PEEK32>(U2_FW_REG_VER_MINOR); + return str(boost::format("%u.%u") % _protocol_compat % minor); + } + private: //this lovely lady makes it all possible udp_simple::sptr _ctrl_transport; |