From 88849c61b2b67d1fef214f6ec8607e0781f7c5bd Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 30 Jul 2017 17:19:41 +0200 Subject: [PATCH] L1CTL_Types: Split t_IMM_ASS() off t_RR_IMM_ASS() It's useful to have a separat template only for the IM_ASS part, without RR header. --- library/L1CTL_Types.ttcn | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/library/L1CTL_Types.ttcn b/library/L1CTL_Types.ttcn index 4b68c6133..f687c9521 100644 --- a/library/L1CTL_Types.ttcn +++ b/library/L1CTL_Types.ttcn @@ -501,18 +501,21 @@ module L1CTL_Types { } }; - template GsmRrMessage t_RR_IMM_ASS(uint8_t ra, uint8_t fn) := { + template ImmediateAssignment t_IMM_ASS(uint8_t ra, GsmFrameNumber fn) := { + ded_or_tbf := ?, + page_mode := ?, + chan_desc := *, + pkt_chan_desc := *, + req_ref := f_compute_ReqRef(ra, fn), + timing_advance := ?, + mobile_allocation := ?, + rest_octets:= ? + }; + + template GsmRrMessage t_RR_IMM_ASS(uint8_t ra, GsmFrameNumber fn) := { header := t_RrHeader(IMMEDIATE_ASSIGNMENT, ?), payload := { - imm_ass := { - ded_or_tbf := ?, - page_mode := ?, - chan_desc := *, - pkt_chan_desc := *, - req_ref := f_compute_ReqRef(ra, fn), - timing_advance := ?, - mobile_allocation := ? - } + imm_ass := t_IMM_ASS(ra, fn) } };