diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-04-25 15:09:27 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-04-26 13:14:47 -0700 |
commit | fb1b7b78687da3653c0461394cee7135e701bfd5 (patch) | |
tree | 301ba7d15548efcd80fb574d1bef9df410f059f6 /host/lib/usrp/e300 | |
parent | 96fa9acb7f7cacdb24a7d01715e4f151ed7a6561 (diff) | |
download | uhd-fb1b7b78687da3653c0461394cee7135e701bfd5.tar.gz uhd-fb1b7b78687da3653c0461394cee7135e701bfd5.tar.bz2 uhd-fb1b7b78687da3653c0461394cee7135e701bfd5.zip |
ad936x: De-boostify ad936x_manager, minor cleanup
- Remove all use of boost::bind and boost::function
- Demote some log messages to DEBUG
- Change some formatting to match coding guidelines
- B2xx/E310: Match changes in loopback function
Diffstat (limited to 'host/lib/usrp/e300')
-rw-r--r-- | host/lib/usrp/e300/e300_impl.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/host/lib/usrp/e300/e300_impl.cpp b/host/lib/usrp/e300/e300_impl.cpp index 78b1f05b1..324b25407 100644 --- a/host/lib/usrp/e300/e300_impl.cpp +++ b/host/lib/usrp/e300/e300_impl.cpp @@ -508,13 +508,14 @@ e300_impl::e300_impl(const uhd::device_addr_t &device_addr) this->_setup_radio(instance); //now test each radio module's connection to the codec interface - for(radio_perifs_t &perif: _radio_perifs) - { + for (radio_perifs_t &perif : _radio_perifs) { _codec_mgr->loopback_self_test( - boost::bind( - &radio_ctrl_core_3000::poke32, perif.ctrl, radio::sr_addr(radio::CODEC_IDLE), _1 - ), - boost::bind(&radio_ctrl_core_3000::peek64, perif.ctrl, radio::RB64_CODEC_READBACK) + [&perif](const uint32_t value){ + perif.ctrl->poke32(radio::sr_addr(radio::CODEC_IDLE), value); + }, + [&perif](){ + return perif.ctrl->peek64(radio::RB64_CODEC_READBACK); + } ); } //////////////////////////////////////////////////////////////////// |