aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-07-19 16:39:12 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-07-20 04:32:59 +0700
commitc155930c220e08da32903e2e27b6d420cbb140b4 (patch)
tree76fbf7e724cae7eb021855b1bce2ec87a73bc611 /library
parent3ddb3abdc0a5d37f2daf0def7931d95d1d9f1ca8 (diff)
library/PCUIF_Types: make PCUIF version configurable
When changing the PCUIF, we have to maintain backwards compatibility with the release versions of both osmo-pcu and osmo-bts, not only with the recent master. In order to achieve that, let's introduce 'mp_pcuif_version', so the PCUIF version can be adjusted. Change-Id: I3cf7f908e606b91dd2cbddc168827dd074aed052 Related: SYS#4868, OS#4547
Diffstat (limited to 'library')
-rw-r--r--library/PCUIF_Types.ttcn9
1 files changed, 7 insertions, 2 deletions
diff --git a/library/PCUIF_Types.ttcn b/library/PCUIF_Types.ttcn
index 8ce41c49..089403c7 100644
--- a/library/PCUIF_Types.ttcn
+++ b/library/PCUIF_Types.ttcn
@@ -14,8 +14,13 @@ module PCUIF_Types {
import from General_Types all;
import from Osmocom_Types all;
+modulepar {
+ /* PCUIF version supported by the IUT */
+ PCUIF_Version mp_pcuif_version := 9;
+};
+
const charstring PCU_SOCK_DEFAULT := "/tmp/pcu_bts";
-const uint32_t PCU_IF_VERSION := 9;
+type integer PCUIF_Version (9); /* supported versions */
type enumerated PCUIF_MsgType {
PCU_IF_MSG_DATA_REQ ('00'O),
@@ -698,7 +703,7 @@ template (value) PCUIF_Message ts_PCUIF_INFO_IND(template (value) uint8_t bts_nr
}
template PCUIF_Message tr_PCUIF_INFO_IND(template uint8_t bts_nr := ?,
template PCUIF_Flags flags := ?,
- template uint32_t version := PCU_IF_VERSION) := {
+ template uint32_t version := mp_pcuif_version) := {
msg_type := PCU_IF_MSG_INFO_IND,
bts_nr := bts_nr,
spare := ?,