summaryrefslogtreecommitdiffstats
path: root/sysinfo
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-07-16 21:04:12 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-16 21:04:12 +0200
commitb33e7272b5114e1e4daacb2c866b85ab8628c26a (patch)
tree843a32929ba5ab753df13ae7abf749e492320c29 /sysinfo
parent57a3150778b7e98618c63c134646ae56ce18f2da (diff)
GSM_TypeS: Add RSL Link Identifier
Diffstat (limited to 'sysinfo')
-rw-r--r--sysinfo/GSM_Types.ttcn51
1 files changed, 51 insertions, 0 deletions
diff --git a/sysinfo/GSM_Types.ttcn b/sysinfo/GSM_Types.ttcn
index 71c74f7..98f6dd5 100644
--- a/sysinfo/GSM_Types.ttcn
+++ b/sysinfo/GSM_Types.ttcn
@@ -514,4 +514,55 @@ module GSM_Types {
tn := tn
}
+ /* TS 48.058 9.3.2 Link ID */
+ type enumerated RslLinkIdC {
+ FACCH_SDCCH (0),
+ SACCH (1)
+ } with { variant "FIELDLENGTH(2)" };
+
+ type enumerated RslSapi0Prio {
+ SAPI0_PRIO_NORMAL (0),
+ SAPI0_PRIO_HIGH (1),
+ SAPI0_PRIO_LOW (2)
+ } with { variant "FIELDLENGTH(2)" };
+
+ type uint3_t GsmSapi;
+
+ type record RslLinkId {
+ RslLinkIdC c,
+ boolean na,
+ RslSapi0Prio prio,
+ GsmSapi sapi
+ } with { variant "" };
+
+ template RslLinkId tr_RslLinkId := {
+ c := ?,
+ na := ?,
+ prio := ?,
+ sapi := ?
+ };
+
+ template RslLinkId tr_RslLinkID_DCCH(template GsmSapi sapi) modifies tr_RslLinkId := {
+ c := FACCH_SDCCH,
+ na := false,
+ sapi := sapi
+ };
+
+ template RslLinkId tr_RslLinkID_SACCH(template GsmSapi sapi) modifies tr_RslLinkId := {
+ c := SACCH,
+ na := false,
+ sapi := sapi
+ };
+
+ template RslLinkId ts_RslLinkID_DCCH(GsmSapi sapi) := {
+ c := FACCH_SDCCH,
+ na := false,
+ prio := SAPI0_PRIO_NORMAL,
+ sapi := sapi
+ };
+
+ template RslLinkId ts_RslLinkID_SACCH(template GsmSapi sapi) modifies tr_RslLinkID_SACCH := {
+ prio := SAPI0_PRIO_NORMAL
+ };
+
} with { encode "RAW"; variant "FIELDORDER(msb)" }