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
|
id: digital_pfb_clock_sync_xxx
label: Polyphase Clock Sync
category: '[Core]/Deprecated'
flags: [ python, cpp ]
parameters:
- id: type
label: Type
dtype: enum
options: [ccf, fff]
option_labels: [Complex->Complex (Real Taps), Float->Float (Real Taps)]
option_attributes:
input: [complex, float]
output: [complex, float]
taps: [real_vector, real_vector]
hide: part
- id: sps
label: Samples/Symbol
dtype: real
- id: loop_bw
label: Loop Bandwidth
dtype: real
- id: taps
label: Taps
dtype: real_vector
- id: filter_size
label: Filter Size
dtype: int
default: '32'
- id: init_phase
label: Initial Phase
dtype: real
default: '16'
- id: max_dev
label: Maximum Rate Deviation
dtype: real
default: '1.5'
- id: osps
label: Output SPS
dtype: int
default: '1'
inputs:
- domain: stream
dtype: ${ type.input }
outputs:
- domain: stream
dtype: ${ type.output }
- label: err
domain: stream
dtype: float
optional: true
- label: rate
domain: stream
dtype: float
optional: true
- label: phase
domain: stream
dtype: float
optional: true
templates:
imports: from gnuradio import digital
make: digital.pfb_clock_sync_${type}(${sps}, ${loop_bw}, ${taps}, ${filter_size},
${init_phase}, ${max_dev}, ${osps})
callbacks:
- update_taps(${taps})
- set_loop_bandwidth(${loop_bw})
cpp_templates:
includes: ['#include <gnuradio/digital/pfb_clock_sync_${type}.h>']
declarations: 'digital::pfb_clock_sync_${type}::sptr ${id};'
make: |-
std::vector<float> taps = {${str(taps)[1:-1]}};
this->${id} = digital::pfb_clock_sync_${type}::make(
${sps},
${loop_bw},
taps,
${filter_size},
${init_phase},
${max_dev},
${osps});
link: ['gnuradio-digital']
callbacks:
- update_taps(taps)
- set_loop_bandwidth(${loop_bw})
file_format: 1
|