summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-06-30 16:34:30 +0700
committerlaforge <laforge@gnumonks.org>2019-07-07 08:14:10 +0000
commitf3cc64967383256ecd9c4498ee86a338b6a72952 (patch)
tree8a842a94bd5d72704efbee485679ca407481bb03
parent71136df433a89b881f5fa47061b919059e19c457 (diff)
library/L1CTL_Types.ttcn: introduce TRAFFIC_{REQ|IND} templates
-rw-r--r--library/L1CTL_Types.ttcn42
1 files changed, 42 insertions, 0 deletions
diff --git a/library/L1CTL_Types.ttcn b/library/L1CTL_Types.ttcn
index 01214b2..77c1f6a 100644
--- a/library/L1CTL_Types.ttcn
+++ b/library/L1CTL_Types.ttcn
@@ -622,6 +622,24 @@ module L1CTL_Types {
}
}
+ template (value) L1ctlUlMessage ts_L1CTL_TRAFFIC_REQ(template (value) RslChannelNr chan_nr,
+ template (value) RslLinkId link_id,
+ octetstring frame) := {
+ header := ts_L1ctlHeader(L1CTL_TRAFFIC_REQ),
+ ul_info := {
+ chan_nr := chan_nr,
+ link_id := link_id,
+ padding := '0000'O
+ },
+ ul_info_tbf := omit,
+ ul_info_abs := omit,
+ payload := {
+ traffic_req := {
+ data := frame
+ }
+ }
+ };
+
template (value) L1ctlUlMessage ts_L1CTL_TBF_CFG_REQ(boolean is_uplink, TfiUsfArr tfi_usf) := {
header := ts_L1ctlHeader(L1CTL_TBF_CFG_REQ),
ul_info := omit,
@@ -719,6 +737,30 @@ module L1CTL_Types {
}
};
+ /* for matching against incoming TRAFFIC_IND */
+ template L1ctlDlMessage tr_L1CTL_TRAFFIC_IND(template RslChannelNr chan_nr,
+ template RslLinkId link_id := ?,
+ template octetstring frame := ?,
+ template uint8_t num_biterr := 0,
+ template uint8_t fire_crc := 0) := {
+ header := tr_L1ctlHeader(L1CTL_TRAFFIC_IND),
+ dl_info := {
+ chan_nr := chan_nr,
+ link_id := link_id,
+ arfcn := ?,
+ frame_nr := ?,
+ rx_level := ?,
+ snr := ?,
+ num_biterr := num_biterr,
+ fire_crc := fire_crc
+ },
+ payload := {
+ traffic_ind := {
+ data := frame
+ }
+ }
+ };
+
template (value) L1ctlUlMessage ts_L1CTL_CRYPTO_REQ(RslChannelNr chan_nr, uint8_t algo,
octetstring key) := {
header := ts_L1ctlHeader(L1CTL_CRYPTO_REQ),