diff options
author | jblum | 2009-03-12 06:53:54 +0000 |
---|---|---|
committer | jblum | 2009-03-12 06:53:54 +0000 |
commit | 2c4a4e0c371b1cd0029901aa176915300a02f1b8 (patch) | |
tree | e251c87a4929b49e1695f4abb57dbbe1e1b0a000 /grc/data/platforms/python/blocks/blks2_packet_decoder.xml | |
parent | 48ecbf1162f9031ab7134bbb571efc345bc8d7bd (diff) | |
download | gnuradio-2c4a4e0c371b1cd0029901aa176915300a02f1b8.tar.gz gnuradio-2c4a4e0c371b1cd0029901aa176915300a02f1b8.tar.bz2 gnuradio-2c4a4e0c371b1cd0029901aa176915300a02f1b8.zip |
Added OFDM Mod and Demod to GRC (cough cough... kludge).
Generalized the packet mod and demod stuff to accept the OFDM blocks.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10585 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/data/platforms/python/blocks/blks2_packet_decoder.xml')
-rw-r--r-- | grc/data/platforms/python/blocks/blks2_packet_decoder.xml | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/grc/data/platforms/python/blocks/blks2_packet_decoder.xml b/grc/data/platforms/python/blocks/blks2_packet_decoder.xml index d360bc177..07b0d1f2e 100644 --- a/grc/data/platforms/python/blocks/blks2_packet_decoder.xml +++ b/grc/data/platforms/python/blocks/blks2_packet_decoder.xml @@ -8,11 +8,11 @@ <name>Packet Decoder</name> <key>blks2_packet_decoder</key> <import>from grc_gnuradio import blks2 as grc_blks2</import> - <import>from gnuradio import gr</import> - <make>grc_blks2.packet_decoder( - item_size_out=$type.size*$vlen, - access_code=$access_code, - threshold=$threshold, + <make>grc_blks2.packet_demod_$(type.fcn)(grc_blks2.packet_decoder( + access_code=$access_code, + threshold=$threshold, + callback=lambda ok, payload: self.$(id).recv_pkt(ok, payload), + ), )</make> <param> <name>Output Type</name> @@ -22,27 +22,27 @@ <option> <name>Complex</name> <key>complex</key> - <opt>size:gr.sizeof_gr_complex</opt> + <opt>fcn:c</opt> </option> <option> <name>Float</name> <key>float</key> - <opt>size:gr.sizeof_float</opt> + <opt>fcn:f</opt> </option> <option> <name>Int</name> <key>int</key> - <opt>size:gr.sizeof_int</opt> + <opt>fcn:i</opt> </option> <option> <name>Short</name> <key>short</key> - <opt>size:gr.sizeof_short</opt> + <opt>fcn:s</opt> </option> <option> <name>Byte</name> <key>byte</key> - <opt>size:gr.sizeof_char</opt> + <opt>fcn:b</opt> </option> </param> <param> @@ -57,13 +57,6 @@ <value>-1</value> <type>int</type> </param> - <param> - <name>Vec Length</name> - <key>vlen</key> - <value>1</value> - <type>int</type> - </param> - <check>$vlen > 0</check> <sink> <name>in</name> <type>byte</type> @@ -71,11 +64,12 @@ <source> <name>out</name> <type>$type</type> - <vlen>$vlen</vlen> </source> <doc> Packet decoder block, for use with the gnuradio demodulator blocks: gmsk, psk, qam. -Access Code: string of 1's and 0's, leave blank for default. +Access Code: string of 1's and 0's, leave blank for automatic. + +Threshold: -1 for automatic. </doc> </block> |