summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-06-24 14:42:28 +0700
committerlaforge <laforge@gnumonks.org>2019-07-07 08:14:10 +0000
commit71136df433a89b881f5fa47061b919059e19c457 (patch)
tree58ff5c153a8b4f6a9f29416ea6faa8459cdc7e34
parentf82985484bb0bdd3142b872d13cb49fe7f0fc588 (diff)
library/TRXC_Types.ttcn: add FAKE_CI command for C/I simulation
-rw-r--r--library/TRXC_Types.ttcn11
1 files changed, 9 insertions, 2 deletions
diff --git a/library/TRXC_Types.ttcn b/library/TRXC_Types.ttcn
index a87266e..b67243b 100644
--- a/library/TRXC_Types.ttcn
+++ b/library/TRXC_Types.ttcn
@@ -19,9 +19,9 @@ type charstring TrxcType ("CMD", "RSP", "IND") with {
type charstring TrxcVerb ("POWERON", "POWEROFF", "CLOCK",
"RXTUNE", "TXTUNE", "SETSLOT", "SETTSC", "SETBSIC", "SETPOWER",
"SETMAXDLY", "SETMAXDLYNB", "SETSLOT", "HANDOVER", "NOHANDOVER",
- "MEASURE", "FAKE_RSSI", "FAKE_TOA" ) with {
+ "MEASURE", "FAKE_RSSI", "FAKE_TOA", "FAKE_CI" ) with {
variant "TEXT_CODING(,convert=upper_case,
- '((POWERON)|(POWEROFF)|(CLOCK)|(RXTUNE)|(TXTUNE)|(SETSLOT)|(SETTSC)|(SETBSIC)|(SETPOWER)|(SETMAXDLY)|(SETMAXDLYNB)|(HANDOVER)|(NOHANDOVER)|(MEASURE)|(FAKE_RSSI)|(FAKE_TOA))'
+ '((POWERON)|(POWEROFF)|(CLOCK)|(RXTUNE)|(TXTUNE)|(SETSLOT)|(SETTSC)|(SETBSIC)|(SETPOWER)|(SETMAXDLY)|(SETMAXDLYNB)|(HANDOVER)|(NOHANDOVER)|(MEASURE)|(FAKE_RSSI)|(FAKE_TOA)|(FAKE_CI))'
,case_insensitive)"
}
@@ -86,5 +86,12 @@ template (value) TrxcMessage ts_TRXC_FAKE_TIMING(int16_t timing, int16_t thresh
}
}
+template (value) TrxcMessage ts_TRXC_FAKE_CI(int16_t ci, int16_t thresh := 0) := {
+ cmd := {
+ verb := "FAKE_CI",
+ params := { int2str(ci), int2str(thresh) }
+ }
+}
+
} with { encode "TEXT" }