summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-05-03 21:46:42 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2020-05-03 21:50:34 +0700
commit72add6d7ed36941ac4e46a17041260c7bb8c39f7 (patch)
tree2707e3ac68046e1931ab48c41c09415812616f68 /library
parent0df8c94d690b95f23b80ec912a4829e511918e52 (diff)
library: implement mandatory part of SI4 Rest Octets
Optional "Rest Octets S" part is left for later. Change-Id: Ib0814e79f8627f3e2b4746b7e521e06ff82bf2d7 Signed-off-by: Vadim Yanitskiy <axilirator@gmail.com>
Diffstat (limited to 'library')
-rw-r--r--library/GSM_RestOctets.ttcn18
1 files changed, 18 insertions, 0 deletions
diff --git a/library/GSM_RestOctets.ttcn b/library/GSM_RestOctets.ttcn
index 8f0346d..da3478a 100644
--- a/library/GSM_RestOctets.ttcn
+++ b/library/GSM_RestOctets.ttcn
@@ -41,6 +41,19 @@ type record SI3RestOctets {
variant (si21_ind) "PRESENCE(sched_where.presence = '0'B)"
};
+/* 10.5.2.35 SI 4 Rest Octets (O & S) */
+type record SI4RestOctets {
+ SelectionParamsOpt sel_params,
+ PowerOffsetOpt pwr_offset,
+ GPRSIndicatorOpt gprs_ind,
+ BIT1 s_presence, // L/H
+ /* TODO: optional "Rest Octets S" part */
+ bitstring s optional
+} with {
+ variant (s_presence) "CSN.1 L/H"
+ variant (s) "PRESENCE(s_presence = '1'B)"
+};
+
/* Selection Parameters */
type record SelectionParams {
boolean cbq,
@@ -115,5 +128,10 @@ external function enc_SI3RestOctets(in SI3RestOctets ro) return octetstring
external function dec_SI3RestOctets(in octetstring stream) return SI3RestOctets
with { extension "prototype(convert) decode(RAW)" };
+external function enc_SI4RestOctets(in SI4RestOctets ro) return octetstring
+ with { extension "prototype(convert) encode(RAW)" };
+external function dec_SI4RestOctets(in octetstring stream) return SI4RestOctets
+ with { extension "prototype(convert) decode(RAW)" };
+
} with { encode "RAW"; variant "FIELDORDER(msb)" }