aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-06-05 13:29:23 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:09 -0800
commit8aaf42a280b8ef58e1068a22c049c914b9803f99 (patch)
treefac24f88a28034135be3e5069389e9ef80dc8f38 /host/lib/usrp
parent15bdf9b64b3245e1bf7a7603faf71ce72e1dac69 (diff)
downloaduhd-8aaf42a280b8ef58e1068a22c049c914b9803f99.tar.gz
uhd-8aaf42a280b8ef58e1068a22c049c914b9803f99.tar.bz2
uhd-8aaf42a280b8ef58e1068a22c049c914b9803f99.zip
utils: soft_register: Remove 16-bit mode
This mode is never used, and makes it more cumbersome to maintain this code.
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/multi_usrp.cpp14
1 files changed, 0 insertions, 14 deletions
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<uhd::soft_reg16_rw_t>(reg).write(field, static_cast<uint16_t>(value));
- else
- uhd::soft_register_base::cast<uhd::soft_reg16_wo_t>(reg).write(field, static_cast<uint16_t>(value));
- break;
-
case 32:
if (reg.is_readable())
uhd::soft_register_base::cast<uhd::soft_reg32_rw_t>(reg).write(field, static_cast<uint32_t>(value));
@@ -2411,13 +2404,6 @@ public:
}
switch (reg.get_bitwidth()) {
- case 16:
- if (reg.is_writable())
- return static_cast<uint64_t>(uhd::soft_register_base::cast<uhd::soft_reg16_rw_t>(reg).read(field));
- else
- return static_cast<uint64_t>(uhd::soft_register_base::cast<uhd::soft_reg16_ro_t>(reg).read(field));
- break;
-
case 32:
if (reg.is_writable())
return static_cast<uint64_t>(uhd::soft_register_base::cast<uhd::soft_reg32_rw_t>(reg).read(field));