Hi Rob,

Do you mean instead of doing it across the register_property as the 
set_int_property does, directly call the peek function?

Now I have this in the controller:

`register_property(&_test_reg, [this]() {`

`            int test_reg = this->regs().peek32(REG_TEST_ADDR);`

`            this->_test_reg.set(test_reg);`

`        });`

Do you suggest changing it to something like this? (taken from 
uhd/host/lib/rfnoc/ddc_block_control.cpp)

\
`double get_freq(const size_t chan) const`

`    {`

`        return _freq.at(chan).get();`

`    }`

“_freq” seems to be also a property_t class as “_test_reg” is. What’s the 
difference of doing it that way?
_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to