diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2019-07-19 12:13:44 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:25 -0800 |
commit | 5072a0f7b6bfacb18d7a7918a843c1da11447612 (patch) | |
tree | 5b5963b7cfb0477612fb9062c0d4901424e5efb0 /host/lib/include/uhdlib/usrp | |
parent | 7fb8523c935cbcda7fd0dbcbad0ac8c2e6dd1fc7 (diff) | |
download | uhd-5072a0f7b6bfacb18d7a7918a843c1da11447612.tar.gz uhd-5072a0f7b6bfacb18d7a7918a843c1da11447612.tar.bz2 uhd-5072a0f7b6bfacb18d7a7918a843c1da11447612.zip |
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.
Diffstat (limited to 'host/lib/include/uhdlib/usrp')
-rw-r--r-- | host/lib/include/uhdlib/usrp/cores/rx_frontend_core_3000.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) */ |