diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-01-17 16:02:55 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-01-18 11:26:21 -0800 |
commit | e504e6d9943186ba4d963ed977cbdb461bead755 (patch) | |
tree | cab19d65a9ff452c23f51d9c03001c6d16902376 /host/lib/usrp/n230 | |
parent | b18b304f03d6a371b9eb9b30fdf1ec09b504b2c5 (diff) | |
download | uhd-e504e6d9943186ba4d963ed977cbdb461bead755.tar.gz uhd-e504e6d9943186ba4d963ed977cbdb461bead755.tar.bz2 uhd-e504e6d9943186ba4d963ed977cbdb461bead755.zip |
uhdlib: Update constrained_device_args_t
- Allow enums to be non-consecutive
- Move to uhdlib/
- Add unit tests
- Updated N230 use of constrained_device_args_t
Diffstat (limited to 'host/lib/usrp/n230')
-rw-r--r-- | host/lib/usrp/n230/n230_device_args.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/host/lib/usrp/n230/n230_device_args.hpp b/host/lib/usrp/n230/n230_device_args.hpp index de326a309..b0a4a23c9 100644 --- a/host/lib/usrp/n230/n230_device_args.hpp +++ b/host/lib/usrp/n230/n230_device_args.hpp @@ -9,9 +9,9 @@ #include <uhd/types/wb_iface.hpp> #include <uhd/transport/udp_simple.hpp> -#include <boost/thread/mutex.hpp> -#include "../common/constrained_device_args.hpp" +#include <uhdlib/usrp/constrained_device_args.hpp> #include "n230_defaults.h" +#include <boost/thread/mutex.hpp> namespace uhd { namespace usrp { namespace n230 { @@ -29,7 +29,9 @@ public: _send_buff_size("send_buff_size", n230::DEFAULT_SEND_BUFF_SIZE), _recv_buff_size("recv_buff_size", n230::DEFAULT_RECV_BUFF_SIZE), _safe_mode("safe_mode", false), - _loopback_mode("loopback_mode", LOOPBACK_OFF, boost::assign::list_of("off")("radio")("codec")) + _loopback_mode("loopback_mode", + LOOPBACK_OFF, + {{"off", LOOPBACK_OFF}, {"radio", LOOPBACK_RADIO}, {"codec", LOOPBACK_CODEC}}) {} double get_master_clock_rate() const { |