library/GSM_RR_Types: share send templates for ChannelDescription
They're going to be used in other modules too, not only in BTS_Tests.
Also, take a chance to rearrange the list of arguments, so the ones
with default values are placed after mandatory ones.
Change-Id: Ia33ebf2e680f16f774a981fc33422dfe5036637f
diff --git a/library/GSM_RR_Types.ttcn b/library/GSM_RR_Types.ttcn
index d0d5d8e..bf650b2 100644
--- a/library/GSM_RR_Types.ttcn
+++ b/library/GSM_RR_Types.ttcn
@@ -1082,4 +1082,24 @@
ext_ra := ext_ra
};
+ template (value) ChannelDescription ts_ChanDescH0(template (value) RslChannelNr chan_nr,
+ template (value) uint12_t arfcn,
+ template (value) uint3_t tsc := 7) := {
+ chan_nr := chan_nr,
+ tsc := tsc,
+ h := false,
+ arfcn := arfcn,
+ maio_hsn := omit
+ }
+
+ template (value) ChannelDescription ts_ChanDescH1(template (value) RslChannelNr chan_nr,
+ template (value) MaioHsn maio_hsn,
+ template (value) uint3_t tsc := 7) := {
+ chan_nr := chan_nr,
+ tsc := tsc,
+ h := true,
+ arfcn := omit,
+ maio_hsn := maio_hsn
+ }
+
} with { encode "RAW" ; variant "FIELDORDER(msb)" }