aboutsummaryrefslogtreecommitdiffstats
path: root/library/GSM_SystemInformation.ttcn
diff options
context:
space:
mode:
Diffstat (limited to 'library/GSM_SystemInformation.ttcn')
-rw-r--r--library/GSM_SystemInformation.ttcn22
1 files changed, 22 insertions, 0 deletions
diff --git a/library/GSM_SystemInformation.ttcn b/library/GSM_SystemInformation.ttcn
index 86ff8175..ab40e004 100644
--- a/library/GSM_SystemInformation.ttcn
+++ b/library/GSM_SystemInformation.ttcn
@@ -108,6 +108,18 @@ module GSM_SystemInformation {
boolean re_not_allowed,
AccessControlClass acc
} with { variant (acc) "FIELDLENGTH(16)" };
+ template (value) RachControlParameters
+ ts_RachControlParameters(RachCtrlPar_MR max_retrans := RACH_MAX_RETRANS_1,
+ BIT4 tx_integer := '1111'B, boolean cell_barr_access := false,
+ boolean re_not_allowed := false,
+ AccessControlClass acc := '0000000000000000'B)
+ := {
+ max_retrans := max_retrans,
+ tx_integer := tx_integer,
+ cell_barr_access := cell_barr_access,
+ re_not_allowed := re_not_allowed,
+ acc := acc
+ }
/* 44.018 9.1.31 */
type record SystemInformationType1 {
@@ -289,4 +301,14 @@ module GSM_SystemInformation {
return 0;
}
+ /* Generate a NeighbourCellDescription as per 44.018 10.5.2.22 */
+ function f_gen_NeighbourCellDescription(bitstring arfcn_mask /*length(1024)*/) return NeighbourCellDescription {
+ /* FIXME: so far only bitmap 0 is supported */
+ var bitstring dst := '0000'B;
+ for (var integer i := 123; i > 0; i := i -1) {
+ dst := dst & arfcn_mask[i];
+ }
+ return bit2oct(dst);
+ }
+
} with { encode "RAW"; variant "FIELDORDER(msb)" }