summaryrefslogtreecommitdiff
path: root/gr-digital/grc/digital_crc16_async_bb.block.yml
blob: 36be216ef484bcd2ca1c528c4a5aedbf46744228 (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
id: digital_crc16_async_bb
label: Async CRC16
flags: [ python, cpp ]

parameters:
-   id: check
    label: Mode
    dtype: enum
    options: ['False', 'True']
    option_labels: [Generate CRC, Check CRC]

inputs:
-   domain: message
    id: in
    optional: true

outputs:
-   domain: message
    id: out
    optional: true

templates:
    imports: from gnuradio import digital
    make: digital.crc16_async_bb(${check})

cpp_templates:
    includes: ['#include <gnuradio/digital/crc16_async_bb.h>']
    declarations: 'digital::crc16_async_bb::sptr ${id};'
    make: |-
        this->${id} = digital::crc16_async_bb::make(
            ${check});
    link: ['gnuradio-digital']
    translations:
        'True': 'true'
        'False': 'false'

file_format: 1