aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-03-09 19:38:46 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-12 14:29:14 +0000
commit370527372da68a602bf4e565cbb18906f92ff6c0 (patch)
tree1d2083257fd8d0fcb7cea2e5859dc6a6fa158a08
parent3778acc5d533cbc6d7920601f9cf007341e67c6f (diff)
L1CTL: Add f_L1CTL_PARAM for timing advance + tx power control
-rw-r--r--library/L1CTL_PortType.ttcn4
-rw-r--r--library/L1CTL_Types.ttcn18
2 files changed, 22 insertions, 0 deletions
diff --git a/library/L1CTL_PortType.ttcn b/library/L1CTL_PortType.ttcn
index 812e2848..2775e195 100644
--- a/library/L1CTL_PortType.ttcn
+++ b/library/L1CTL_PortType.ttcn
@@ -64,6 +64,10 @@ module L1CTL_PortType {
return fn;
}
+ function f_L1CTL_PARAM(L1CTL_PT pt, uint8_t ta, uint8_t tx_power) {
+ pt.send(t_L1CTL_PAR_REQ(ta, tx_power));
+ }
+
function f_L1CTL_WAIT_IMM_ASS(L1CTL_PT pt, uint8_t ra, GsmFrameNumber rach_fn) return ImmediateAssignment {
var L1ctlDlMessage dl;
var GsmRrMessage rr;
diff --git a/library/L1CTL_Types.ttcn b/library/L1CTL_Types.ttcn
index a86690ed..9e659bf6 100644
--- a/library/L1CTL_Types.ttcn
+++ b/library/L1CTL_Types.ttcn
@@ -434,6 +434,24 @@ module L1CTL_Types {
}
}
+ template (value) L1ctlUlMessage t_L1CTL_PAR_REQ(uint8_t ta, uint8_t tx_power) := {
+ header := t_L1ctlHeader(L1CTL_PARAM_REQ),
+ ul_info := {
+ chan_nr := t_RslChanNr_RACH(0),
+ link_id := ts_RslLinkID_DCCH(0),
+ padding := '0000'O
+ },
+ ul_info_tbf := omit,
+ ul_info_abs := omit,
+ payload := {
+ par_req := {
+ ta := ta,
+ tx_power := tx_power,
+ padding := '0000'O
+ }
+ }
+ }
+
template L1ctlUlMessage t_L1CTL_DM_EST_REQ(Arfcn arfcn, RslChannelNr chan_nr, GsmTsc tsc) := {
header := t_L1ctlHeader(L1CTL_DM_EST_REQ),
ul_info := {