diff options
Diffstat (limited to 'gr-blocks/grc/blocks_packed_to_unpacked_xx.block.yml')
-rw-r--r-- | gr-blocks/grc/blocks_packed_to_unpacked_xx.block.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_packed_to_unpacked_xx.block.yml b/gr-blocks/grc/blocks_packed_to_unpacked_xx.block.yml new file mode 100644 index 0000000000..5d49d1851c --- /dev/null +++ b/gr-blocks/grc/blocks_packed_to_unpacked_xx.block.yml @@ -0,0 +1,44 @@ +id: blocks_packed_to_unpacked_xx +label: Packed to Unpacked + +parameters: +- id: type + label: Type + dtype: enum + options: [int, short, byte] + option_attributes: + fcn: [ii, ss, bb] + hide: part +- id: bits_per_chunk + label: Bits per Chunk + dtype: int + default: '2' +- id: endianness + label: Endianness + dtype: int + options: [gr.GR_MSB_FIRST, gr.GR_LSB_FIRST] + option_labels: [MSB, LSB] +- id: num_ports + label: Num Ports + dtype: int + default: '1' + hide: part + +inputs: +- domain: stream + dtype: ${ type } + multiplicity: ${ num_ports } + +outputs: +- domain: stream + dtype: ${ type } + multiplicity: ${ num_ports } + +asserts: +- ${ num_ports > 0 } + +templates: + imports: from gnuradio import blocks + make: blocks.packed_to_unpacked_${type.fcn}(${bits_per_chunk}, ${endianness}) + +file_format: 1 |