1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
id: variable_ccsds_encoder_def
label: CCSDS 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'
- id: state_start
label: Start State
dtype: int
default: '0'
- id: mode
label: Streaming Behavior
dtype: enum
options: [fec.CC_STREAMING, fec.CC_TERMINATED, fec.CC_TAILBITING, fec.CC_TRUNCATED]
option_labels: [Streaming, Terminated, Tailbiting, Truncated]
value: ${ fec.ccsds_encoder_make(framebits, state_start, mode) }
templates:
imports: from gnuradio import fec
var_make: "\n% if int(ndim)==0 #:\nself.${id} = ${id} = fec.ccsds_encoder_make(${framebits},\
\ ${state_start}, ${mode})\n% elif int(ndim)==1 #:\nself.${id} = ${id} = map(\
\ (lambda a: fec.ccsds_encoder_make(${framebits}, ${state_start}, ${mode})),\
\ range(0,${dim1}) ); \n% else:\nself.${id} = ${id} = map( (lambda b: map(\
\ ( lambda a: fec.ccsds_encoder_make(${framebits}, ${state_start}, ${mode})),\
\ range(0,${dim2}) ) ), range(0,${dim1})); \n% endif\n "
documentation: ""
file_format: 1
|