From 91f18267cd90fdeaea0a5f57543fa149019b251a Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 20 Aug 2009 16:20:31 -0700 Subject: added get band select --- gr-vrt/src/vrt_quadradio_source_32fc.cc | 6 ++++++ gr-vrt/src/vrt_quadradio_source_32fc.h | 1 + 2 files changed, 7 insertions(+) (limited to 'gr-vrt/src') diff --git a/gr-vrt/src/vrt_quadradio_source_32fc.cc b/gr-vrt/src/vrt_quadradio_source_32fc.cc index 0321062aa..77e61cf04 100644 --- a/gr-vrt/src/vrt_quadradio_source_32fc.cc +++ b/gr-vrt/src/vrt_quadradio_source_32fc.cc @@ -91,6 +91,12 @@ vrt_quadradio_source_32fc::set_band_select(const std::string &band) return d_qr->set_band_select(band); } +std::string +vrt_quadradio_source_32fc::get_band_select(void) +{ + return d_qr->get_band_select(); +} + //void //vrt_quadradio_source_32fc::set_10dB_atten(bool on) //{ diff --git a/gr-vrt/src/vrt_quadradio_source_32fc.h b/gr-vrt/src/vrt_quadradio_source_32fc.h index 6ad63f7be..c7d5b9c50 100644 --- a/gr-vrt/src/vrt_quadradio_source_32fc.h +++ b/gr-vrt/src/vrt_quadradio_source_32fc.h @@ -71,6 +71,7 @@ public: * \param band "A", "B", "C", "D" */ bool set_band_select(const std::string &band); + std::string get_band_select(void); /*! * \brief Turn the 10 dB attenuation on/off. -- cgit From 4256cde50ae0f3c52f415f45e9cc6274f51c6ce2 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 20 Aug 2009 17:17:56 -0700 Subject: use enum for band select --- gr-vrt/src/vrt_quadradio_source_32fc.cc | 8 ++++---- gr-vrt/src/vrt_quadradio_source_32fc.h | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'gr-vrt/src') diff --git a/gr-vrt/src/vrt_quadradio_source_32fc.cc b/gr-vrt/src/vrt_quadradio_source_32fc.cc index 77e61cf04..3769f9124 100644 --- a/gr-vrt/src/vrt_quadradio_source_32fc.cc +++ b/gr-vrt/src/vrt_quadradio_source_32fc.cc @@ -86,15 +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(band)); } -std::string +int vrt_quadradio_source_32fc::get_band_select(void) { - return d_qr->get_band_select(); + return static_cast(d_qr->get_band_select()); } //void diff --git a/gr-vrt/src/vrt_quadradio_source_32fc.h b/gr-vrt/src/vrt_quadradio_source_32fc.h index c7d5b9c50..862afc5eb 100644 --- a/gr-vrt/src/vrt_quadradio_source_32fc.h +++ b/gr-vrt/src/vrt_quadradio_source_32fc.h @@ -68,10 +68,9 @@ public: /*! * \brief Set the band select dboard bits. - * \param band "A", "B", "C", "D" */ - bool set_band_select(const std::string &band); - std::string get_band_select(void); + bool set_band_select(int band); + int get_band_select(void); /*! * \brief Turn the 10 dB attenuation on/off. -- cgit From 7b09198e2330d59de7d55030bef342afd217368a Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 20 Aug 2009 19:12:07 -0700 Subject: added quadradio method to enable/disable cal --- gr-vrt/src/vrt_quadradio_source_32fc.cc | 4 ++++ gr-vrt/src/vrt_quadradio_source_32fc.h | 1 + 2 files changed, 5 insertions(+) (limited to 'gr-vrt/src') diff --git a/gr-vrt/src/vrt_quadradio_source_32fc.cc b/gr-vrt/src/vrt_quadradio_source_32fc.cc index 3769f9124..0aac86991 100644 --- a/gr-vrt/src/vrt_quadradio_source_32fc.cc +++ b/gr-vrt/src/vrt_quadradio_source_32fc.cc @@ -216,3 +216,7 @@ vrt_quadradio_source_32fc::set_beamforming(std::vector 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 862afc5eb..6193efa10 100644 --- a/gr-vrt/src/vrt_quadradio_source_32fc.h +++ b/gr-vrt/src/vrt_quadradio_source_32fc.h @@ -109,6 +109,7 @@ public: bool set_lo_freq(double freq); bool set_cal_freq(double freq); bool set_beamforming(std::vector gains); + bool set_cal_enb(bool enb); }; -- cgit