aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/b200
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/b200')
-rw-r--r--host/lib/usrp/b200/b200_impl.cpp13
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);
+ }
);
}