<?xml version="1.0"?>
<!--
###################################################
##Polyphase Decimator
###################################################
 -->
<block>
	<name>Polyphase Decimator</name>
	<key>pfb_decimator_ccf</key>
	<import>from gnuradio.filter import pfb</import>
	<import>from gnuradio.filter import firdes</import>
	<make>pfb.decimator_ccf(
	  $decim,
	  $taps,
	  $channel,
	  $atten,
          $fft_rot,
          $fft_filts)
self.$(id).declare_sample_delay($samp_delay)
	</make>
    <callback>set_taps($taps)</callback>
    <callback>set_channel(int($channel))</callback>
	<param>
		<name>Decimation</name>
		<key>decim</key>
		<type>int</type>
	</param>
	<param>
		<name>Taps</name>
		<key>taps</key>
		<value></value>
		<type>real_vector</type>
	</param>
	<param>
		<name>Output Channel</name>
		<key>channel</key>
		<value>0</value>
		<type>int</type>
	</param>
	<param>
		<name>Stop-band Attenuation</name>
		<key>atten</key>
		<value>100</value>
		<type>real</type>
	</param>
	<param>
		<name>Use FFT Rotator</name>
                <key>fft_rot</key>
		<value>True</value>
		<type>raw</type>
                <hide>part</hide>
		<option>
                  <name>True</name>
                  <key>True</key>
		</option>
		<option>
                  <name>False</name>
                  <key>False</key>
		</option>
	</param>
	<param>
		<name>Use FFT Filters</name>
                <key>fft_filts</key>
		<value>True</value>
		<type>raw</type>
                <hide>part</hide>
		<option>
                  <name>True</name>
                  <key>True</key>
		</option>
		<option>
                  <name>False</name>
                  <key>False</key>
		</option>
	</param>
	<param>
		<name>Sample Delay</name>
		<key>samp_delay</key>
        <value>0</value>
		<type>int</type>
        <hide>part</hide>
	</param>
	<sink>
		<name>in</name>
		<type>complex</type>
	</sink>
	<source>
		<name>out</name>
		<type>complex</type>
	</source>
</block>
