blob: e6e315786c9f05d603467a79cc7c91935c3ffd28 (
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
|
<?xml version="1.0"?>
<!--
###################################################
##USRP2 Sink
###################################################
-->
<block>
<name>USRP2 Sink</name>
<key>usrp2_sink_xxxx</key>
<import>from gnuradio import usrp2</import>
<make>#if not $interface.eval and not $mac_addr.eval
usrp2.sink_$(type.fcn)()
#elif not $mac_addr.eval
usrp2.sink_$(type.fcn)($interface)
#else
usrp2.sink_$(type.fcn)($interface, $mac_addr)
#end if
self.$(id).set_interp($interpolation)
self.$(id).set_center_freq($frequency)
self.$(id).set_gain($gain)</make>
<callback>set_interp($interpolation)</callback>
<callback>set_center_freq($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>Interpolation</name>
<key>interpolation</key>
<type>int</type>
</param>
<param>
<name>Frequency</name>
<key>frequency</key>
<type>real</type>
</param>
<param>
<name>Gain</name>
<key>gain</key>
<type>real</type>
</param>
<sink>
<name>in</name>
<type>$type</type>
</sink>
<doc>
The USRP2 sink inputs 100 Megasamples per second / interpolation.
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.
</doc>
</block>
|