summaryrefslogtreecommitdiff
path: root/gr-usrp2/src/usrp2_source_base.cc
diff options
context:
space:
mode:
authorjcorgan2008-10-26 16:05:03 +0000
committerjcorgan2008-10-26 16:05:03 +0000
commit69682ac49f545217f3070e0ac25b0da92cda1c2c (patch)
treeb75ed092265a63bb0a017ccae5fc0677afbcd5fc /gr-usrp2/src/usrp2_source_base.cc
parent144fa44ed2e0378e2ec585c3991108926d9449be (diff)
downloadgnuradio-69682ac49f545217f3070e0ac25b0da92cda1c2c.tar.gz
gnuradio-69682ac49f545217f3070e0ac25b0da92cda1c2c.tar.bz2
gnuradio-69682ac49f545217f3070e0ac25b0da92cda1c2c.zip
Merged r9834:9855 from jcorgan/u2-wip into trunk. Catches up gr-usrp2 with the latest changes in libusrp2, adding all the daughterboard accessor functions.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9856 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-usrp2/src/usrp2_source_base.cc')
-rw-r--r--gr-usrp2/src/usrp2_source_base.cc66
1 files changed, 66 insertions, 0 deletions
diff --git a/gr-usrp2/src/usrp2_source_base.cc b/gr-usrp2/src/usrp2_source_base.cc
index 0f174bf20..1ed4d55d7 100644
--- a/gr-usrp2/src/usrp2_source_base.cc
+++ b/gr-usrp2/src/usrp2_source_base.cc
@@ -64,6 +64,72 @@ usrp2_source_base::set_decim(int decimation_factor)
return d_u2->set_rx_decim(decimation_factor);
}
+bool
+usrp2_source_base::set_scale_iq(int scale_i, int scale_q)
+{
+ return d_u2->set_rx_scale_iq(scale_i, scale_q);
+}
+
+int
+usrp2_source_base::decim()
+{
+ return d_u2->rx_decim();
+}
+
+bool
+usrp2_source_base::adc_rate(long *rate)
+{
+ return d_u2->adc_rate(rate);
+}
+
+double
+usrp2_source_base::gain_min()
+{
+ return d_u2->rx_gain_min();
+}
+
+double
+usrp2_source_base::gain_max()
+{
+ return d_u2->rx_gain_max();
+}
+
+double
+usrp2_source_base::gain_db_per_step()
+{
+ return d_u2->rx_gain_db_per_step();
+}
+
+double
+usrp2_source_base::freq_min()
+{
+ return d_u2->rx_freq_min();
+}
+
+double
+usrp2_source_base::freq_max()
+{
+ return d_u2->rx_freq_max();
+}
+
+bool
+usrp2_source_base::daughterboard_id(int *dbid)
+{
+ return d_u2->rx_daughterboard_id(dbid);
+}
+
+unsigned int
+usrp2_source_base::overruns()
+{
+ return d_u2->rx_overruns();
+}
+
+unsigned int
+usrp2_source_base::missing()
+{
+ return d_u2->rx_missing();
+}
+
bool
usrp2_source_base::start()
{