aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/db_xcvr2450.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-06-17 16:48:14 -0700
committerJosh Blum <josh@joshknows.com>2010-06-17 16:48:14 -0700
commit9d59ce56526d827839de6df1b922f7ed1608e94e (patch)
tree6f3d0205241fba208d2eb14f73001021376182b5 /host/lib/usrp/dboard/db_xcvr2450.cpp
parentc554cefcab4707331ed23c9cf7567c3104a529bf (diff)
downloaduhd-9d59ce56526d827839de6df1b922f7ed1608e94e.tar.gz
uhd-9d59ce56526d827839de6df1b922f7ed1608e94e.tar.bz2
uhd-9d59ce56526d827839de6df1b922f7ed1608e94e.zip
uhd: added enums for aux adc and dac, usrp2: implemented enums in db iface
Diffstat (limited to 'host/lib/usrp/dboard/db_xcvr2450.cpp')
-rw-r--r--host/lib/usrp/dboard/db_xcvr2450.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/db_xcvr2450.cpp b/host/lib/usrp/dboard/db_xcvr2450.cpp
index 974a378bd..d83781965 100644
--- a/host/lib/usrp/dboard/db_xcvr2450.cpp
+++ b/host/lib/usrp/dboard/db_xcvr2450.cpp
@@ -144,7 +144,7 @@ private:
static const float min_v = float(0.5), max_v = float(2.5);
static const float rssi_dyn_range = 60;
//calculate the rssi from the voltage
- float voltage = this->get_iface()->read_aux_adc(dboard_iface::UNIT_RX, 1);
+ float voltage = this->get_iface()->read_aux_adc(dboard_iface::UNIT_RX, dboard_iface::AUX_ADC_B);
return rssi_dyn_range*(voltage - min_v)/(max_v - min_v);
}
};