~ubuntu-branches/ubuntu/trusty/gnuradio/trusty-updates

« back to all changes in this revision

Viewing changes to grc/blocks/blks2_ofdm_demod.xml

  • Committer: Package Import Robot
  • Author(s): A. Maitland Bottoms
  • Date: 2012-02-26 21:26:16 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120226212616-vsfkbi1158xshdql
Tags: 3.5.1-1
* new upstream version, re-packaged from scratch with modern tools
    closes: #642716, #645332, #394849, #616832, #590048, #642580,
    #647018, #557050, #559640, #631863
* CMake build

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0"?>
2
 
<!--
3
 
###################################################
4
 
##OFDM Demod
5
 
###################################################
6
 
 -->
7
 
<block>
8
 
        <name>OFDM Demod</name>
9
 
        <key>blks2_ofdm_demod</key>
10
 
        <import>from grc_gnuradio import blks2 as grc_blks2</import>
11
 
        <import>from gnuradio import blks2</import>
12
 
        <make>grc_blks2.packet_demod_$(type.fcn)(blks2.ofdm_demod(
13
 
                options=grc_blks2.options(
14
 
                        modulation="$modulation",
15
 
                        fft_length=$fft_length,
16
 
                        occupied_tones=$occupied_tones,
17
 
                        cp_length=$cp_length,
18
 
                        snr=$snr,
19
 
                        log=None,
20
 
                        verbose=None,
21
 
                ),
22
 
                callback=lambda ok, payload: self.$(id).recv_pkt(ok, payload),
23
 
        ),
24
 
)</make>
25
 
        <param>
26
 
                <name>Output Type</name>
27
 
                <key>type</key>
28
 
                <value>float</value>
29
 
                <type>enum</type>
30
 
                <option>
31
 
                        <name>Complex</name>
32
 
                        <key>complex</key>
33
 
                        <opt>fcn:c</opt>
34
 
                </option>
35
 
                <option>
36
 
                        <name>Float</name>
37
 
                        <key>float</key>
38
 
                        <opt>fcn:f</opt>
39
 
                </option>
40
 
                <option>
41
 
                        <name>Int</name>
42
 
                        <key>int</key>
43
 
                        <opt>fcn:i</opt>
44
 
                </option>
45
 
                <option>
46
 
                        <name>Short</name>
47
 
                        <key>short</key>
48
 
                        <opt>fcn:s</opt>
49
 
                </option>
50
 
                <option>
51
 
                        <name>Byte</name>
52
 
                        <key>byte</key>
53
 
                        <opt>fcn:b</opt>
54
 
                </option>
55
 
        </param>
56
 
        <param>
57
 
                <name>Modulation</name>
58
 
                <key>modulation</key>
59
 
                <type>enum</type>
60
 
                <option>
61
 
                        <name>BPSK</name>
62
 
                        <key>bpsk</key>
63
 
                </option>
64
 
                <option>
65
 
                        <name>QPSK</name>
66
 
                        <key>qpsk</key>
67
 
                </option>
68
 
                <option>
69
 
                        <name>8PSK</name>
70
 
                        <key>8psk</key>
71
 
                </option>
72
 
                <option>
73
 
                        <name>QAM8</name>
74
 
                        <key>qam8</key>
75
 
                </option>
76
 
                <option>
77
 
                        <name>QAM16</name>
78
 
                        <key>qam16</key>
79
 
                </option>
80
 
                <option>
81
 
                        <name>QAM64</name>
82
 
                        <key>qam64</key>
83
 
                </option>
84
 
                <option>
85
 
                        <name>QAM256</name>
86
 
                        <key>qam256</key>
87
 
                </option>
88
 
        </param>
89
 
        <param>
90
 
                <name>FFT Length</name>
91
 
                <key>fft_length</key>
92
 
                <value>512</value>
93
 
                <type>int</type>
94
 
        </param>
95
 
        <param>
96
 
                <name>Occupied Tones</name>
97
 
                <key>occupied_tones</key>
98
 
                <value>200</value>
99
 
                <type>int</type>
100
 
        </param>
101
 
        <param>
102
 
                <name>Cyclic Prefix Length</name>
103
 
                <key>cp_length</key>
104
 
                <value>128</value>
105
 
                <type>int</type>
106
 
        </param>
107
 
        <param>
108
 
                <name>SNR</name>
109
 
                <key>snr</key>
110
 
                <value>10</value>
111
 
                <type>real</type>
112
 
        </param>
113
 
        <sink>
114
 
                <name>in</name>
115
 
                <type>complex</type>
116
 
        </sink>
117
 
        <source>
118
 
                <name>out</name>
119
 
                <type>$type</type>
120
 
        </source>
121
 
        <doc>Payload Length: 0 for automatic.</doc>
122
 
</block>