summaryrefslogtreecommitdiff
path: root/gr-trellis/grc/trellis_sccc_encoder_xx.xml
blob: 7b4ab30c75d22901d90aa13e152b50ad1b6e32cd (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0"?>
<!--
###################################################
##SCCC Encoder
###################################################
 -->

<block>
  <name>SCCC Encoder</name>
  <key>trellis_sccc_encoder_xx</key>
  <category>[Core]/Trellis Coding</category>
  <import>from gnuradio import trellis</import>
  <make>trellis.sccc_encoder_$(type)(trellis.fsm($o_fsm_args), $o_init_state, trellis.fsm($i_fsm_args), $i_init_state, trellis.interleaver($interleaver_args), $bl)</make>
  <param>
    <name>Type</name>
    <key>type</key>
    <type>enum</type>
    <option>
      <name>Byte->Byte</name>
      <key>bb</key>
      <opt>input:byte</opt>
      <opt>output:byte</opt>
    </option>
    <option>
      <name>Byte->Short</name>
      <key>bs</key>
      <opt>input:byte</opt>
      <opt>output:short</opt>
    </option>
    <option>
      <name>Byte->Int</name>
      <key>bi</key>
      <opt>input:byte</opt>
      <opt>output:int</opt>
    </option>
    <option>
      <name>Short->Short</name>
      <key>ss</key>
      <opt>input:short</opt>
      <opt>output:short</opt>
    </option>
    <option>
      <name>Short->Int</name>
      <key>si</key>
      <opt>input:short</opt>
      <opt>output:int</opt>
    </option>
    <option>
      <name>Int->Int</name>
      <key>ii</key>
      <opt>input:int</opt>
      <opt>output:int</opt>
    </option>
  </param>
  <param>
    <name>Outer FSM</name>
    <key>o_fsm_args</key>
    <type>raw</type>
  </param>
  <param>
    <name>Outer Initial State</name>
    <key>o_init_state</key>
    <value>0</value>
    <type>int</type>
  </param>
  <param>
    <name>Inner FSM</name>
    <key>i_fsm_args</key>
    <type>raw</type>
  </param>
  <param>
    <name>Inner Initial State</name>
    <key>i_init_state</key>
    <value>0</value>
    <type>int</type>
  </param>
  <param>
    <name>Interleaver</name>
    <key>interleaver_args</key>
    <type>raw</type>
  </param>
  <param>
    <name>Blocklength</name>
    <key>bl</key>
    <type>int</type>
  </param>
  <check>(isinstance(eval(""" $o_fsm_args """[1:-1], locals(),globals()), str) and open($o_fsm_args).close()) or True</check>
  <check>(isinstance(eval(""" $i_fsm_args """[1:-1], locals(),globals()), str) and open($i_fsm_args).close()) or True </check>
  <sink>
    <name>in</name>
    <type>$type.input</type>
  </sink>
  <source>
    <name>out</name>
    <type>$type.output</type>
  </source>
  <doc>
The fsm and interleaver arguments are passed directly to the trellis.fsm() and trellis.interleaver() constructors.
  </doc>
</block>