summaryrefslogtreecommitdiff
path: root/gr-blocks/grc/blocks_message_debug.block.yml
blob: 86f9876af5587b9f3a966718f2a4f6fccdfe4199 (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
id: blocks_message_debug
label: Message Debug
flags: [ python, cpp ]

parameters:
-   id: en_uvec
    label: PDU Vectors
    dtype: enum
    default: 'True'
    options: ['True', 'False']
    option_labels: ['On', 'Off']

inputs:
-   domain: message
    id: print
    optional: true
-   domain: message
    id: store
    optional: true
-   domain: message
    id: print_pdu
    optional: true

templates:
    imports: from gnuradio import blocks
    make: blocks.message_debug(${en_uvec})
    callbacks:
    - set_vector_print(${en_uvec})

cpp_templates:
    includes: ['#include <gnuradio/blocks/message_debug.h>']
    declarations: 'blocks::message_debug::sptr ${id};'
    make: 'this->${id} = blocks::message_debug::make();'

file_format: 1