Re: [USRP-users] User register on X300 UHD 3.9

2021-02-24 Thread Rob Kossler via USRP-users
Hi Cédric, I don't fully know the answer, but if you look in the 3.9.LTS source code for examples of "publish()", "subscribe()", and "coerce()" functions. Something along the lines of grep "publish(" $(find ./ -name "*.cpp") # if you are in the host/uhd folder At this point, I think that you th

Re: [USRP-users] User register on X300 UHD 3.9

2021-02-24 Thread Cédric Hannotier via USRP-users
On 18/02/21 10:27, Cédric Hannotier via USRP-users wrote: > On 17/02/21 18:39, Marcus Müller via USRP-users wrote: > > Then, you'll have to add a setter / getter in C++ UHD. That boils down to > > adding a coercer > > and getter to the property_tree. Copy existing code and modify the > > read/wri

Re: [USRP-users] User register on X300 UHD 3.9

2021-02-18 Thread Cédric Hannotier via USRP-users
Hi Marcus, On 17/02/21 18:39, Marcus Müller via USRP-users wrote: > not that hard: you need an instance of settings_register, which you connect > to the > appropriate settings bus. Would you mean 'setting_reg' instead? There is no instance of 'settings_register' in the fpga-src/usrp3 tree. > It

Re: [USRP-users] User register on X300 UHD 3.9

2021-02-17 Thread Marcus Müller via USRP-users
Hi Cédric, not that hard: you need an instance of settings_register, which you connect to the appropriate settings bus. It's probably easiest if you look through the FPGA code matching your version of UHD (check out the UHD source repository, `git checkout` the tag that corresponds to the UHD

[USRP-users] User register on X300 UHD 3.9

2021-02-17 Thread Cédric Hannotier via USRP-users
Dear all, On USRP2, there was a concept of user registers, i.e. memory allocated in FPGA for the user, using user_settings, that the user can set in C++, using the UHD C++ API set_user_register. I am trying to reproduce such behaviour on X300 using UHD 3.9 LTS (i.e pre-RFNOC). I am solely intere