diff options
Diffstat (limited to 'gr-fec/grc/variable_dummy_encoder_def_list.block.yml')
-rw-r--r-- | gr-fec/grc/variable_dummy_encoder_def_list.block.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gr-fec/grc/variable_dummy_encoder_def_list.block.yml b/gr-fec/grc/variable_dummy_encoder_def_list.block.yml new file mode 100644 index 0000000000..cb9181bcd6 --- /dev/null +++ b/gr-fec/grc/variable_dummy_encoder_def_list.block.yml @@ -0,0 +1,36 @@ +id: variable_dummy_encoder_def +label: Dummy Encoder Definition + +parameters: +- id: ndim + label: Parallelism + dtype: enum + default: '0' + options: ['0', '1', '2'] +- id: dim1 + label: Dimension 1 + dtype: int + default: '1' + hide: ${ ('none' if (int(ndim) >= 1) else 'all') } +- id: dim2 + label: Dimension 2 + dtype: int + default: '1' + hide: ${ ('none' if (int(ndim) >= 2) else 'all') } +- id: framebits + label: Frame Bits + dtype: int + default: '2048' +value: ${ fec.dummy_encoder_make(framebits) } + +templates: + imports: from gnuradio import fec + var_make: "\n% if int(ndim)==0 #:\nself.${id} = ${id} = fec.dummy_encoder_make(${framebits})\n\ + % elif int(ndim)==1 #:\nself.${id} = ${id} = map((lambda a: fec.dummy_encoder_make(${framebits})),\ + \ range(0,${dim1})) \n% else:\nself.${id} = ${id} = map((lambda b: map((lambda\ + \ a: fec.dummy_encoder_make(${framebits})), range(0,${dim2}))), range(0,${dim1}))\ + \ \n% endif\n " + +documentation: "" + +file_format: 1 |