library/TRXC_Types: add definitions for FAKE_TRXC_DELAY

Change-Id: Ic5034f244374d4368d4fcb9a382c984cc730c408
Related: OS#5245
This commit is contained in:
Vadim Yanitskiy 2021-10-03 14:00:40 +06:00 committed by fixeria
parent 418066a05c
commit 42525ac97b
1 changed files with 9 additions and 2 deletions

View File

@ -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", "FAKE_CI" ) with {
"MEASURE", "FAKE_RSSI", "FAKE_TOA", "FAKE_CI", "FAKE_TRXC_DELAY") 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)|(FAKE_CI))'
'((POWERON)|(POWEROFF)|(CLOCK)|(RXTUNE)|(TXTUNE)|(SETSLOT)|(SETTSC)|(SETBSIC)|(SETPOWER)|(SETMAXDLY)|(SETMAXDLYNB)|(HANDOVER)|(NOHANDOVER)|(MEASURE)|(FAKE_RSSI)|(FAKE_TOA)|(FAKE_CI)|(FAKE_TRXC_DELAY))'
,case_insensitive)"
}
@ -93,5 +93,12 @@ template (value) TrxcMessage ts_TRXC_FAKE_CI(int16_t ci, int16_t thresh := 0) :=
}
}
template (value) TrxcMessage ts_TRXC_FAKE_TRXC_DELAY(integer delay_ms := 0) := {
cmd := {
verb := "FAKE_TRXC_DELAY",
params := { int2str(delay_ms) }
}
}
} with { encode "TEXT" }