summaryrefslogtreecommitdiff
path: root/grc/blocks
diff options
context:
space:
mode:
Diffstat (limited to 'grc/blocks')
-rw-r--r--grc/blocks/.gitignore2
-rw-r--r--grc/blocks/CMakeLists.txt8
-rw-r--r--grc/blocks/Makefile.am200
-rw-r--r--grc/blocks/blks2_pfb_arb_resampler.xml2
-rw-r--r--grc/blocks/blks2_pfb_channelizer.xml11
-rw-r--r--grc/blocks/block_tree.xml3
-rw-r--r--grc/blocks/gr_file_sink.xml1
-rw-r--r--grc/blocks/gr_pfb_synthesizer.xml (renamed from grc/blocks/gr_pfb_synthesis_filterbank.xml)22
-rw-r--r--grc/blocks/gr_probe_mpsk_snr_c.xml28
-rw-r--r--grc/blocks/gr_wavfile_sink.xml1
10 files changed, 36 insertions, 242 deletions
diff --git a/grc/blocks/.gitignore b/grc/blocks/.gitignore
deleted file mode 100644
index b336cc7ce..000000000
--- a/grc/blocks/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/Makefile
-/Makefile.in
diff --git a/grc/blocks/CMakeLists.txt b/grc/blocks/CMakeLists.txt
index ad31b0975..fce4a1907 100644
--- a/grc/blocks/CMakeLists.txt
+++ b/grc/blocks/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/grc/blocks/Makefile.am b/grc/blocks/Makefile.am
deleted file mode 100644
index 37f493ce5..000000000
--- a/grc/blocks/Makefile.am
+++ /dev/null
@@ -1,200 +0,0 @@
-#
-# Copyright 2008-2011 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-include $(top_srcdir)/Makefile.common
-
-ourdatadir = $(grc_blocksdir)
-dist_ourdata_DATA = \
- block_tree.xml \
- band_pass_filter.xml \
- band_reject_filter.xml \
- blks2_am_demod_cf.xml \
- blks2_analysis_filterbank.xml \
- blks2_error_rate.xml \
- blks2_fm_deemph.xml \
- blks2_fm_demod_cf.xml \
- blks2_fm_preemph.xml \
- blks2_logpwrfft_x.xml \
- blks2_nbfm_rx.xml \
- blks2_nbfm_tx.xml \
- blks2_packet_decoder.xml \
- blks2_packet_encoder.xml \
- blks2_pfb_arb_resampler.xml \
- blks2_pfb_channelizer.xml \
- blks2_rational_resampler_xxx.xml \
- blks2_selector.xml \
- blks2_standard_squelch.xml \
- blks2_stream_to_vector_decimator.xml \
- blks2_synthesis_filterbank.xml \
- blks2_tcp_sink.xml \
- blks2_tcp_source.xml \
- blks2_valve.xml \
- blks2_wfm_rcv.xml \
- blks2_wfm_rcv_pll.xml \
- blks2_wfm_tx.xml \
- const_source_x.xml \
- gr_add_const_vxx.xml \
- gr_add_xx.xml \
- gr_additive_scrambler_bb.xml \
- gr_agc2_xx.xml \
- gr_agc_xx.xml \
- gr_and_xx.xml \
- gr_and_const_xx.xml \
- gr_argmax_xx.xml \
- gr_channel_model.xml \
- gr_char_to_float.xml \
- gr_char_to_short.xml \
- gr_chunks_to_symbols.xml \
- gr_complex_to_arg.xml \
- gr_complex_to_float.xml \
- gr_complex_to_imag.xml \
- gr_complex_to_interleaved_short.xml \
- gr_complex_to_mag.xml \
- gr_complex_to_mag_squared.xml \
- gr_complex_to_real.xml \
- gr_conjugate_cc.xml \
- gr_copy.xml \
- gr_cpfsk_bc.xml \
- gr_ctcss_squelch_ff.xml \
- gr_dc_blocker.xml \
- gr_decode_ccsds_27_fb.xml \
- gr_deinterleave.xml \
- gr_delay.xml \
- gr_descrambler_bb.xml \
- gr_diff_decoder_bb.xml \
- gr_diff_encoder_bb.xml \
- gr_diff_phasor_cc.xml \
- gr_divide_xx.xml \
- gr_dpll_bb.xml \
- gr_encode_ccsds_27_bb.xml \
- gr_feedforward_agc_cc.xml \
- gr_fft_filter_xxx.xml \
- gr_fft_vxx.xml \
- gr_file_sink.xml \
- gr_file_source.xml \
- gr_filter_delay_fc.xml \
- gr_fir_filter_xxx.xml \
- gr_float_to_char.xml \
- gr_float_to_complex.xml \
- gr_float_to_int.xml \
- gr_float_to_short.xml \
- gr_float_to_uchar.xml \
- gr_fractional_interpolator_xx.xml \
- gr_freq_xlating_fir_filter_xxx.xml \
- gr_frequency_modulator_fc.xml \
- gr_glfsr_source_x.xml \
- gr_goertzel_fc.xml \
- gr_head.xml \
- gr_hilbert_fc.xml \
- gr_iir_filter_ffd.xml \
- gr_int_to_float.xml \
- gr_integrate_xx.xml \
- gr_interleave.xml \
- gr_interleaved_short_to_complex.xml \
- gr_interp_fir_filter_xxx.xml \
- gr_iqcomp_cc.xml \
- gr_keep_one_in_n.xml \
- gr_kludge_copy.xml \
- gr_map_bb.xml \
- gr_max_xx.xml \
- gr_message_sink.xml \
- gr_message_source.xml \
- gr_moving_average_xx.xml \
- gr_mpsk_sync_cc.xml \
- gr_multiply_const_vxx.xml \
- gr_multiply_xx.xml \
- gr_mute_xx.xml \
- gr_nlog10_ff.xml \
- gr_noise_source_x.xml \
- gr_nop.xml \
- gr_not_xx.xml \
- gr_null_sink.xml \
- gr_null_source.xml \
- gr_or_xx.xml \
- gr_packed_to_unpacked_xx.xml \
- gr_peak_detector2_fb.xml \
- gr_peak_detector_xb.xml \
- gr_pfb_clock_sync.xml \
- gr_pfb_synthesis_filterbank.xml \
- gr_phase_modulator_fc.xml \
- gr_pll_carriertracking_cc.xml \
- gr_pll_freqdet_cf.xml \
- gr_pll_refout_cc.xml \
- gr_pn_correlator_cc.xml \
- gr_probe_avg_mag_sqrd_x.xml \
- gr_probe_density_b.xml \
- gr_probe_mpsk_snr_c.xml \
- gr_probe_signal_f.xml \
- gr_pwr_squelch_xx.xml \
- gr_quadrature_demod_cf.xml \
- gr_rational_resampler_base_xxx.xml \
- gr_repeat.xml \
- gr_rms_xx.xml \
- gr_sample_and_hold_xx.xml \
- gr_scrambler_bb.xml \
- gr_short_to_float.xml \
- gr_short_to_char.xml \
- gr_sig_source_x.xml \
- gr_simple_correlator.xml \
- gr_simple_framer.xml \
- gr_simple_squelch_cc.xml \
- gr_single_pole_iir_filter_xx.xml \
- gr_skiphead.xml \
- gr_stream_mux.xml \
- gr_stream_to_streams.xml \
- gr_stream_to_vector.xml \
- gr_streams_to_stream.xml \
- gr_streams_to_vector.xml \
- gr_burst_tagger.xml \
- gr_sub_xx.xml \
- gr_threshold_ff.xml \
- gr_throttle.xml \
- gr_transcendental.xml \
- gr_uchar_to_float.xml \
- gr_udp_sink.xml \
- gr_udp_source.xml \
- gr_unpack_k_bits_bb.xml \
- gr_unpacked_to_packed_xx.xml \
- gr_vco_f.xml \
- gr_vector_sink_x.xml \
- gr_vector_source_x.xml \
- gr_vector_to_stream.xml \
- gr_vector_to_streams.xml \
- gr_wavfile_sink.xml \
- gr_wavfile_source.xml \
- gr_xor_xx.xml \
- high_pass_filter.xml \
- import.xml \
- low_pass_filter.xml \
- note.xml \
- options.xml \
- pad_sink.xml \
- pad_source.xml \
- parameter.xml \
- random_source_x.xml \
- root_raised_cosine_filter.xml \
- variable.xml \
- variable_config.xml \
- variable_function_probe.xml \
- virtual_sink.xml \
- virtual_source.xml \
- xmlrpc_client.xml \
- xmlrpc_server.xml
diff --git a/grc/blocks/blks2_pfb_arb_resampler.xml b/grc/blocks/blks2_pfb_arb_resampler.xml
index b4e09791f..b58e70f1c 100644
--- a/grc/blocks/blks2_pfb_arb_resampler.xml
+++ b/grc/blocks/blks2_pfb_arb_resampler.xml
@@ -14,7 +14,7 @@
$taps,
$size,
)</make>
- <!-- Set taps not implemented yet
+ <!-- Set taps not implemented yet
<callback>set_taps($taps)</callback>
-->
<callback>set_rate($rate)</callback>
diff --git a/grc/blocks/blks2_pfb_channelizer.xml b/grc/blocks/blks2_pfb_channelizer.xml
index aee9dd512..5a93c0866 100644
--- a/grc/blocks/blks2_pfb_channelizer.xml
+++ b/grc/blocks/blks2_pfb_channelizer.xml
@@ -14,10 +14,13 @@
$taps,
$osr,
$atten)
+self.$(id).set_channel_map($ch_map)
</make>
- <!-- Set taps not implemented yet
+ <!-- Set taps not implemented yet
<callback>set_taps($taps)</callback>
-->
+ <callback>set_channel_map($ch_map)</callback>
+
<param>
<name>Channels</name>
<key>nchans</key>
@@ -41,6 +44,12 @@
<value>100</value>
<type>real</type>
</param>
+ <param>
+ <name>Channel Map</name>
+ <key>ch_map</key>
+ <value>[]</value>
+ <type>int_vector</type>
+ </param>
<sink>
<name>in</name>
<type>complex</type>
diff --git a/grc/blocks/block_tree.xml b/grc/blocks/block_tree.xml
index 42187585e..18bc050ba 100644
--- a/grc/blocks/block_tree.xml
+++ b/grc/blocks/block_tree.xml
@@ -174,7 +174,7 @@
<!-- Polyphase filters -->
<block>blks2_pfb_arb_resampler_ccf</block>
<block>blks2_pfb_channelizer_ccf</block>
- <block>gr_pfb_synthesis_filterbank_ccf</block>
+ <block>gr_pfb_synthesizer_ccf</block>
<!-- Other filters -->
<block>gr_single_pole_iir_filter_xx</block>
<block>gr_hilbert_fc</block>
@@ -231,7 +231,6 @@
<name>Probes</name>
<block>gr_probe_avg_mag_sqrd_x</block>
<block>gr_probe_density_b</block>
- <block>gr_probe_mpsk_snr_c</block>
<block>gr_probe_signal_f</block>
</cat>
<cat>
diff --git a/grc/blocks/gr_file_sink.xml b/grc/blocks/gr_file_sink.xml
index 0081c93f8..d0a693900 100644
--- a/grc/blocks/gr_file_sink.xml
+++ b/grc/blocks/gr_file_sink.xml
@@ -11,6 +11,7 @@
<make>gr.file_sink($type.size*$vlen, $file)
self.$(id).set_unbuffered($unbuffered)</make>
<callback>set_unbuffered($unbuffered)</callback>
+ <callback>open($file)</callback>
<param>
<name>File</name>
<key>file</key>
diff --git a/grc/blocks/gr_pfb_synthesis_filterbank.xml b/grc/blocks/gr_pfb_synthesizer.xml
index a8b944c6a..49e5cb032 100644
--- a/grc/blocks/gr_pfb_synthesis_filterbank.xml
+++ b/grc/blocks/gr_pfb_synthesizer.xml
@@ -5,14 +5,16 @@
###################################################
-->
<block>
- <name>Polyphase Synthesis Filterbank</name>
- <key>gr_pfb_synthesis_filterbank_ccf</key>
+ <name>Polyphase Synthesizer</name>
+ <key>gr_pfb_synthesizer_ccf</key>
<import>from gnuradio import gr</import>
<import>from gnuradio.gr import firdes</import>
- <make>gr.pfb_synthesis_filterbank_ccf(
- $numchans, $taps)
+ <make>gr.pfb_synthesizer_ccf(
+ $numchans, $taps, $twox)
+self.$(id).set_channel_map($ch_map)
</make>
<callback>set_taps($taps)</callback>
+ <callback>set_channel_map($ch_map)</callback>
<param>
<name>Channels</name>
@@ -31,6 +33,18 @@
<key>taps</key>
<type>real_vector</type>
</param>
+ <param>
+ <name>2x Sample Rate</name>
+ <key>twox</key>
+ <value>False</value>
+ <type>bool</type>
+ </param>
+ <param>
+ <name>Channel Map</name>
+ <key>ch_map</key>
+ <value>[]</value>
+ <type>int_vector</type>
+ </param>
<sink>
<name>in</name>
<type>complex</type>
diff --git a/grc/blocks/gr_probe_mpsk_snr_c.xml b/grc/blocks/gr_probe_mpsk_snr_c.xml
deleted file mode 100644
index 5687e867d..000000000
--- a/grc/blocks/gr_probe_mpsk_snr_c.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0"?>
-<!--
-###################################################
-##Probe MPSK SNR
-###################################################
- -->
-<block>
- <name>Probe MPSK SNR</name>
- <key>gr_probe_mpsk_snr_c</key>
- <import>from gnuradio import gr</import>
- <make>gr.probe_mpsk_snr_c($alpha)</make>
- <callback>set_alpha($alpha)</callback>
- <param>
- <name>Alpha</name>
- <key>alpha</key>
- <value>1</value>
- <type>real</type>
- </param>
- <sink>
- <name>in</name>
- <type>complex</type>
- </sink>
- <doc>
-Available functions to probe: signal_mean(), noise_variance()
-
-Use with the function probe block.
- </doc>
-</block>
diff --git a/grc/blocks/gr_wavfile_sink.xml b/grc/blocks/gr_wavfile_sink.xml
index f2c8a009f..651e16cb6 100644
--- a/grc/blocks/gr_wavfile_sink.xml
+++ b/grc/blocks/gr_wavfile_sink.xml
@@ -9,6 +9,7 @@
<key>gr_wavfile_sink</key>
<import>from gnuradio import gr</import>
<make>gr.wavfile_sink($file, $nchan, $samp_rate, $bits_per_sample)</make>
+ <callback>open($file)</callback>
<param>
<name>File</name>
<key>file</key>