<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/14289">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">L1CTL_RACH_REQ: make both chan_nr and link_id configurable<br><br>Change-Id: Ica6b9551b11c20fa0b8f4a8dcdc91ca07601642c<br>---<br>M library/L1CTL_PortType.ttcn<br>M library/L1CTL_Types.ttcn<br>2 files changed, 10 insertions(+), 6 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/89/14289/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/L1CTL_PortType.ttcn b/library/L1CTL_PortType.ttcn</span><br><span>index bdcf024..7af680c 100644</span><br><span>--- a/library/L1CTL_PortType.ttcn</span><br><span>+++ b/library/L1CTL_PortType.ttcn</span><br><span>@@ -80,12 +80,15 @@</span><br><span>           }</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   function f_L1CTL_RACH(L1CTL_PT pt, uint8_t ra, uint8_t combined := 1, uint16_t offset := 0) return GsmFrameNumber {</span><br><span style="color: hsl(120, 100%, 40%);">+   function f_L1CTL_RACH(L1CTL_PT pt, uint8_t ra, uint8_t combined := 1, uint16_t offset := 0,</span><br><span style="color: hsl(120, 100%, 40%);">+                         template (value) RslChannelNr chan_nr := ts_RslChanNr_RACH(0),</span><br><span style="color: hsl(120, 100%, 40%);">+                        template (value) RslLinkId link_id := ts_RslLinkID_DCCH(0))</span><br><span style="color: hsl(120, 100%, 40%);">+     return GsmFrameNumber {</span><br><span>              var L1ctlDlMessage rc;</span><br><span>               var GsmFrameNumber fn;</span><br><span>               timer T := 2.0;</span><br><span>              T.start</span><br><span style="color: hsl(0, 100%, 40%);">-         pt.send(ts_L1CTL_RACH_REQ(ra, combined, offset))</span><br><span style="color: hsl(120, 100%, 40%);">+              pt.send(ts_L1CTL_RACH_REQ(ra, combined, offset, chan_nr, link_id))</span><br><span>           alt {</span><br><span>                        [] pt.receive(tr_L1CTL_RACH_CONF) -> value rc { fn := rc.dl_info.frame_nr };</span><br><span>                      [] pt.receive { repeat; };</span><br><span>diff --git a/library/L1CTL_Types.ttcn b/library/L1CTL_Types.ttcn</span><br><span>index 2a97099..01214b2 100644</span><br><span>--- a/library/L1CTL_Types.ttcn</span><br><span>+++ b/library/L1CTL_Types.ttcn</span><br><span>@@ -487,12 +487,13 @@</span><br><span> </span><br><span>  template L1ctlDlMessage tr_L1CTL_CCCH_MODE_CONF := tr_L1CTL_MsgType(L1CTL_CCCH_MODE_CONF);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-  template L1ctlUlMessage ts_L1CTL_RACH_REQ(uint8_t ra, uint8_t combined, uint16_t offset) := {</span><br><span style="color: hsl(120, 100%, 40%);">+ template L1ctlUlMessage ts_L1CTL_RACH_REQ(uint8_t ra, uint8_t combined, uint16_t offset,</span><br><span style="color: hsl(120, 100%, 40%);">+                                                template (value) RslChannelNr chan_nr := ts_RslChanNr_RACH(0),</span><br><span style="color: hsl(120, 100%, 40%);">+                                                template (value) RslLinkId link_id := ts_RslLinkID_DCCH(0)) := {</span><br><span>           header := ts_L1ctlHeader(L1CTL_RACH_REQ),</span><br><span>            ul_info := {</span><br><span style="color: hsl(0, 100%, 40%);">-                    /* FIXME: both RSL chan_nr and link_id should be configurable */</span><br><span style="color: hsl(0, 100%, 40%);">-                        chan_nr := t_RslChanNr_RACH(0),</span><br><span style="color: hsl(0, 100%, 40%);">-                 link_id := ts_RslLinkID_DCCH(0),</span><br><span style="color: hsl(120, 100%, 40%);">+                      chan_nr := chan_nr,</span><br><span style="color: hsl(120, 100%, 40%);">+                   link_id := link_id,</span><br><span>                  padding := '0000'O</span><br><span>           },</span><br><span>           ul_info_tbf := omit,</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/14289">change 14289</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/14289"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ica6b9551b11c20fa0b8f4a8dcdc91ca07601642c </div>
<div style="display:none"> Gerrit-Change-Number: 14289 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>