diff options
author | Tom Rondeau <trondeau@vt.edu> | 2013-03-08 10:01:37 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2013-03-08 10:01:37 -0500 |
commit | fe70fa72ea22a133874337da2d03d30611e5ab1c (patch) | |
tree | 720a9e4e289e9a029fb363c635675daf91e5f77b /gr-analog/lib | |
parent | 0970c7eaa165c6dc7d70be55dbf3d272b88fc109 (diff) |
blocks: removed all nco/vco and fxpt stuff from core; now in gr-blocks.
Moved the nco/vco tests to gr-blocks/test and enabled them.
Diffstat (limited to 'gr-analog/lib')
-rw-r--r-- | gr-analog/lib/CMakeLists.txt | 2 | ||||
-rw-r--r-- | gr-analog/lib/frequency_modulator_fc_impl.cc | 6 | ||||
-rw-r--r-- | gr-analog/lib/sig_source_X_impl.h.t | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/gr-analog/lib/CMakeLists.txt b/gr-analog/lib/CMakeLists.txt index 74169da4a2..a85c90851f 100644 --- a/gr-analog/lib/CMakeLists.txt +++ b/gr-analog/lib/CMakeLists.txt @@ -27,6 +27,7 @@ include_directories( ${GR_ANALOG_INCLUDE_DIRS} ${GR_FILTER_INCLUDE_DIRS} ${GR_FFT_INCLUDE_DIRS} + ${GR_BLOCKS_INCLUDE_DIRS} ${GNURADIO_CORE_INCLUDE_DIRS} ${VOLK_INCLUDE_DIRS} ${GRUEL_INCLUDE_DIRS} @@ -160,6 +161,7 @@ list(APPEND analog_libs volk gnuradio-core gnuradio-filter + gnuradio-blocks ${Boost_LIBRARIES} ) diff --git a/gr-analog/lib/frequency_modulator_fc_impl.cc b/gr-analog/lib/frequency_modulator_fc_impl.cc index 2da7ee15f1..ae8c95d02f 100644 --- a/gr-analog/lib/frequency_modulator_fc_impl.cc +++ b/gr-analog/lib/frequency_modulator_fc_impl.cc @@ -26,7 +26,7 @@ #include "frequency_modulator_fc_impl.h" #include <gr_io_signature.h> -#include <gr_fxpt.h> +#include <blocks/fxpt.h> #include <math.h> #include <boost/math/special_functions/trunc.hpp> @@ -70,8 +70,8 @@ namespace gr { float oi, oq; - gr_int32 angle = gr_fxpt::float_to_fixed (d_phase); - gr_fxpt::sincos(angle, &oq, &oi); + int32_t angle = gr::blocks::fxpt::float_to_fixed (d_phase); + gr::blocks::fxpt::sincos(angle, &oq, &oi); out[i] = gr_complex(oi, oq); } diff --git a/gr-analog/lib/sig_source_X_impl.h.t b/gr-analog/lib/sig_source_X_impl.h.t index 50f1791270..4fed9a060a 100644 --- a/gr-analog/lib/sig_source_X_impl.h.t +++ b/gr-analog/lib/sig_source_X_impl.h.t @@ -27,7 +27,7 @@ #include <analog/@BASE_NAME@.h> #include <gr_sync_block.h> -#include <gr_fxpt_nco.h> +#include <blocks/fxpt_nco.h> namespace gr { namespace analog { @@ -40,7 +40,7 @@ namespace gr { double d_frequency; double d_ampl; @TYPE@ d_offset; - gr_fxpt_nco d_nco; + gr::blocks::fxpt_nco d_nco; public: @IMPL_NAME@(double sampling_freq, gr_waveform_t waveform, |