aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-06-17 18:16:58 -0700
committerJosh Blum <josh@joshknows.com>2010-06-17 18:16:58 -0700
commite16adfd201a4a51d9fbd7e1be45cd8d9b33177f5 (patch)
tree29d452acdd650f3b7daaf92352421c039507bc91 /host/lib/usrp
parent9d59ce56526d827839de6df1b922f7ed1608e94e (diff)
downloaduhd-e16adfd201a4a51d9fbd7e1be45cd8d9b33177f5.tar.gz
uhd-e16adfd201a4a51d9fbd7e1be45cd8d9b33177f5.tar.bz2
uhd-e16adfd201a4a51d9fbd7e1be45cd8d9b33177f5.zip
usrp2: code and comment tweak for aux dac call
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/usrp2/dboard_iface.cpp7
1 files changed, 3 insertions, 4 deletions
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<aux_dac_t, ad5623_regs_t::addr_t>
- > unit_to_which_to_addr = map_list_of
+
+ typedef uhd::dict<aux_dac_t, ad5623_regs_t::addr_t> aux_dac_to_addr;
+ static const uhd::dict<unit_t, aux_dac_to_addr> 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)