blob: 52ef26f79f26ab980b08ea38b5b1ac84c3b0f8da (
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
|
id: analog_agc_xx
label: AGC
parameters:
- id: type
label: Type
dtype: enum
options: [complex, float]
option_attributes:
fcn: [cc, ff]
hide: part
- id: rate
label: Rate
dtype: real
default: 1e-4
- id: reference
label: Reference
dtype: real
default: '1.0'
- id: gain
label: Gain
dtype: real
default: '1.0'
- id: max_gain
label: Max Gain
dtype: real
default: '65536'
inputs:
- domain: stream
dtype: ${ type }
outputs:
- domain: stream
dtype: ${ type }
templates:
imports: from gnuradio import analog
make: |-
analog.agc_${type.fcn}(${rate}, ${reference}, ${gain})
self.${id}.set_max_gain(${max_gain})
callbacks:
- set_rate(${rate})
- set_reference(${reference})
- set_gain(${gain})
- set_max_gain(${max_gain})
file_format: 1
|