Change in osmo-ttcn3-hacks[master]: library/RSL_Types: complete definition of RF RESOURCE INDICATION

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
Fri Jun 4 15:51:44 UTC 2021


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


Change subject: library/RSL_Types: complete definition of RF RESOURCE INDICATION
......................................................................

library/RSL_Types: complete definition of RF RESOURCE INDICATION

Change-Id: If3eedfaea6de252b8dc3ca238f6ffd45448065d1
Related: SYS#5313, OS#1569, OS#1866
---
M library/RSL_Types.ttcn
1 file changed, 59 insertions(+), 6 deletions(-)



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

diff --git a/library/RSL_Types.ttcn b/library/RSL_Types.ttcn
index 2cbd668..16ce506 100644
--- a/library/RSL_Types.ttcn
+++ b/library/RSL_Types.ttcn
@@ -571,6 +571,34 @@
 		frame_nr := tr_RSL_IE_FrameNumber(frame_nr)
 	}
 
+	/* 9.3.21 Resource Information */
+	type record RSL_IE_ResourceInfo {
+		uint8_t len,
+		RSL_ResourceInfo info
+	} with { variant (len) "LENGTHTO(info)" };
+
+	type record of RSL_ResourceInfoItem RSL_ResourceInfo;
+	type record RSL_ResourceInfoItem {
+		RslChannelNr chan_nr,
+		uint3_t interf_band,
+		BIT5 rfu ('00000'B)
+	};
+
+	template (value) RSL_ResourceInfoItem
+	ts_RSL_ResourceInfoItem(template (value) RslChannelNr chan_nr,
+				template (value) uint3_t interf_band := 0) := {
+		chan_nr := chan_nr,
+		interf_band := interf_band,
+		rfu := '00000'B
+	}
+	template RSL_ResourceInfoItem
+	tr_RSL_ResourceInfoItem(template (present) RslChannelNr chan_nr := ?,
+				template (present) uint3_t interf_band := ?) := {
+		chan_nr := chan_nr,
+		interf_band := interf_band,
+		rfu := ? /* Tolerate unknown values */
+	}
+
 	/* Osmocom Extension */
 	type record RSL_IE_UplinkMeasSuppMeasInfo {
 		int16_t toa256_mean,
@@ -869,6 +897,7 @@
 		RSL_IE_CbCommandType	cb_cmd_type,
 		RSL_LV			smscb_message,
 		RSL_IE_CbchLoadInfo	cbch_load_info,
+		RSL_IE_ResourceInfo	resource_info,
 		RSL_SacchInfo		sacch_info,
 
 		RSL_IE_StartingTime	starting_time,
@@ -929,6 +958,7 @@
 					cb_cmd_type, iei = RSL_IE_CB_CMD_TYPE;
 					smscb_message, iei = RSL_IE_SMSCB_MSG;
 					cbch_load_info, iei = RSL_IE_CBCH_LOAD_INFO;
+					resource_info, iei = RSL_IE_RESOURCE_INFO;
 					sacch_info, iei = RSL_IE_SACCH_INFO;
 					starting_time, iei = RSL_IE_STARTNG_TIME;
 					encr_info, iei = RSL_IE_ENCR_INFO;
@@ -1778,12 +1808,6 @@
 		}
 	}
 
-	template RSL_Message tr_RSL_RF_RES_IND := {
-		msg_disc := tr_RSL_MsgDisc(RSL_MDISC_TRX_MGMT, false),
-		msg_type := RSL_MT_RF_RES_IND,
-		ies := *
-	}
-
 	/* 8.5.8 BTS <- BSC SMS BROADCAST COMMAND */
 	template RSL_Message tr_RSL_SMSCB_CMD(template RSL_IE_CbCommandType cb_cmd := ?,
 					      template octetstring msg := ?,
@@ -1856,6 +1880,35 @@
 	}
 
 
+	/* 8.6.1 BTS -> BSC */
+	template (value) RSL_Message
+	ts_RSL_RF_RES_IND(template (value) RSL_ResourceInfo info) := {
+		msg_disc := ts_RSL_MsgDisc(RSL_MDISC_TRX_MGMT, false),
+		msg_type := RSL_MT_RF_RES_IND,
+		ies := {
+			t_RSL_IE(RSL_IE_RESOURCE_INFO, RSL_IE_Body:{
+				resource_info := {
+					len := 0, /* overwritten */
+					info := info
+				}
+			})
+		}
+	}
+	template RSL_Message
+	tr_RSL_RF_RES_IND(template (present) RSL_ResourceInfo info := ?) := {
+		msg_disc := tr_RSL_MsgDisc(RSL_MDISC_TRX_MGMT, false),
+		msg_type := RSL_MT_RF_RES_IND,
+		ies := {
+			tr_RSL_IE(RSL_IE_Body:{
+				resource_info := {
+					len := ?,
+					info := info
+				}
+			})
+		}
+	}
+
+
 	/* 8.6.2 BTS <- BSC */
 	template (value) RSL_Message ts_RSL_SACCH_FILL(RSL_IE_SysinfoType si_type, octetstring l3_info) := {
 		msg_disc := ts_RSL_MsgDisc(RSL_MDISC_TRX_MGMT, false),

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24552
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: If3eedfaea6de252b8dc3ca238f6ffd45448065d1
Gerrit-Change-Number: 24552
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210604/8d0be202/attachment.htm>


More information about the gerrit-log mailing list