From 60a911cd460ca1e29d838ee0039d67bf7c8fe7f3 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 8 Nov 2016 11:38:19 -0800 Subject: rfnoc/x300: Make sure peek32() and peek64() are called with actual addresses Before, we were calling peeks with the number of the readback register. --- host/lib/include/uhdlib/rfnoc/radio_ctrl_impl.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'host/lib/include/uhdlib/rfnoc/radio_ctrl_impl.hpp') 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; -- cgit v1.2.3