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

« back to all changes in this revision

Viewing changes to grc/blocks/usrp_dual_source_x.xml

  • Committer: Bazaar Package Importer
  • Author(s): Kamal Mostafa
  • Date: 2010-03-13 07:46:01 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100313074601-zjsa893a87bozyh7
Tags: 3.2.2.dfsg-1ubuntu1
* Fix build for Ubuntu lucid (LP: #260406)
  - add binary package dep for libusrp0, libusrp2-0: adduser
  - debian/rules clean: remove pre-built Qt moc files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!--
 
3
###################################################
 
4
##USRP Dual Source
 
5
###################################################
 
6
 -->
 
7
<block>
 
8
        <name>USRP Dual Source</name>
 
9
        <key>usrp_dual_source_x</key>
 
10
        <import>from grc_gnuradio import usrp as grc_usrp</import>
 
11
        <make>grc_usrp.dual_source_$(type.fcn)(which=$which, rx_ant_a=$rx_ant_a, rx_ant_b=$rx_ant_b)
 
12
#if $format()
 
13
self.$(id).set_format(width=$format.width, shift=$format.shift)
 
14
#end if
 
15
self.$(id).set_decim_rate($decimation)
 
16
self.$(id).set_frequency_a($frequency_a, verbose=True)
 
17
self.$(id).set_frequency_b($frequency_b, verbose=True)
 
18
self.$(id).set_gain_a($gain_a)
 
19
self.$(id).set_gain_b($gain_b)
 
20
#if $lo_offset_a() != float('inf')
 
21
self.$(id).set_lo_offset_a($lo_offset_a)
 
22
#end if
 
23
#if $lo_offset_b() != float('inf')
 
24
self.$(id).set_lo_offset_b($lo_offset_b)
 
25
#end if</make>
 
26
        <callback>set_decim_rate($decimation)</callback>
 
27
        <callback>set_frequency_a($frequency_a)</callback>
 
28
        <callback>set_frequency_b($frequency_b)</callback>
 
29
        <callback>set_gain_a($gain_a)</callback>
 
30
        <callback>set_gain_b($gain_b)</callback>
 
31
        <param>
 
32
                <name>Output Type</name>
 
33
                <key>type</key>
 
34
                <type>enum</type>
 
35
                <option>
 
36
                        <name>Complex</name>
 
37
                        <key>complex</key>
 
38
                        <opt>fcn:c</opt>
 
39
                </option>
 
40
                <option>
 
41
                        <name>Short</name>
 
42
                        <key>short</key>
 
43
                        <opt>fcn:s</opt>
 
44
                </option>
 
45
        </param>
 
46
        <param>
 
47
                <name>Format</name>
 
48
                <key>format</key>
 
49
                <value></value>
 
50
                <type>enum</type>
 
51
                <hide>#if $format() then '' else 'part'#</hide>
 
52
                <option>
 
53
                        <name>16 Bits (Default)</name>
 
54
                        <key></key>
 
55
                        <opt>width:16</opt>
 
56
                        <opt>shift:0</opt>
 
57
                </option>
 
58
                <option>
 
59
                        <name>8 Bits, Shift 8</name>
 
60
                        <key>w8_s8</key>
 
61
                        <opt>width:8</opt>
 
62
                        <opt>shift:8</opt>
 
63
                </option>
 
64
        </param>
 
65
        <param>
 
66
                <name>Unit Number</name>
 
67
                <key>which</key>
 
68
                <value>0</value>
 
69
                <type>int</type>
 
70
        </param>
 
71
        <param>
 
72
                <name>Decimation</name>
 
73
                <key>decimation</key>
 
74
                <type>int</type>
 
75
        </param>
 
76
        <param>
 
77
                <name>Frequency A (Hz)</name>
 
78
                <key>frequency_a</key>
 
79
                <type>real</type>
 
80
        </param>
 
81
        <param>
 
82
                <name>Frequency B (Hz)</name>
 
83
                <key>frequency_b</key>
 
84
                <type>real</type>
 
85
        </param>
 
86
        <param>
 
87
                <name>LO Offset A (Hz)</name>
 
88
                <key>lo_offset_a</key>
 
89
                <value>float('inf')</value>
 
90
                <type>real</type>
 
91
                <hide>#if $lo_offset_a() == float('inf') then 'part' else 'none'#</hide>
 
92
                <option>
 
93
                        <name>Default</name>
 
94
                        <key>float('inf')</key>
 
95
                </option>
 
96
        </param>
 
97
        <param>
 
98
                <name>LO Offset B (Hz)</name>
 
99
                <key>lo_offset_b</key>
 
100
                <value>float('inf')</value>
 
101
                <type>real</type>
 
102
                <hide>#if $lo_offset_b() == float('inf') then 'part' else 'none'#</hide>
 
103
                <option>
 
104
                        <name>Default</name>
 
105
                        <key>float('inf')</key>
 
106
                </option>
 
107
        </param>
 
108
        <param>
 
109
                <name>Gain A (dB)</name>
 
110
                <key>gain_a</key>
 
111
                <value>0</value>
 
112
                <type>real</type>
 
113
        </param>
 
114
        <param>
 
115
                <name>Gain B (dB)</name>
 
116
                <key>gain_b</key>
 
117
                <value>0</value>
 
118
                <type>real</type>
 
119
        </param>
 
120
<!--
 
121
###################################################
 
122
## Antenna A
 
123
###################################################
 
124
 -->
 
125
        <param>
 
126
                <name>RX Antenna A</name>
 
127
                <key>rx_ant_a</key>
 
128
                <value>RXA</value>
 
129
                <type>string</type>
 
130
                <option>
 
131
                        <name>RXA</name>
 
132
                        <key>RXA</key>
 
133
                </option>
 
134
                <option>
 
135
                        <name>RXB</name>
 
136
                        <key>RXB</key>
 
137
                </option>
 
138
                <option>
 
139
                        <name>RXAB</name>
 
140
                        <key>RXAB</key>
 
141
                </option>
 
142
                <option>
 
143
                        <name>TX/RX</name>
 
144
                        <key>TX/RX</key>
 
145
                </option>
 
146
                <option>
 
147
                        <name>RX2</name>
 
148
                        <key>RX2</key>
 
149
                </option>
 
150
        </param>
 
151
<!--
 
152
###################################################
 
153
## Antenna B
 
154
###################################################
 
155
 -->
 
156
        <param>
 
157
                <name>RX Antenna B</name>
 
158
                <key>rx_ant_b</key>
 
159
                <value>RXA</value>
 
160
                <type>string</type>
 
161
                <option>
 
162
                        <name>RXA</name>
 
163
                        <key>RXA</key>
 
164
                </option>
 
165
                <option>
 
166
                        <name>RXB</name>
 
167
                        <key>RXB</key>
 
168
                </option>
 
169
                <option>
 
170
                        <name>RXAB</name>
 
171
                        <key>RXAB</key>
 
172
                </option>
 
173
                <option>
 
174
                        <name>TX/RX</name>
 
175
                        <key>TX/RX</key>
 
176
                </option>
 
177
                <option>
 
178
                        <name>RX2</name>
 
179
                        <key>RX2</key>
 
180
                </option>
 
181
        </param>
 
182
        <source>
 
183
                <name>Aout</name>
 
184
                <type>$type</type>
 
185
        </source>
 
186
        <source>
 
187
                <name>Bout</name>
 
188
                <type>$type</type>
 
189
        </source>
 
190
        <doc>
 
191
The USRP source outputs 64 Megasamples per second / decimation.
 
192
 
 
193
The "Receive Antenna Setting" selects one of the SMA connectors as the data source. \
 
194
Flex RF boards use the "TX/RX" and "RX2" settings. \
 
195
Basic RX and LFRX use the "RXA", "RXB", and "RXAB" settings. \
 
196
All other boards use the "RXA" setting.
 
197
        </doc>
 
198
</block>