summaryrefslogtreecommitdiff
path: root/gr-digital/grc/digital_pfb_clock_sync.xml
blob: 255eb7f7a355836267df216ea81cbe6f4da8abb6 (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
<?xml version="1.0"?>
<!--
###################################################
## Polyphase Filter based Clock Sync
###################################################
 -->
<block>
	<name>Polyphase Clock Sync</name>
	<key>digital_pfb_clock_sync_xxx</key>
	<import>from gnuradio import digital</import>
	<make>digital.pfb_clock_sync_$(type)($sps, $loop_bw, $taps, $filter_size, $init_phase, $max_dev, $osps)</make>
	<callback>set_taps($taps)</callback>
	<callback>set_loop_bandwidth($loop_bw)</callback>

	<param>
		<name>Type</name>
		<key>type</key>
		<type>enum</type>
		<option>
			<name>Complex->Complex (Real Taps)</name>
			<key>ccf</key>
			<opt>input:complex</opt>
			<opt>output:complex</opt>
			<opt>taps:real_vector</opt>
		</option>
		<option>
			<name>Float->Float (Real Taps)</name>
			<key>fff</key>
			<opt>input:float</opt>
			<opt>output:float</opt>
			<opt>taps:real_vector</opt>
		</option>
	</param>

	<param>
		<name>Samples/Symbol</name>
		<key>sps</key>
		<type>real</type>
	</param>
	<param>
		<name>Loop Bandwidth</name>
		<key>loop_bw</key>
		<type>real</type>
	</param>
	<param>
		<name>Taps</name>
		<key>taps</key>
		<type>real_vector</type>
	</param>
	<param>
		<name>Filter Size</name>
		<key>filter_size</key>
		<value>32</value>
		<type>int</type>
	</param>
	<param>
		<name>Initial Phase</name>
		<key>init_phase</key>
		<value>16</value>
		<type>real</type>
	</param>
	<param>
		<name>Maximum Rate Deviation</name>
		<key>max_dev</key>
		<value>1.5</value>
		<type>real</type>
	</param>
	<param>
		<name>Output SPS</name>
		<key>osps</key>
		<value>1</value>
		<type>int</type>
	</param>
	<sink>
		<name>in</name>
		<type>$type.input</type>
	</sink>
	<source>
		<name>out</name>
		<type>$type.output</type>
	</source>
	<source>
		<name>err</name>
		<type>float</type>
		<optional>1</optional>
	</source>
	<source>
		<name>rate</name>
		<type>float</type>
		<optional>1</optional>
	</source>
	<source>
		<name>phase</name>
		<type>float</type>
		<optional>1</optional>
	</source>
</block>