Change in ...osmo-ttcn3-hacks[master]: library/RLCMAC_Types.ttcn: implement PTCCH/D message coding

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
Mon Sep 30 23:00:58 UTC 2019


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


Change subject: library/RLCMAC_Types.ttcn: implement PTCCH/D message coding
......................................................................

library/RLCMAC_Types.ttcn: implement PTCCH/D message coding

Change-Id: I0e3dc3f4853799f1467a5f6726dac0d43c2eb93d
Related: SYS#4606
---
M library/RLCMAC_Types.ttcn
1 file changed, 56 insertions(+), 0 deletions(-)



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

diff --git a/library/RLCMAC_Types.ttcn b/library/RLCMAC_Types.ttcn
index 39c0c97..ad9d8f4 100644
--- a/library/RLCMAC_Types.ttcn
+++ b/library/RLCMAC_Types.ttcn
@@ -385,5 +385,61 @@
 		payload := data
 	}
 
+	/* PTCCH/D (Packet Timing Advance Control Channel) message.
+	 * TODO: add a spec. reference to the message format definition. */
+	type record PTCCHTimingAdvanceIE {
+		BIT1			spare ('0'B),
+		uint7_t			ta_val
+	} with { variant "" };
+	type record of PTCCHTimingAdvanceIE PTCCHTimingAdvanceIEs;
+	type record PTCCHDownlinkMsg {
+		PTCCHTimingAdvanceIEs	ta_idx length(16),
+		octetstring		padding length(7)
+	} with { variant "" };
+
+	external function enc_PTCCHDownlinkMsg(in PTCCHDownlinkMsg si) return octetstring
+		with { extension "prototype(convert) encode(RAW)" };
+	external function dec_PTCCHDownlinkMsg(in octetstring stream) return PTCCHDownlinkMsg
+		with { extension "prototype(convert) decode(RAW)" };
+
+	template PTCCHDownlinkMsg tr_PTCCHDownlinkMsg(
+		template (present) uint7_t tai0_ta := ?,
+		template (present) uint7_t tai1_ta := ?,
+		template (present) uint7_t tai2_ta := ?,
+		template (present) uint7_t tai3_ta := ?,
+		template (present) uint7_t tai4_ta := ?,
+		template (present) uint7_t tai5_ta := ?,
+		template (present) uint7_t tai6_ta := ?,
+		template (present) uint7_t tai7_ta := ?,
+		template (present) uint7_t tai8_ta := ?,
+		template (present) uint7_t tai9_ta := ?,
+		template (present) uint7_t tai10_ta := ?,
+		template (present) uint7_t tai11_ta := ?,
+		template (present) uint7_t tai12_ta := ?,
+		template (present) uint7_t tai13_ta := ?,
+		template (present) uint7_t tai14_ta := ?,
+		template (present) uint7_t tai15_ta := ?
+	) := {
+		ta_idx := {
+			{ spare := '0'B, ta_val := tai0_ta },
+			{ spare := '0'B, ta_val := tai1_ta },
+			{ spare := '0'B, ta_val := tai2_ta },
+			{ spare := '0'B, ta_val := tai3_ta },
+			{ spare := '0'B, ta_val := tai4_ta },
+			{ spare := '0'B, ta_val := tai5_ta },
+			{ spare := '0'B, ta_val := tai6_ta },
+			{ spare := '0'B, ta_val := tai7_ta },
+			{ spare := '0'B, ta_val := tai8_ta },
+			{ spare := '0'B, ta_val := tai9_ta },
+			{ spare := '0'B, ta_val := tai10_ta },
+			{ spare := '0'B, ta_val := tai11_ta },
+			{ spare := '0'B, ta_val := tai12_ta },
+			{ spare := '0'B, ta_val := tai13_ta },
+			{ spare := '0'B, ta_val := tai14_ta },
+			{ spare := '0'B, ta_val := tai15_ta }
+		},
+		padding := '2B2B2B2B2B2B2B'O
+	}
+
 
 } with { encode "RAW"; variant "FIELDORDER(msb)" }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15637
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: I0e3dc3f4853799f1467a5f6726dac0d43c2eb93d
Gerrit-Change-Number: 15637
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/20190930/a61f722d/attachment.htm>


More information about the gerrit-log mailing list