From e16adfd201a4a51d9fbd7e1be45cd8d9b33177f5 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 17 Jun 2010 18:16:58 -0700 Subject: usrp2: code and comment tweak for aux dac call --- host/lib/usrp/usrp2/dboard_iface.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'host/lib/usrp') diff --git a/host/lib/usrp/usrp2/dboard_iface.cpp b/host/lib/usrp/usrp2/dboard_iface.cpp index 0d63cefd4..ec6c98186 100644 --- a/host/lib/usrp/usrp2/dboard_iface.cpp +++ b/host/lib/usrp/usrp2/dboard_iface.cpp @@ -261,10 +261,9 @@ void usrp2_dboard_iface::_write_aux_dac(unit_t unit){ void usrp2_dboard_iface::write_aux_dac(unit_t unit, aux_dac_t which, float value){ _dac_regs[unit].data = boost::math::iround(4095*value/3.3); _dac_regs[unit].cmd = ad5623_regs_t::CMD_WR_UP_DAC_CHAN_N; - //standardize on USRP1 interface, A=0, B=1, C=2, D=3 - static const uhd::dict< - unit_t, uhd::dict - > unit_to_which_to_addr = map_list_of + + typedef uhd::dict aux_dac_to_addr; + static const uhd::dict unit_to_which_to_addr = map_list_of (UNIT_RX, map_list_of (AUX_DAC_A, ad5623_regs_t::ADDR_DAC_B) (AUX_DAC_B, ad5623_regs_t::ADDR_DAC_A) -- cgit v1.2.3