summaryrefslogtreecommitdiff
path: root/grc/data/platforms/python/blocks/usrp2_source_xxxx.xml
blob: 5ba4d3f648c13256920115cd598f99aa2ebe57aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0"?>
<!--
###################################################
##USRP2 Source
###################################################
 -->
<block>
	<name>USRP2 Source</name>
	<key>usrp2_source_xxxx</key>
	<import>from gnuradio import usrp2</import>
	<make>usrp2.source_$(type.fcn)($interface, $mac_addr)
self.$(id).set_decim_rate($decimation)
self.$(id).set_frequency($frequency)
self.$(id).set_gain($gain)
#if $auto_tr.eval
self.$(id).set_auto_tr($auto_tr)
#end if
#if $rx_ant.eval
self.$(id).select_rx_antenna($rx_ant)
#end if
</make>
	<callback>set_decim_rate($decimation)</callback>
	<callback>set_frequency($frequency)</callback>
	<callback>set_gain($gain)</callback>
	<param>
		<name>Output Type</name>
		<key>type</key>
		<type>enum</type>
		<option>
			<name>Complex</name>
			<key>complex</key>
			<opt>fcn:32fc</opt>
		</option>
		<option>
			<name>Short</name>
			<key>short</key>
			<opt>fcn:16sc</opt>
		</option>
	</param>
	<param>
		<name>Interface</name>
		<key>interface</key>
		<value></value>
		<type>string</type>
	</param>
	<param>
		<name>MAC Addr</name>
		<key>mac_addr</key>
		<value></value>
		<type>string</type>
	</param>
	<param>
		<name>Frequency</name>
		<key>frequency</key>
		<type>real</type>
	</param>
	<param>
		<name>Decimation</name>
		<key>decimation</key>
		<type>int</type>
	</param>
	<param>
		<name>Gain</name>
		<key>gain</key>
		<type>real</type>
	</param>
	<param>
		<name>Auto T/R</name>
		<key>auto_tr</key>
		<value></value>
		<type>enum</type>
		<hide>$auto_tr.hide</hide>
		<option>
			<name>Ignore</name>
			<key></key>
			<opt>hide:part</opt>
		</option>
		<option>
			<name>Enable</name>
			<key>True</key>
			<opt>hide:none</opt>
		</option>
		<option>
			<name>Disable</name>
			<key>False</key>
			<opt>hide:none</opt>
		</option>
	</param>
	<param>
		<name>RX Antenna</name>
		<key>rx_ant</key>
		<value></value>
		<type>enum</type>
		<hide>$rx_ant.hide</hide>
		<option>
			<name>Ignore</name>
			<key></key>
			<opt>hide:part</opt>
		</option>
		<option>
			<name>TX/RX</name>
			<key>'TX/RX'</key>
			<opt>hide:none</opt>
		</option>
		<option>
			<name>RX2</name>
			<key>'RX2'</key>
			<opt>hide:none</opt>
		</option>
	</param>
	<source>
		<name>out</name>
		<type>$type</type>
	</source>
	<doc>
The USRP2 source outputs 100 Megasamples per second / decimation.

To use the default ethernet device, leave interface blank. \
For systems with only 1 USRP2, you may leave the mac address blank. \
For multi-USRP2 systems, specify the mac address in the form 00:50:C2:85:3x:xx.

--- Flex RF specific ---
The "Auto TR" and "RX Antenna" settings are flex rf specific and should be left at "Ignore" unless this is a flex rf board.

If enabled, "Auto Transmit/Receive Switching" handles the preference for transmit packets vs receive packets. \
By default, "Auto TR" is disabled.

The "Receive Antenna Setting" selects one of the SMA connectors as the data source. \
By default, 'TX/RX' is selected.
	</doc>
</block>