From 5072a0f7b6bfacb18d7a7918a843c1da11447612 Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Fri, 19 Jul 2019 12:13:44 -0700 Subject: rx_fe_3000: Changing register address calc Changing how we calculate RX frontend register addresses to allow for different register offsets. The register addresses are now calculated in a manor similar to how gpio_atr_300_impl does register address calculations, which is to allow a reg_offset to be passes in at construction. The current default is reg_offset=4. --- host/lib/include/uhdlib/usrp/cores/rx_frontend_core_3000.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/lib/include/uhdlib/usrp') diff --git a/host/lib/include/uhdlib/usrp/cores/rx_frontend_core_3000.hpp b/host/lib/include/uhdlib/usrp/cores/rx_frontend_core_3000.hpp index 0b544a959..2d20c63fa 100644 --- a/host/lib/include/uhdlib/usrp/cores/rx_frontend_core_3000.hpp +++ b/host/lib/include/uhdlib/usrp/cores/rx_frontend_core_3000.hpp @@ -28,7 +28,8 @@ public: virtual ~rx_frontend_core_3000(void) = 0; - static sptr make(uhd::wb_iface::sptr iface, const size_t base); + static sptr make( + uhd::wb_iface::sptr iface, const size_t base, const size_t reg_offset = 4); /*! Set the input sampling rate (i.e. ADC rate) */ -- cgit v1.2.3