summaryrefslogtreecommitdiff
path: root/gr-vrt/src
diff options
context:
space:
mode:
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);
};