aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/e300/e300_sensor_manager.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-10-31 14:30:52 -0700
committerMartin Braun <martin.braun@ettus.com>2016-11-08 08:02:22 -0800
commit99c2730bc9db270560671f2d7d173768465ed51f (patch)
treebc4df495734a075ebe2f7917cf67dec6fb7d8177 /host/lib/usrp/e300/e300_sensor_manager.hpp
parent218f4b0b63927110df9dbbaa8353c346eee2d98a (diff)
downloaduhd-99c2730bc9db270560671f2d7d173768465ed51f.tar.gz
uhd-99c2730bc9db270560671f2d7d173768465ed51f.tar.bz2
uhd-99c2730bc9db270560671f2d7d173768465ed51f.zip
Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types)
- Also removes all references to boost/cstdint.hpp and replaces it with stdint.h (The 'correct' replacement would be <cstdint>, but not all of our compilers support that).
Diffstat (limited to 'host/lib/usrp/e300/e300_sensor_manager.hpp')
-rw-r--r--host/lib/usrp/e300/e300_sensor_manager.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/host/lib/usrp/e300/e300_sensor_manager.hpp b/host/lib/usrp/e300/e300_sensor_manager.hpp
index 1252e07b9..c2d31bff7 100644
--- a/host/lib/usrp/e300/e300_sensor_manager.hpp
+++ b/host/lib/usrp/e300/e300_sensor_manager.hpp
@@ -16,7 +16,7 @@
//
#include <boost/noncopyable.hpp>
-#include <boost/cstdint.hpp>
+#include <stdint.h>
#include <uhd/transport/zero_copy.hpp>
#include <uhd/types/sensors.hpp>
@@ -30,10 +30,10 @@
namespace uhd { namespace usrp { namespace e300 {
struct sensor_transaction_t {
- boost::uint32_t which;
+ uint32_t which;
union {
- boost::uint32_t value;
- boost::uint32_t value64;
+ uint32_t value;
+ uint32_t value64;
};
};
@@ -59,13 +59,13 @@ public:
static sptr make_local(global_regs::sptr global_regs);
// Note: This is a hack
- static boost::uint32_t pack_float_in_uint32_t(const float &v)
+ static uint32_t pack_float_in_uint32_t(const float &v)
{
- const boost::uint32_t *cast = reinterpret_cast<const boost::uint32_t*>(&v);
+ const uint32_t *cast = reinterpret_cast<const uint32_t*>(&v);
return *cast;
}
- static float unpack_float_from_uint32_t(const boost::uint32_t &v)
+ static float unpack_float_from_uint32_t(const uint32_t &v)
{
const float *cast = reinterpret_cast<const float*>(&v);
return *cast;