summaryrefslogtreecommitdiff
path: root/gr-vrt/src
diff options
context:
space:
mode:
authorJohnathan Corgan2009-08-26 16:52:40 -0700
committerJohnathan Corgan2009-08-26 16:58:08 -0700
commit1aa216df204197b4849581dd4f42b2e7680eb72f (patch)
tree0452ddfd7f971398d3ece4f0d7638c63d0b262cb /gr-vrt/src
parent20e87ef0575d6bf09ab19fa1d025dbe71eec27fb (diff)
parent60633c60dda8bd0ac8c7b5fde72eac62aa0f9490 (diff)
downloadgnuradio-1aa216df204197b4849581dd4f42b2e7680eb72f.tar.gz
gnuradio-1aa216df204197b4849581dd4f42b2e7680eb72f.tar.bz2
gnuradio-1aa216df204197b4849581dd4f42b2e7680eb72f.zip
Merge vrt of http://gnuradio.org/git/jblum.git into master
* automatic store for empty traces on enable * added traces to fft window * added quadradio method to enable/disable cal * use enum for band select * added get band select
Diffstat (limited to 'gr-vrt/src')
-rw-r--r--gr-vrt/src/vrt_quadradio_source_32fc.cc14
-rw-r--r--gr-vrt/src/vrt_quadradio_source_32fc.h5
2 files changed, 15 insertions, 4 deletions
diff --git a/gr-vrt/src/vrt_quadradio_source_32fc.cc b/gr-vrt/src/vrt_quadradio_source_32fc.cc
index 0321062aa..0aac86991 100644
--- a/gr-vrt/src/vrt_quadradio_source_32fc.cc
+++ b/gr-vrt/src/vrt_quadradio_source_32fc.cc
@@ -86,9 +86,15 @@ vrt_quadradio_source_32fc::set_center_freq(double target_freq)
}
bool
-vrt_quadradio_source_32fc::set_band_select(const std::string &band)
+vrt_quadradio_source_32fc::set_band_select(int band)
{
- return d_qr->set_band_select(band);
+ return d_qr->set_band_select(static_cast<vrt_band_sel_t>(band));
+}
+
+int
+vrt_quadradio_source_32fc::get_band_select(void)
+{
+ return static_cast<int>(d_qr->get_band_select());
}
//void
@@ -210,3 +216,7 @@ vrt_quadradio_source_32fc::set_beamforming(std::vector<gr_complex> gains){
return d_qr->set_beamforming(gains_ints);
}
+bool
+vrt_quadradio_source_32fc::set_cal_enb(bool enb){
+ return d_qr->set_cal_enb(enb);
+}
diff --git a/gr-vrt/src/vrt_quadradio_source_32fc.h b/gr-vrt/src/vrt_quadradio_source_32fc.h
index 6ad63f7be..6193efa10 100644
--- a/gr-vrt/src/vrt_quadradio_source_32fc.h
+++ b/gr-vrt/src/vrt_quadradio_source_32fc.h
@@ -68,9 +68,9 @@ public:
/*!
* \brief Set the band select dboard bits.
- * \param band "A", "B", "C", "D"
*/
- bool set_band_select(const std::string &band);
+ bool set_band_select(int band);
+ int get_band_select(void);
/*!
* \brief Turn the 10 dB attenuation on/off.
@@ -109,6 +109,7 @@ public:
bool set_lo_freq(double freq);
bool set_cal_freq(double freq);
bool set_beamforming(std::vector<gr_complex> gains);
+ bool set_cal_enb(bool enb);
};