From 8aaf42a280b8ef58e1068a22c049c914b9803f99 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 5 Jun 2019 13:29:23 -0700 Subject: utils: soft_register: Remove 16-bit mode This mode is never used, and makes it more cumbersome to maintain this code. --- host/lib/usrp/multi_usrp.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'host/lib/usrp') diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index 19d710349..5789c8a72 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -2368,13 +2368,6 @@ public: } switch (reg.get_bitwidth()) { - case 16: - if (reg.is_readable()) - uhd::soft_register_base::cast(reg).write(field, static_cast(value)); - else - uhd::soft_register_base::cast(reg).write(field, static_cast(value)); - break; - case 32: if (reg.is_readable()) uhd::soft_register_base::cast(reg).write(field, static_cast(value)); @@ -2411,13 +2404,6 @@ public: } switch (reg.get_bitwidth()) { - case 16: - if (reg.is_writable()) - return static_cast(uhd::soft_register_base::cast(reg).read(field)); - else - return static_cast(uhd::soft_register_base::cast(reg).read(field)); - break; - case 32: if (reg.is_writable()) return static_cast(uhd::soft_register_base::cast(reg).read(field)); -- cgit v1.2.3