id: digital_protocol_formatter_async
label: Protocol Formatter (Async)
flags: [ python, cpp ]

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

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

outputs:
-   domain: message
    id: header
    optional: true
-   domain: message
    id: payload
    optional: true

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

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

file_format: 1
