id: digital_descrambler_bb
label: Descrambler
flags: [ python, cpp ]

parameters:
-   id: mask
    label: Mask
    dtype: hex
    default: '0x8A'
-   id: seed
    label: Seed
    dtype: hex
    default: '0x7F'
-   id: len
    label: Length
    dtype: int
    default: '7'

inputs:
-   domain: stream
    dtype: byte

outputs:
-   domain: stream
    dtype: byte

templates:
    imports: from gnuradio import digital
    make: digital.descrambler_bb(${mask}, ${seed}, ${len})

cpp_templates:
    includes: ['#include <gnuradio/digital/descrambler_bb.h>']
    declarations: 'digital::descrambler_bb::sptr ${id};'
    make: |-
        this->${id} = digital::descrambler_bb::make(
            ${mask},
            ${seed},
            ${len});
    link: ['gnuradio::gnuradio-digital']

file_format: 1
