diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-11-08 11:38:19 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-03-16 10:48:46 -0700 |
commit | 60a911cd460ca1e29d838ee0039d67bf7c8fe7f3 (patch) | |
tree | 05182107d71ca74cb380c4081230b1130c797ec8 /host/lib/include/uhdlib/rfnoc/radio_ctrl_impl.hpp | |
parent | 86dbaee5b80f203d1a9f28ced0307035d18368fa (diff) | |
download | uhd-60a911cd460ca1e29d838ee0039d67bf7c8fe7f3.tar.gz uhd-60a911cd460ca1e29d838ee0039d67bf7c8fe7f3.tar.bz2 uhd-60a911cd460ca1e29d838ee0039d67bf7c8fe7f3.zip |
rfnoc/x300: Make sure peek32() and peek64() are called with actual addresses
Before, we were calling peeks with the number of the readback register.
Diffstat (limited to 'host/lib/include/uhdlib/rfnoc/radio_ctrl_impl.hpp')
-rw-r--r-- | host/lib/include/uhdlib/rfnoc/radio_ctrl_impl.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/host/lib/include/uhdlib/rfnoc/radio_ctrl_impl.hpp b/host/lib/include/uhdlib/rfnoc/radio_ctrl_impl.hpp index a5876584e..62a268335 100644 --- a/host/lib/include/uhdlib/rfnoc/radio_ctrl_impl.hpp +++ b/host/lib/include/uhdlib/rfnoc/radio_ctrl_impl.hpp @@ -134,10 +134,8 @@ protected: // TODO see what's protected and what's private * Registers **********************************************************************/ struct regs { - static inline uint32_t sr_addr(const uint32_t offset) - { - return offset * 4; - } + static inline uint32_t sr_addr(const uint32_t offset) { return offset * 4; } + static inline uint32_t rb_addr(const uint32_t offset) { return offset * 8; } static const uint32_t BASE = 128; |