summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-31 20:23:47 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-11-01 02:01:59 +0700
commitd5321fbdeaacac7e358122b2878eeda360031409 (patch)
tree86fff8518f805939aed4883054c2aca3e5135849 /library
parent2a9accef09d1e63ef5a8c741e20fedce65e52ec0 (diff)
library/PCUIF_Types: add f_PCUIF_ver_INFO_PDCHMask_set()
Diffstat (limited to 'library')
-rw-r--r--library/PCUIF_Types.ttcn18
1 files changed, 18 insertions, 0 deletions
diff --git a/library/PCUIF_Types.ttcn b/library/PCUIF_Types.ttcn
index 0e112dc..8af3757 100644
--- a/library/PCUIF_Types.ttcn
+++ b/library/PCUIF_Types.ttcn
@@ -990,6 +990,24 @@ return BIT8 {
}
}
+function f_PCUIF_ver_INFO_PDCHMask_set(inout PCUIF_info_ind info, BIT8 pdch_mask,
+ template (present) uint8_t trx_nr := ?)
+{
+ if (PCUIF_Types.mp_pcuif_version >= 10) {
+ for (var integer nr := 0; nr < lengthof(info.trx.v10); nr := nr + 1) {
+ if (match(nr, trx_nr)) {
+ info.trx.v10[nr].pdch_mask := pdch_mask;
+ }
+ }
+ } else {
+ for (var integer nr := 0; nr < lengthof(info.trx.v09); nr := nr + 1) {
+ if (match(nr, trx_nr)) {
+ info.trx.v09[nr].pdch_mask := pdch_mask;
+ }
+ }
+ }
+}
+
function f_PCUIF_AF2addr_type(AddressFamily address_family)
return PCUIF_AddrType {
if (address_family == AF_INET) {