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/b200/b200_impl.cpp | |
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/b200/b200_impl.cpp')
-rw-r--r-- | host/lib/usrp/b200/b200_impl.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index c432ad905..fe3b21aee 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -615,13 +615,14 @@ b200_impl::b200_impl(const uhd::device_addr_t& device_addr, usb_device_handle::s this->setup_radio(i); //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, TOREG(SR_CODEC_IDLE), _1 - ), - boost::bind(&radio_ctrl_core_3000::peek64, perif.ctrl, RB64_CODEC_READBACK) + [&perif](const uint32_t value){ + perif.ctrl->poke32(TOREG(SR_CODEC_IDLE), value); + }, + [&perif](){ + return perif.ctrl->peek64(RB64_CODEC_READBACK); + } ); } |