diff options
Diffstat (limited to 'library')
-rw-r--r-- | library/GSM_Types.ttcn | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/library/GSM_Types.ttcn b/library/GSM_Types.ttcn index ec74ce52..ee6d1326 100644 --- a/library/GSM_Types.ttcn +++ b/library/GSM_Types.ttcn @@ -158,7 +158,8 @@ module GSM_Types { /* TS 48.058 9.3.2 Link ID */ type enumerated RslLinkIdC { FACCH_SDCCH (0), - SACCH (1) + SACCH (1), + OSMO_PTCCH (2) /* Osmocom (trxcon) specific extension */ } with { variant "FIELDLENGTH(2)" }; type enumerated RslSapi0Prio { @@ -195,6 +196,12 @@ module GSM_Types { sapi := sapi }; + template RslLinkId tr_RslLinkID_OSMO_PTCCH(template GsmSapi sapi) modifies tr_RslLinkId := { + c := OSMO_PTCCH, + na := false, + sapi := sapi + }; + template (value) RslLinkId ts_RslLinkID_DCCH(GsmSapi sapi) := { c := FACCH_SDCCH, na := false, @@ -209,6 +216,13 @@ module GSM_Types { sapi := sapi }; + template (value) RslLinkId ts_RslLinkID_OSMO_PTCCH(GsmSapi sapi) := { + c := OSMO_PTCCH, + na := false, + prio := SAPI0_PRIO_NORMAL, + sapi := sapi + }; + function f_hex_is_odd_length(hexstring digits) return bitstring { if (lengthof(digits) rem 2 == 1) { return '1'B; |