Change in osmo-ttcn3-hacks[master]: library/L1CTL_Types: turn L1ctlTchMode into an enumerated type

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/.

laforge gerrit-no-reply at lists.osmocom.org
Mon Oct 19 11:43:01 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20754 )

Change subject: library/L1CTL_Types: turn L1ctlTchMode into an enumerated type
......................................................................

library/L1CTL_Types: turn L1ctlTchMode into an enumerated type

Change-Id: Ib547b5984078bc6c6a66addb4622a471487c7342
Related: OS#4799
---
M library/L1CTL_Types.ttcn
1 file changed, 8 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved



diff --git a/library/L1CTL_Types.ttcn b/library/L1CTL_Types.ttcn
index 44f0490..5c90966 100644
--- a/library/L1CTL_Types.ttcn
+++ b/library/L1CTL_Types.ttcn
@@ -140,7 +140,13 @@
 	} with { variant "" };
 
 	/* gsm48_chan_mode */
-	type uint8_t L1ctlTchMode;
+	type enumerated L1ctlTchMode {
+		L1CTL_CHAN_MODE_SIGN		('00000000'B),	/* Signalling */
+		L1CTL_CHAN_MODE_SPEECH_V1	('00000001'B),	/* FR or HR codec */
+		L1CTL_CHAN_MODE_SPEECH_V2	('00100001'B),	/* EFR codec */
+		L1CTL_CHAN_MODE_SPEECH_V3	('01000001'B)	/* AMR codec */
+		/* Other modes are not supported for now */
+	} with { variant "FIELDLENGTH(8)" };
 
 	type record L1ctlAudioMode {
 		BIT4		padding,
@@ -572,7 +578,7 @@
 		payload := {
 			dm_est_req := {
 				tsc := tsc,
-				tch_mode := 0,
+				tch_mode := L1CTL_CHAN_MODE_SIGN,
 				audio_mode := t_L1CTL_AudioModeNone
 			}
 		}

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20754
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: Ib547b5984078bc6c6a66addb4622a471487c7342
Gerrit-Change-Number: 20754
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201019/8184d70c/attachment.htm>


More information about the gerrit-log mailing list