id: dtv_dvbt_energy_dispersal
label: Energy Dispersal
flags: [ python, cpp ]

parameters:
-   id: nsize
    label: Blocks(1504 Bytes)
    dtype: int
    default: '8'

inputs:
-   domain: stream
    dtype: byte
    vlen: 1

outputs:
-   domain: stream
    dtype: byte
    vlen: ${ 1504*nsize }

asserts:
- ${ nsize > 0 }

templates:
    imports: from gnuradio import dtv
    make: dtv.dvbt_energy_dispersal(${nsize})

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

file_format: 1
