<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22056">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">library: Add templates to initialize CellId, RAI, LAI<br><br>Change-Id: Ie9d86e1b651dff279e7d50a4282bf14fbed5bb76<br>---<br>M library/GSM_Types.ttcn<br>M library/Osmocom_Gb_Types.ttcn<br>2 files changed, 13 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/56/22056/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/GSM_Types.ttcn b/library/GSM_Types.ttcn</span><br><span>index 34b6517..6cc3c08 100644</span><br><span>--- a/library/GSM_Types.ttcn</span><br><span>+++ b/library/GSM_Types.ttcn</span><br><span>@@ -420,12 +420,20 @@</span><br><span>      BcdMccMnc       mcc_mnc,</span><br><span>     uint16_t        lac</span><br><span> } with { variant "" };</span><br><span style="color: hsl(120, 100%, 40%);">+template (value) LocationAreaIdentification ts_LAI(BcdMccMnc mcc_mnc, uint16_t lac) := {</span><br><span style="color: hsl(120, 100%, 40%);">+     mcc_mnc := mcc_mnc,</span><br><span style="color: hsl(120, 100%, 40%);">+   lac := lac</span><br><span style="color: hsl(120, 100%, 40%);">+};</span><br><span> </span><br><span> /* 24.008 10.5.5.15 */</span><br><span> type record RoutingAreaIdentification {</span><br><span>      LocationAreaIdentification      lai,</span><br><span>         uint8_t                         rac</span><br><span> } with { variant "" };</span><br><span style="color: hsl(120, 100%, 40%);">+template (value) RoutingAreaIdentification ts_RAI(template (value) LocationAreaIdentification lai, uint8_t rac) := {</span><br><span style="color: hsl(120, 100%, 40%);">+ lai := lai,</span><br><span style="color: hsl(120, 100%, 40%);">+   rac := rac</span><br><span style="color: hsl(120, 100%, 40%);">+};</span><br><span> </span><br><span> external function enc_RoutingAreaIdentification(RoutingAreaIdentification rai) return octetstring</span><br><span> with { extension "prototype(convert)" extension "encode(RAW)" }</span><br><span>diff --git a/library/Osmocom_Gb_Types.ttcn b/library/Osmocom_Gb_Types.ttcn</span><br><span>index b83131d..518d619 100644</span><br><span>--- a/library/Osmocom_Gb_Types.ttcn</span><br><span>+++ b/library/Osmocom_Gb_Types.ttcn</span><br><span>@@ -733,6 +733,11 @@</span><br><span>               CellIdentity                    cell_id</span><br><span>      } with { variant "" };</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+  template (value) BssgpCellId ts_BssgpCellId(template (value) RoutingAreaIdentification rai, CellIdentity cell_id) := {</span><br><span style="color: hsl(120, 100%, 40%);">+                ra_id := rai,</span><br><span style="color: hsl(120, 100%, 40%);">+         cell_id := cell_id</span><br><span style="color: hsl(120, 100%, 40%);">+    };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>         type enumerated BssgpCause {</span><br><span>                 BSSGP_CAUSE_PROC_OVERLOAD                       ('00'H),</span><br><span>             BSSGP_CAUSE_EQUIMENT_FAILURE                    ('01'H),</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22056">change 22056</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22056"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie9d86e1b651dff279e7d50a4282bf14fbed5bb76 </div>
<div style="display:none"> Gerrit-Change-Number: 22056 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>