summaryrefslogtreecommitdiff
path: root/gr-blocks/grc/blocks_ctrlport_probe2_x.block.yml
blob: 0d9bed4c92762af008f3f6eabf38e743efef1c00 (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
id: blocks_ctrlport_probe2_x
label: Ctrlport Probe
flags: [ python, cpp ]

parameters:
-   id: type
    label: Input Type
    dtype: enum
    options: [complex, float, int, short, byte]
    option_attributes:
        fcn: [c, f, i, s, b]
    hide: part
-   id: name
    label: Name
    dtype: string
    default: samples
-   id: desc
    label: Description
    dtype: string
    default: Sample Points
-   id: len
    label: Length
    dtype: int
    default: '1024'
-   id: disp_mask
    label: Display Mask
    dtype: raw
    default: gr.DISPTIME
    options: [gr.DISPXY | gr.DISPOPTSCATTER, gr.DISPTIME, gr.DISPPSD, gr.DISPSPEC,
        gr.DISPRAST]
    option_labels: [Constellation, Time, PSD, Spectrogram, Raster]

inputs:
-   domain: stream
    dtype: ${ type }

templates:
    imports: from gnuradio import blocks
    make: blocks.ctrlport_probe2_${type.fcn}(${name}, ${desc}, ${len}, ${disp_mask})
    callbacks:
    - set_length(${len})

cpp_templates:
    includes: ['#include <gnuradio/blocks/ctrlport_probe2_${type.fcn}.h>']
    declarations: 'blocks::ctrlport_probe2_${type.fcn}::sptr ${id};'
    make: 'this->${id} = blocks::ctrlport_probe2_${type.fcn}::make(${name}, ${desc}, ${len}, ${disp_mask});'
    callbacks:
    - set_length(${len})
    translations:
        gr\.: ''


documentation: |-
    Place this in a graph to export vectors of samples to a GRCP port probe.

        * Specify the number of samples to transmit at once and the type
        of default display to use.

file_format: 1