blob: a601b3d8824571ed95b6f995596ff8fa53e6787a (
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
|
id: analog_random_uniform_source_x
label: Random Uniform Source
flags: [ python, cpp ]
parameters:
- id: type
label: Output Type
dtype: enum
options: [int, short, byte]
option_attributes:
fcn: [i, s, b]
offset_type: [int, int, int]
hide: part
- id: minimum
label: Minimum
dtype: int
- id: maximum
label: Maximum
dtype: int
- id: seed
label: Seed
dtype: int
default: '0'
outputs:
- domain: stream
dtype: ${ type }
templates:
imports: from gnuradio import analog
make: analog.random_uniform_source_${type.fcn}(${minimum}, ${maximum}, ${seed})
cpp_templates:
includes: ['#include <gnuradio/analog/random_uniform_source.h>']
make: 'this->${id} = analog.random_uniform_source_${type.fcn}(${minimum}, ${maximum}, ${seed});'
link: ['gnuradio-analog']
file_format: 1
|