aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-01-08 17:11:03 +0100
committerlaforge <laforge@osmocom.org>2021-01-11 13:54:30 +0000
commit8bd54cf77a45b546b7fe2bcba44932a5eadc4406 (patch)
tree6b529d19d3b30359f695681c5f9e6f07ee7871dd
parent7b761e2850004257837f304d2f0ea3defac47c07 (diff)
library: Add templates to initialize CellId, RAI, LAI
-rw-r--r--library/GSM_Types.ttcn8
-rw-r--r--library/Osmocom_Gb_Types.ttcn5
2 files changed, 13 insertions, 0 deletions
diff --git a/library/GSM_Types.ttcn b/library/GSM_Types.ttcn
index 34b65176..6cc3c083 100644
--- a/library/GSM_Types.ttcn
+++ b/library/GSM_Types.ttcn
@@ -420,12 +420,20 @@ type record LocationAreaIdentification {
BcdMccMnc mcc_mnc,
uint16_t lac
} with { variant "" };
+template (value) LocationAreaIdentification ts_LAI(BcdMccMnc mcc_mnc, uint16_t lac) := {
+ mcc_mnc := mcc_mnc,
+ lac := lac
+};
/* 24.008 10.5.5.15 */
type record RoutingAreaIdentification {
LocationAreaIdentification lai,
uint8_t rac
} with { variant "" };
+template (value) RoutingAreaIdentification ts_RAI(template (value) LocationAreaIdentification lai, uint8_t rac) := {
+ lai := lai,
+ rac := rac
+};
external function enc_RoutingAreaIdentification(RoutingAreaIdentification rai) return octetstring
with { extension "prototype(convert)" extension "encode(RAW)" }
diff --git a/library/Osmocom_Gb_Types.ttcn b/library/Osmocom_Gb_Types.ttcn
index b83131d0..518d619f 100644
--- a/library/Osmocom_Gb_Types.ttcn
+++ b/library/Osmocom_Gb_Types.ttcn
@@ -733,6 +733,11 @@ octetstring sdu) := {
CellIdentity cell_id
} with { variant "" };
+ template (value) BssgpCellId ts_BssgpCellId(template (value) RoutingAreaIdentification rai, CellIdentity cell_id) := {
+ ra_id := rai,
+ cell_id := cell_id
+ };
+
type enumerated BssgpCause {
BSSGP_CAUSE_PROC_OVERLOAD ('00'H),
BSSGP_CAUSE_EQUIMENT_FAILURE ('01'H),