diff options
author | Josh Morman <jmorman@perspectalabs.com> | 2021-06-01 10:07:28 -0400 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-06-04 06:21:34 -0400 |
commit | 11bce8acc14d38e78220cad984df8d12bfd6ebcb (patch) | |
tree | 53dc344732bdf92764c29a7d23cfdf79622174a6 /gr-iio/lib/fmcomms2_source_impl.cc | |
parent | 2b525030ca8dac5cd69db2e4fdab71eaaec1e4f6 (diff) |
iio: clean up fmcomms2 public headers
Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
Diffstat (limited to 'gr-iio/lib/fmcomms2_source_impl.cc')
-rw-r--r-- | gr-iio/lib/fmcomms2_source_impl.cc | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gr-iio/lib/fmcomms2_source_impl.cc b/gr-iio/lib/fmcomms2_source_impl.cc index 6fbe0f778d..e69870e02f 100644 --- a/gr-iio/lib/fmcomms2_source_impl.cc +++ b/gr-iio/lib/fmcomms2_source_impl.cc @@ -12,8 +12,6 @@ #endif #include "fmcomms2_source_impl.h" -#include <gnuradio/blocks/float_to_complex.h> -#include <gnuradio/blocks/short_to_float.h> #include <gnuradio/io_signature.h> #include <ad9361.h> @@ -26,37 +24,9 @@ #define DECINT_RATIO 8 #define OVERFLOW_CHECK_PERIOD_MS 1000 -using namespace gr::blocks; - namespace gr { namespace iio { -fmcomms2_source_f32c::fmcomms2_source_f32c(bool rx1_en, - bool rx2_en, - fmcomms2_source::sptr src_block) - : hier_block2("fmcomms2_f32c", - io_signature::make(0, 0, 0), - io_signature::make((int)rx1_en + (int)rx2_en, - (int)rx1_en + (int)rx2_en, - sizeof(gr_complex))), - fmcomms2_block(src_block) -{ - basic_block_sptr hier = shared_from_this(); - unsigned int num_streams = (int)rx1_en + (int)rx2_en; - - for (unsigned int i = 0; i < num_streams; i++) { - short_to_float::sptr s2f1 = short_to_float::make(1, 2048.0); - short_to_float::sptr s2f2 = short_to_float::make(1, 2048.0); - float_to_complex::sptr f2c = float_to_complex::make(1); - - connect(src_block, i * 2, s2f1, 0); - connect(src_block, i * 2 + 1, s2f2, 0); - connect(s2f1, 0, f2c, 0); - connect(s2f2, 0, f2c, 1); - connect(f2c, 0, hier, i); - } -} - fmcomms2_source::sptr fmcomms2_source::make(const std::string& uri, const std::vector<bool>& ch_en, unsigned long buffer_size) |