summaryrefslogtreecommitdiff
path: root/gr-blocks/grc/blocks_pack_k_bits_bb.block.yml
blob: 904f382f0f446dffcebafed77a0ddd7c2fcc5545 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
id: blocks_pack_k_bits_bb
label: Pack K Bits

parameters:
-   id: k
    label: K
    dtype: int

inputs:
-   domain: stream
    dtype: byte

outputs:
-   domain: stream
    dtype: byte

templates:
    imports: from gnuradio import blocks
    make: blocks.pack_k_bits_bb(${k})

documentation: |-
    Pack K unpacked bits (one bit per byte) into a single packed byte containing k bits and 8 - k zeros.

file_format: 1