Change in osmo-ttcn3-hacks[master]: library: implement mandatory part of SI4 Rest Octets

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Sun May 3 18:58:10 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18010 )


Change subject: library: implement mandatory part of SI4 Rest Octets
......................................................................

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 at gmail.com>
---
M library/GSM_RestOctets.ttcn
1 file changed, 18 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/10/18010/1

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 @@
 	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 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)" }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18010
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ib0814e79f8627f3e2b4746b7e521e06ff82bf2d7
Gerrit-Change-Number: 18010
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200503/6274be6f/attachment.htm>


More information about the gerrit-log mailing list