id: digital_protocol_parser_b
label: Protocol Parser
flags: [ python, cpp ]

parameters:
-   id: format
    label: Format Obj.
    dtype: raw

inputs:
-   domain: stream
    dtype: byte

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

templates:
    imports: from gnuradio import digital
    make: digital.protocol_parser_b(${format})

cpp_templates:
    includes: ['#include <gnuradio/digital/protocol_parser_b.h>']
    declarations: 'digital::protocol_parser_b::sptr ${id};'
    make: 'this->${id} = fft::ctrlport_probe_psd::make(${format});'
    link: ['gnuradio::gnuradio-digital']

file_format: 1
