summaryrefslogtreecommitdiff
path: root/gr-blocks/grc/blocks_threshold_ff.block.yml
blob: 52a6f10059d9f4e2f99086cc9d5eca2809e00eda (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
id: blocks_threshold_ff
label: Threshold

parameters:
-   id: low
    label: Low
    dtype: real
    default: '-100'
-   id: high
    label: High
    dtype: real
    default: '100'
-   id: init
    label: Initial State
    dtype: real
    default: '0'

inputs:
-   domain: stream
    dtype: float

outputs:
-   domain: stream
    dtype: float

templates:
    imports: from gnuradio import blocks
    make: blocks.threshold_ff(${low}, ${high}, ${init})
    callbacks:
    - set_hi(${high})
    - set_lo(${low})

file_format: 1