id: dtv_dvbt_energy_descramble
label: Energy Descramble
flags: [ python, cpp ]

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

inputs:
-   domain: stream
    dtype: byte
    vlen: ${ nsize*188 }

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

asserts:
- ${ nsize > 0 }

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

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

file_format: 1
