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


Change subject: library/L1CTL_Types: add send template for L1CTL_DATA_IND
......................................................................

library/L1CTL_Types: add send template for L1CTL_DATA_IND

We need to be able to send L1ctlDlMessage to the l1gprs_test [1],
a special program for testing the MS side GRR implementation.

Change-Id: Id163cb53afcbf803caf60a5b1a5768c67a9a2bf0
Related: [1] I36ceec4035b2ea593d47998f3f14f1415c606765
Related: OS#5500
---
M library/L1CTL_Types.ttcn
1 file changed, 27 insertions(+), 1 deletion(-)



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

diff --git a/library/L1CTL_Types.ttcn b/library/L1CTL_Types.ttcn
index d525924..c8767e2 100644
--- a/library/L1CTL_Types.ttcn
+++ b/library/L1CTL_Types.ttcn
@@ -855,7 +855,33 @@
                payload := *
        };

-       /* for matching against incoming DATA_IND */
+       /* for sending and matching L1CTL_DATA_IND */
+       template (value) L1ctlDlMessage
+       ts_L1CTL_DATA_IND(template (value) RslChannelNr chan_nr,
+                         template (value) RslLinkId link_id,
+                         template (value) octetstring l2_data,
+                         template (value) GsmBandArfcn arfcn,
+                         template (value) uint32_t fn := 1337,
+                         template (value) GsmRxLev rx_level := 63,
+                         template (value) uint8_t num_biterr := 0,
+                         template (value) uint8_t fire_crc := 0) := {
+               header := ts_L1ctlHeader(L1CTL_DATA_IND),
+               dl_info := {
+                       chan_nr := chan_nr,
+                       link_id := link_id,
+                       arfcn := arfcn,
+                       frame_nr := fn,
+                       rx_level := rx_level,
+                       snr := 0,
+                       num_biterr := num_biterr,
+                       fire_crc := fire_crc
+               },
+               payload := {
+                       data_ind := {
+                               payload := l2_data
+                       }
+               }
+       };
        template L1ctlDlMessage
        tr_L1CTL_DATA_IND(template (present) RslChannelNr chan_nr,
                          template (present) RslLinkId link_id := ?,

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/30738
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: Id163cb53afcbf803caf60a5b1a5768c67a9a2bf0
Gerrit-Change-Number: 30738
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-MessageType: newchange

Reply via email to