Migrate grc blocks from xml to yaml
Convert the blocks using cmdline_converter.py script from
https://gist.githubusercontent.com/haakov/4228ff6a14486641add538483093e86b/raw/c861a840e31182ace2e74f5425e356cb4f8b183a/cmdline_converter.py
Change-Id: Iee5c611a2e100bd2fdf487611a867dc937d8c292
diff --git a/grc/decoding/gsm_tch_h_decoder.block.yml b/grc/decoding/gsm_tch_h_decoder.block.yml
new file mode 100644
index 0000000..8d26a0b
--- /dev/null
+++ b/grc/decoding/gsm_tch_h_decoder.block.yml
@@ -0,0 +1,51 @@
+# auto-generated by grc.converter
+
+id: gsm_tch_h_decoder
+label: TCH/H decoder
+
+parameters:
+- id: sub_channel
+ label: Sub-channel number
+ dtype: int
+ default: '0'
+ options: ['0', '1']
+ hide: none
+- id: multi_rate
+ label: MultiRate configuration
+ dtype: string
+- id: boundary_check
+ label: Voice boundary detection
+ dtype: bool
+ default: 'False'
+ options: ['False', 'True']
+
+inputs:
+- domain: message
+ id: bursts
+
+outputs:
+- domain: message
+ id: msgs
+ optional: true
+- domain: message
+ id: voice
+ optional: true
+asserts:
+- ${ sub_channel > -1 and sub_channel < 2 }
+
+templates:
+ imports: import grgsm
+ make: grgsm.tch_h_decoder(${sub_channel}, ${multi_rate}, ${boundary_check})
+
+documentation: |-
+ The MultiRate configuration string should contains the hex string from the
+ MultiRate configuration element from the Assignment Command message.
+ Example: 28111a40.
+ See 3GPP TS 44.018 - 10.5.2.21aa MultiRate configuratio
+
+ If "Voice boundary detection" is enabled, then only bursts are decoded as voice where
+
+ - the framenumber is greater then the framenumber of a received "Connect" or "Connect Acknowlegde" message, and
+ - the framenumber is less then the framenumber of a "Release" message
+
+file_format: 1